Merge "Prepare vagrant centos/7 box for role testing" into stable/newton

This commit is contained in:
Jenkins 2017-03-06 15:31:04 +00:00 committed by Gerrit Code Review
commit b6d2efd832
2 changed files with 18 additions and 0 deletions

9
Vagrantfile vendored
View File

@ -15,6 +15,9 @@ Vagrant.configure("2") do |config|
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
@ -30,6 +33,9 @@ Vagrant.configure("2") do |config|
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
@ -45,6 +51,9 @@ Vagrant.configure("2") do |config|
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

View File

@ -13,6 +13,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Prepare centos/7 box for role testing
hosts: centos
tasks:
- name: Import all archive signing keys from /etc/pki/rpm-gpg
shell: rpm --import /etc/pki/rpm-gpg/*
- name: Use sha512 instead of md5 as password hashing algorithm
shell: authconfig --passalgo=sha512 --update
- name: Playbook for role testing
hosts: all
roles: