Open marcoleary opened 8 years ago
A bit more playing around today with a packet capture revealed the problem. I was getting an error during the plugin create HTTP request {"key_names":"key_names is an unknown field"}
so I changed my config to the following and it worked:
- name: Add key authentication
kong_plugin:
kong_admin_uri: "{{kong_admin_base_url}}"
api_name: "test"
plugin_name: "key-auth"
config:
config.key_names: "key"
state: present
Apparently I needed to prefix my config list with config.
. Could you add this to your documentation please?
Firstly, great work on the module. It's really helpful!
I'm having trouble following how I'm supposed to use the config parameter in the playbook. I've tried many different variations of syntax with no success. I want to enable the key-auth plugin with a custom
key_names
value — the following is how I thought it might work:But when I try to run this I get the following error when checking the plugin was enabled properly:
As it turns out, the plugin wasn't enabled (probably due to the syntax / data type issues with the
config
).Have you got any examples of how I can use this config bit? Thanks!