-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when setting st2.conf variables, double quotes are converted to single quotes #156
Comments
We have related logic in ansible-st2/roles/bwc/tasks/ldap.yml Line 27 in d7ca9a9
It works as expected, see the configuration example with Maybe |
Closing, since it's not a problem of |
I know this is closed, but was an answer really provided? @armab are you suggesting we have to hack this in ourselves, in order to configure "auth other than BWC's one"? |
#234 should help to manage it in the following way from ---
- name: Install st2
hosts: all
roles:
- role: StackStorm.st2
vars:
st2_config:
auth:
backend_kwargs: |
{"group_dns": ["CN=stormers,OU=groups,DC=stackstorm,DC=net"], "bind_dn": "cn=Administrator,cn=users,dc=stackstorm,dc=net", "id_attr": "samAccountName", "base_ou": "dc=stackstorm,dc=net", "host": "1.2.3.4", "bind_password": "...", "port": 389} outside of the enterprise @johnarnold @lingfish Given the pointers above, I guess it wouldn't be too hard to contribute something like that back as a PR for those using free/community version of ldap backend :) |
Interesting. I've actually started a slightly different way to tackle it with the view to a PR. |
Example in ansible:
Results in:
I believe ansible is interpretting everything in the value: as json, and converting it into ?yaml? internally. Possibly related: https://www.reddit.com/r/ansible/comments/4m1njk/whats_the_proper_way_to_escape_double_quotes_in/
I'm not sure what the best "fix" is, but a workaround is to just put a space at the beginning of your value, like:
value: ' { ...
The text was updated successfully, but these errors were encountered: