Comments (8)
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.
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.
I think you can also create a group/all entry in vault with that setting, emulating the group_vars/all
from hashivault_vars.
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.
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.
My proposal: #25
I'd be happy to get review/test feedback and update it accordingly.
from hashivault_vars.
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.
#26 is merged. 0.2.0 is released to PyPI. thx
from hashivault_vars.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashivault_vars.