diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2020-10-26 16:31:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 16:31:15 +0100 |
commit | c0c4a036f26afa4a0b28e623c2a529b38701aab8 (patch) | |
tree | 74fa90a1705738fc74ab23bd93df844e47bc9d3f | |
parent | 9c9fe5d8071afd657e57a6c11f60e275c2261246 (diff) | |
parent | e475469f4a5dc05df98cbb856d9d9328fc73c100 (diff) | |
download | ansible-kong-app-c0c4a036f26afa4a0b28e623c2a529b38701aab8.tar.gz ansible-kong-app-c0c4a036f26afa4a0b28e623c2a529b38701aab8.tar.zst ansible-kong-app-c0c4a036f26afa4a0b28e623c2a529b38701aab8.zip |
Merge pull request #25 from paulrbr-fl/update-readmev0.33
README: add a Travis badge with build status
-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 | ---- |