diff options
-rw-r--r-- | README.md | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -1,6 +1,8 @@ | |||
1 | kong-app | 1 | kong-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 | |||
4 | This 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. | 6 | This 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 | ||
6 | Requirements | 8 | Requirements |
@@ -42,17 +44,18 @@ None | |||
42 | Example Playbook | 44 | Example 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 | ||
57 | Tests | 60 | Tests |
58 | ---- | 61 | ---- |