You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
61 lines
1.9 KiB
# 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']
|
|
ansible.groups = {
|
|
"ubuntu" => ["ubuntu1404"]
|
|
}
|
|
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']
|
|
ansible.groups = {
|
|
"ubuntu" => ["ubuntu1604"]
|
|
}
|
|
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']
|
|
ansible.groups = {
|
|
"centos" => ["centos7"]
|
|
}
|
|
end
|
|
end
|
|
end
|
|
|