From 2117ef23e18f2bd9b58914a8445b6926d1cc9940 Mon Sep 17 00:00:00 2001 From: Matt Willsher Date: Sun, 24 Jan 2016 12:39:47 +0000 Subject: [PATCH] Add first pass Vagrantfile Order of execution is screwy. Fixme :D --- .gitignore | 1 + Vagrantfile | 27 +++++++++++++++++++++++++++ tests/test.yml | 1 - 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8000dd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vagrant diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..8aed95a --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,27 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +VAGRANTFILE_API_VERSION = "2" + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + # config.vm.define "ubuntu" do |ubuntu| + # ubuntu.vm.box = "ubuntu/trusty64" + # ubuntu.vm.provision "shell", inline: <<-SHELL + # sudo add-apt-repository -y ppa:ansible/ansible + # sudo apt-get update -qq + # sudo apt-get -qq install ansible + # SHELL + # end + + config.vm.define "centos6" do |centos| + centos.vm.box = "bento/centos-6.7" + centos.vm.provision "shell", inline: <<-SHELL + sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm + sudo yum install -y ansible libselinux-python + SHELL + end + + config.vm.synced_folder ".", "/etc/ansible/roles/ansible-sshd" + config.vm.provision :ansibleLocal, :playbook => "tests/test.yml" + +end diff --git a/tests/test.yml b/tests/test.yml index 17d75e7..e138964 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -3,4 +3,3 @@ remote_user: root roles: - ansible-sshd -