GithubHelp home page GithubHelp logo

dresden-weekly / vagrant-ansible-remote Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 7.0 66 KB

Scripts to install and run ansible to provision any machines and allow development with vagrant

License: MIT License

Shell 78.70% Batchfile 21.30%
ansible linux macosx remote-execution vagrant windows

vagrant-ansible-remote's People

Contributors

arbmind avatar strfry avatar tnt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vagrant-ansible-remote's Issues

Working with current Ansible (>= 1.9.x[.x]) and CentOS

I've put some crude changes for working with CentOS and current Ansible to this gist. This should be okay for quick testing here and now. But it's not good enough for a PR. And honestly said I would prefer to drop git-install.sh at all. The EPEL-/ppa-packages seem to be very up-to-date.


The previous way of installing Ansible with git does not work with the current version. Some considerations:

Until Vagrant 1.8.x the content of the VERSION file matched the version number in the respective branch name (1.8.4 -> release1.8.4). Currently (with version 1.9.0) there is only one stable-1.9 branch but several sub-versions. For each of these sub-versions (or sub-sub-versions) there is a tag and the respective commit has a VERSION-file with equivalent content as follows:

tag VERSION
v1.9.0-1 1.9.0 1
v1.9.0-2 1.9.0 2
v1.9.0.1-1 1.9.0.1 1
v1.9.1-0.1rc1 ?

So we could replace the --branch release$ANSIBLE_VERSION with something like --branch v$ANSIBLE_VERSION to install that version and at a later run compare it like [ "$(<${ANSIBLE_DIR}/VERSION)" != "${ANSIBLE_VERSION/-/ }" ]. But what really sucks is:

set +e
source ${ANSIBLE_DIR}/hacking/env-setup
set -e

which seems to fail more or less regularly.

With pip installs it would not work to compare a version (or only for minor versions - pip show ansible | grep -E "^Version: " | grep -Eo "[0-9.]+" yields 1.9).

Add PIP install option

Currently this script only supports Git und Apt installations.

It would be nice to have the option to use PIP. Which should be a bit more platform independent.

See #2 as well.

Enhance Git install more

The git installation uses --branch release$ANSIBLE_VERSION which is not supported by the official ansible repository.

We should make this prefix optional. The VERSION file content and git tags/branches do not fully match.

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.