]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/blame - README.md
dhall(plugins): add binding for the 'response-transformer' plugin
[github/fretlink/ansible-kong-app.git] / README.md
CommitLineData
530dddec
GD
1kong-app
2=========
3
4This role aims at creating on a remote kong the service, routes and plugins needed by an app
5
6Requirements
7------------
8
9None at the moment
10
11Role Variables
12--------------
507bb99c
GD
13* `kong_servers`: an array of kong\_server to configure with followin configuration:
14 * `kong_app_admin_url` the kong admin url (mandatory).
15 * `kong_app_admin_apikey` the apikey to use kong admin api. Default to ""
0d2ed34f 16 * `services` an array of services to setup (default to [])
507bb99c 17 * `name` the name of the service to create for this app, mandatory
e39a878d
GD
18 * `url` the url of the backend of the app, mandatory. May refer to an upstream by its name (https://upstream\_name/path)
19 * `upstream` if the url reference an upstream a dict with the configuration, optional
20 * `conf` the configuration as expected by kong for an upstream creation
21 * `name` mandatory name for the upstream
22 * `healthchecks` optional healthchecks configuration as expected by kong api
fb5b4527 23 * `targets` an array of dict defining a target for kong
e39a878d
GD
24 * `target` the host:port to reach the target (mandatory)
25 * `weight` the weight of the target (optional)
507bb99c
GD
26 * `plugins` An array of plugins to activate with their name and config in a dict
27 * `name`
28 * `config`
29 * `routes` An array of routes to create for this service.
30 * `hosts`
31 * `paths`
32 * `protocols`
33 * `methods`
530dddec
GD
34
35Dependencies
36------------
37
38
39
40Example Playbook
41----------------
42
43 - hosts: localhost
44 roles:
0d2ed34f
GD
45 - { role: kong-app, kong_servers: [ kong_app_admin_url: http://localhost:8001,
46 services: [ name:example,
767c0e53
GD
47 url: http://example.com,
48 plugins: [],
0d2ed34f 49 routes: [ { hosts: [my.kong.example], paths: [/] } ]]]
530dddec
GD
50 }
51
52License
53-------
54
55TBD
56
57Author Information
58------------------
59
60FretLink Team