Git Product home page Git Product logo

Comments (5)

udondan avatar udondan commented on June 7, 2024

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.

udondan avatar udondan commented on June 7, 2024

Github closed this automatically due to #43. Reopening until next version is out.

from ansible-silo.

bdlamprecht avatar bdlamprecht commented on June 7, 2024

Yeah, adding that file to my home directory solved the problem. Thanks again for the quick resolution.

from ansible-silo.

udondan avatar udondan commented on June 7, 2024

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.

bdlamprecht avatar bdlamprecht commented on June 7, 2024

from ansible-silo.

Related Issues (20)

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.