Coder Social home page Coder Social logo

docker-vagrant-ansible's Introduction

Docker Vagrant Ansible

Docker Hub Build Status

Provides docker containers for Vagrant + Ansible.

Supported OS

  • Debian 8 (Jessie) : docker pull hanxhx/vagrant-ansible:debian8
  • Debian 9 (Stretch) : docker pull hanxhx/vagrant-ansible:debian9
  • Debian 10 (Buster) : docker pull hanxhx/vagrant-ansible:debian10
  • Debian 11 (Bullseye) : docker pull hanxhx/vagrant-ansible:debian11
  • Ubuntu 16.04 (Xenial) : docker pull hanxhx/vagrant-ansible:ubuntu16.04
  • Ubuntu 18.04 (Bionic) : docker pull hanxhx/vagrant-ansible:ubuntu18.04
  • Ubuntu 20.04 (Focal) : docker pull hanxhx/vagrant-ansible:ubuntu20.04
  • Ubuntu 22.04 (Jammy) : docker pull hanxhx/vagrant-ansible:ubuntu22.04

Vagrantfile example

Vagrant.configure("2") do |config|
  config.vm.define "docker-debian9" do |m|
    m.vm.provider "docker" do |d|
      d.image = "hanxhx/vagrant-ansible:debian9"
      d.remains_running = true
      d.has_ssh = true
    end
    m.vm.provision "ansible" do |ansible|
      ansible.playbook = "tests/test.yml"
    end
  end
end

Travis-CI example

---

env:
  global:
    - VAGRANT_VERSION='2.2.18'
  jobs:
    - PLATFORM='docker-debian9' ANSIBLE_VERSION='>=2.11,<2.12'

os:
  - linux
dist: focal

language: python
python:
  - 3.8

services:
  - docker

before_install:
  - sudo apt-get -q update
  - sudo wget -nv https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb

install:
  - sudo dpkg -i vagrant_${VAGRANT_VERSION}_x86_64.deb
  - sudo pip install "ansible-core${ANSIBLE_VERSION}"

script:
  - vagrant up $PLATFORM
  - >
    vagrant provision $PLATFORM
    | grep -q 'changed=0.*failed=0'
    && (echo 'Idempotence test: pass' && exit 0)
    || (echo 'Idempotence test: fail' && exit 1)
  - vagrant status

docker-vagrant-ansible's People

Contributors

hanxhx avatar

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.