ff07803042
Added additional documentation on Vagrantfile usage for all platforms. Change-Id: If8941308f96313bfd71c9252c9508b6b68ab457e
52 lines
1.7 KiB
Ruby
52 lines
1.7 KiB
Ruby
# Runs the role against Ubuntu 14.04, 16.04 and CentOS 7
|
|
# for local testing purposes
|
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
config.vm.define "ubuntu1404" do |trusty|
|
|
trusty.vm.box = "ubuntu/trusty64"
|
|
trusty.vm.hostname = "sec-ansible-test-ubuntu1404"
|
|
|
|
trusty.vm.provision "ansible" do |ansible|
|
|
# ansible.verbose = "vvv"
|
|
ansible.playbook = "tests/vagrant.yml"
|
|
# we'll skip V-38496 because Vagrant itself creates the user that causes
|
|
# this to fail
|
|
ansible.skip_tags = ['V-38496']
|
|
# we need to run as sudo for a lot of the checks ansible-security runs
|
|
ansible.raw_arguments = ['-s']
|
|
end
|
|
end
|
|
|
|
config.vm.define "ubuntu1604" do |trusty|
|
|
trusty.vm.box = "ubuntu/xenial64"
|
|
trusty.vm.hostname = "sec-ansible-test-ubuntu1604"
|
|
|
|
trusty.vm.provision "ansible" do |ansible|
|
|
# ansible.verbose = "vvv"
|
|
ansible.playbook = "tests/vagrant.yml"
|
|
# we'll skip V-38496 because Vagrant itself creates the user that causes
|
|
# this to fail
|
|
ansible.skip_tags = ['V-38496']
|
|
# we need to run as sudo for a lot of the checks ansible-security runs
|
|
ansible.raw_arguments = ['-s']
|
|
end
|
|
end
|
|
|
|
config.vm.define "centos7" do |centos7|
|
|
centos7.vm.box = "centos/7"
|
|
centos7.vm.hostname = "sec-ansible-test-centos-7"
|
|
|
|
centos7.vm.provision "ansible" do |ansible|
|
|
# ansible.verbose = "vvv"
|
|
ansible.playbook = "tests/vagrant.yml"
|
|
# we'll skip V-38496 because Vagrant itself creates the user that causes
|
|
# this to fail
|
|
ansible.skip_tags = ['V-38496']
|
|
# we need to run as sudo for a lot of the checks ansible-security runs
|
|
ansible.raw_arguments = ['-s']
|
|
end
|
|
end
|
|
end
|
|
|