Comments (5)
Thanks for the report. We'll add support for the ANSIBLE_VAULT_PASSWORD_FILE
env var in the next version. The var is forwarded to the container, but the password file is not available inside.
In the meantime you can create a file ~/.ansible-silo
or /etc/ansible/ansible-silo/ansible-silo
with the following content:
silo_forward_vault_password_file() {
local vault_password_dir return=""
if [[ ! -z "${ANSIBLE_VAULT_PASSWORD_FILE}" ]]; then
vault_password_dir="$(dirname "${ANSIBLE_VAULT_PASSWORD_FILE}")"
return+="--volume \"${vault_password_dir}\":\"/tmp/${vault_password_dir}:ro\" "
return+="--env ANSIBLE_VAULT_PASSWORD_FILE='/tmp/${ANSIBLE_VAULT_PASSWORD_FILE}'"
echo "${return}"
fi
}
This will mount the location of your password file as a volume into the container and rewrites ANSIBLE_VAULT_PASSWORD_FILE
to point to that mounted directory.
You can read here about how Silo extensions like this work.
Let me know if you have further issues with this.
from ansible-silo.
Github closed this automatically due to #43. Reopening until next version is out.
from ansible-silo.
Yeah, adding that file to my home directory solved the problem. Thanks again for the quick resolution.
from ansible-silo.
Finally a new Silo release is out which includes above snippet. When using Silo v2.0.4 you can remove the ~/.ansible-silo
file.
from ansible-silo.
from ansible-silo.
Related Issues (20)
- Created "bundle" not building / operating correctly HOT 2
- How to create files from bundle on local filesystem? HOT 9
- Include bcrypt in base image HOT 2
- Odd Bundle Inconsistencies HOT 7
- Weird python behaviors in created bundle HOT 2
- Missing ansible-inventory command HOT 2
- Unable to install on Ubuntu 16.10 HOT 2
- option -tty incompatible with vagrant HOT 4
- adding rsync to use synchronize ansible module HOT 3
- Adding dig lookup support in Ansible Silo HOT 2
- ImportError: No module named awscli.clidriver HOT 1
- ImportError: No module named awscli.clidriver HOT 2
- Would this be better with a more explicit `run`? HOT 2
- Tests fail when ~/.ssh/known_hosts does not exist
- Slice of a second start-time
- did someone already port it to windows?? HOT 1
- Enforce Ansible version within container
- Move to python3
- Maintained ? HOT 4
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 ansible-silo.