From 507bb99c0f6c79d5257d293a5eda6bbd3e34caaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Thu, 26 Apr 2018 18:15:47 +0200 Subject: support multiple kong servers --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 074e830..e9a2a29 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ None at the moment Role Variables -------------- - -* `kong_app_admin_url` the kong admin url (mandatory). -* `kong_app_admin_apikey` the apikey to use kong admin api. Default to "" -* `kong_services` an array of services to setup (default to []) - * `name` the name of the service to create for this app, mandatory - * `url` the url of the backend of the app, mandatory - * `plugins` An array of plugins to activate with their name and config in a dict - * `name` - * `config` - * `routes` An array of routes to create for this service. - * `hosts` - * `paths` - * `protocols` - * `methods` +* `kong_servers`: an array of kong\_server to configure with followin configuration: + * `kong_app_admin_url` the kong admin url (mandatory). + * `kong_app_admin_apikey` the apikey to use kong admin api. Default to "" + * `kong_services` an array of services to setup (default to []) + * `name` the name of the service to create for this app, mandatory + * `url` the url of the backend of the app, mandatory + * `plugins` An array of plugins to activate with their name and config in a dict + * `name` + * `config` + * `routes` An array of routes to create for this service. + * `hosts` + * `paths` + * `protocols` + * `methods` Dependencies ------------ -- cgit v1.2.3 From 0d2ed34fe00b39a725c7bc82f898305187fd42b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Fri, 27 Apr 2018 09:39:57 +0200 Subject: fix README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index e9a2a29..bdf665e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Role Variables * `kong_servers`: an array of kong\_server to configure with followin configuration: * `kong_app_admin_url` the kong admin url (mandatory). * `kong_app_admin_apikey` the apikey to use kong admin api. Default to "" - * `kong_services` an array of services to setup (default to []) + * `services` an array of services to setup (default to []) * `name` the name of the service to create for this app, mandatory * `url` the url of the backend of the app, mandatory * `plugins` An array of plugins to activate with their name and config in a dict @@ -35,11 +35,11 @@ Example Playbook - hosts: localhost roles: - - { role: kong-app, kong_app_admin_url: http://localhost:8001, - kong_app_services: [ name:example, + - { role: kong-app, kong_servers: [ kong_app_admin_url: http://localhost:8001, + services: [ name:example, url: http://example.com, plugins: [], - routes: [ { hosts: [my.kong.example], paths: [/] } ]] + routes: [ { hosts: [my.kong.example], paths: [/] } ]]] } License -- cgit v1.2.3