Skip to content

rameezk/ansible-role-kong-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KONG_SERVICE

An Ansible Role for Managing Kong Services.

The service will be updated if it already exists, otherwise it will be created.

Requirements

The Kong Admin URL needs to be enabled. This should ideally be exposed via a route on the Kong proxy URL. Kong does not recommend the Admin URL to be exposed directly.

Only JWT auth is supported for now.

Example Playbook

The easiest way to use this role in your playbooks is by adding it as a submodule.

git submodule add https://github.com/rameezk/ansible-role-kong-service roles/kong_service

Usage:

- hosts: servers
  vars:
    KONG_ADMIN_URL: "<<KONG_ADMIN_URL>>"
    KONG_JWT: "<<KONG_JWT>>"
  roles:
    - role: kong_service
      service:
        name: "testservice"
        url: "http://httpbin.org"

License

MIT

About

An Ansible Role for Managing Services in Kong

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published