Coder Social home page Coder Social logo

Comments (8)

easybe avatar easybe commented on September 7, 2024 1

Cool, I quickly tested your branch and it works for me, thanks.

Still, maybe the README should mention that ansible_connection must be set in the inventory file for secret paths containing "connection" to work reliably.

from hashivault_vars.

gbevan avatar gbevan commented on September 7, 2024

Hi @easybe you should be able to move the ansible_connection from your group_vars/all.yml to your inventory file, e.g.:

[all]
...
[all:vars]
ansible_connection=ssh
...

That should be applied prior to the hashivault_vars plugin.

from hashivault_vars.

gbevan avatar gbevan commented on September 7, 2024

I think you can also create a group/all entry in vault with that setting, emulating the group_vars/all

from hashivault_vars.

easybe avatar easybe commented on September 7, 2024

I think you can also create a group/all entry in vault with that setting, emulating the group_vars/all

I would rather not do that. As I said, I would like to keep only secrets there.

Also, I would prefer to keep the the vars and the inventory separate.

from hashivault_vars.

gbevan avatar gbevan commented on September 7, 2024

I could add support for an environment variable to change the behaviour, e.g.

HASHIVAULT_VARS_RESOLVE_CONNECTION=0

so, if set, it would prevent the resolving of ansible_connection in the plugin and use hosts/domains paths without the connection, like you suggest.

from hashivault_vars.

easybe avatar easybe commented on September 7, 2024

My proposal: #25
I'd be happy to get review/test feedback and update it accordingly.

from hashivault_vars.

gbevan avatar gbevan commented on September 7, 2024

Cheers for that - i've taken what you did in #25 and extended to still support the original use-case and domains/fqdns, and added BATs tests for the travis tests. Please see PR #26

from hashivault_vars.

gbevan avatar gbevan commented on September 7, 2024

#26 is merged. 0.2.0 is released to PyPI. thx

from hashivault_vars.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.