Giter VIP home page Giter VIP logo

ansible_doppelgaenger's Introduction

ansible_doppelgaenger

Description

Vagrant configuration that includes a (quickly hacked together) dynamic inventory script, vagrant vm definition helper and a hosts generator. This enables bringing up a development duplicate of any host in the production inventory with Vagrant and keeps the same locally defined IPs that can also be written to /etc/hosts if needed. Requires the ansible inventory to be in YAML format.

Usage

  1. Install jinja2 version 2.8, newer versions have still bugs in ansible.
    pip install jinja2=2.8 --user
  2. Install ansible version 2.7
    pip install ansible==2.7 --user
  3. Symlink playbooks
    ln -s /path/to/playbooks playbooks
  4. Configure ansible-vault password path (vault_password_file) in ansible.cfg.

Vagrant is ready to run, see a list of configured boxes with vagrant status. IPs will be assigned on first run (in ip_mapping.json).

Optionally generate a hosts file with ./inventory.rb --hosts. If using this, keep hosts.base up to date.

ansible_doppelgaenger's People

Contributors

ajsalminen avatar usarekoski avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

teemukoo vesdev

ansible_doppelgaenger's Issues

Host is unable to use keys from ssh-agent while provisioning

Vagrant 1.9.5 seems to fail using the default insecure key at all when "config.ssh.keys_only = false" is set. Setting the private key manually causes IdentitiesOnly to be always set for ssh. This means we can't use any other keys and things like mysql_sync fail during the provisioning.

Seems like there are upcoming changes to the code handling this in vagrant so maybe it will be fixed in a future release. If all else fails, config.ssh.extra_args could be used to circumvent this once it's available.

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.