Skip to content
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

need to change parameters "per Term" .. new issue #7

Open
fkuep opened this issue Mar 31, 2021 · 0 comments
Open

need to change parameters "per Term" .. new issue #7

fkuep opened this issue Mar 31, 2021 · 0 comments

Comments

@fkuep
Copy link
Owner

fkuep commented Mar 31, 2021

See log of cf70776..47e203d

  • 2nd example with_ and token and recurse
    • I had modified to include a host , as did try when originally reporting the issue.
TASK [Parameters can be provided after the key be more specific about what to retrieve] ***
fatal: [localhost]: FAILED! => {"msg": "Error locating 'consul_key recurse=true host=consul_host token=consul_token' in kv store. Error was host not a valid consul lookup parameter"}
...ignoring

Further, in log of 17a9eb4..7dd5c8a

  • 3rd test
    I found the a working combination in upstream
    With vars :
    consul_token: "b759c2df-d84e-87e1-bc53-8a662837a272"
    consul_host: 172.16.4.2
    consul_key: consul_test_kv/some/value
    consul_key_with_token: "consul_test_kv/some/value token={{consul_token}}"
    consul_key_public: public/some/value
- name: retrieving a KV from a remote cluster on non default port
  ansible.builtin.debug:
    msg: "{{ lookup('consul_test_kv', consul_key_with_token, host=consul_host, port=consul_port) }}"
  ignore_errors: yes
  • host cannot be in the lookup string
  • token cannot be in the parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant