aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md25
1 files changed, 14 insertions, 11 deletions
diff --git a/README.md b/README.md
index e02203f..080a320 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
1kong-app 1kong-app
2========= 2=========
3 3
4[![Build Status](https://travis-ci.com/fretlink/ansible-kong-app.svg?token=D3nFpUxMu7vStDHwUNy4&branch=master)](https://travis-ci.com/fretlink/ansible-kong-app)
5
4This role aims at creating, on a remote kong, a list of services, routes and plugins needed by an app. The API calls are made from the ansible target host. If you use `hosts: localhost` as a target from within your playbook then all API calls will be done from your local machine. 6This role aims at creating, on a remote kong, a list of services, routes and plugins needed by an app. The API calls are made from the ansible target host. If you use `hosts: localhost` as a target from within your playbook then all API calls will be done from your local machine.
5 7
6Requirements 8Requirements
@@ -42,17 +44,18 @@ None
42Example Playbook 44Example Playbook
43---------------- 45----------------
44 46
45 - hosts: localhost 47```yaml
46 roles: 48- hosts: localhost
47 - { role: kong-app, 49 roles:
48 kong_servers: 50 - role: kong-app,
49 - kong_app_admin_url: http://localhost:8001, 51 kong_servers:
50 services: 52 - kong_app_admin_url: http://localhost:8001,
51 - name: example, 53 services:
52 url: http://example.com, 54 - name: example,
53 plugins: [], 55 url: http://example.com,
54 routes: [ { hosts: [my.kong.example], paths: [/] } ] 56 plugins: [],
55 } 57 routes: [ { hosts: [my.kong.example], paths: [/] } ]
58```
56 59
57Tests 60Tests
58---- 61----