mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-29 06:00:19 +01:00
Add first pass Vagrantfile
Order of execution is screwy. Fixme :D
This commit is contained in:
parent
03ce63e664
commit
2117ef23e1
3 changed files with 28 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.vagrant
|
27
Vagrantfile
vendored
Normal file
27
Vagrantfile
vendored
Normal file
|
@ -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
|
|
@ -3,4 +3,3 @@
|
||||||
remote_user: root
|
remote_user: root
|
||||||
roles:
|
roles:
|
||||||
- ansible-sshd
|
- ansible-sshd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue