2016-01-24 16:52:13 +01:00
|
|
|
|
2016-01-24 13:39:47 +01:00
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
2017-05-04 14:58:46 +02:00
|
|
|
config.vm.define "ubuntu" do |ubuntu|
|
|
|
|
ubuntu.vm.box = "boxcutter/ubuntu1604"
|
|
|
|
# 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
|
2016-01-24 13:39:47 +01:00
|
|
|
end
|
|
|
|
|
2017-05-04 14:58:46 +02:00
|
|
|
# config.vm.define "centos7" do |centos|
|
|
|
|
# centos.vm.box = "boxcutter/centos72"
|
|
|
|
|
|
|
|
# centos.vm.provision "shell", inline: <<-SHELL
|
|
|
|
# sudo yum install -y libselinux-python
|
|
|
|
# SHELL
|
|
|
|
# end
|
|
|
|
|
2016-01-24 16:52:13 +01:00
|
|
|
config.vm.provision "shell", inline: <<-SHELL
|
2017-05-04 15:14:51 +02:00
|
|
|
test -e /vagrant/tests/roles/ansible-sshd || ln -s /vagrant /vagrant/tests/roles/ansible-sshd
|
2016-01-24 16:52:13 +01:00
|
|
|
SHELL
|
|
|
|
|
|
|
|
config.vm.provision "ansible_local" do |ansible|
|
2017-05-04 14:58:46 +02:00
|
|
|
# ansible.config_file = "tests/ansible.cfg"
|
2016-01-24 16:52:13 +01:00
|
|
|
ansible.playbook = "tests/test.yml"
|
|
|
|
ansible.install = true
|
|
|
|
end
|
2016-01-24 13:39:47 +01:00
|
|
|
|
|
|
|
end
|