Improve and cleanup tests

This commit is contained in:
Sam Doran 2016-11-11 12:59:58 -05:00
parent d47dfa8073
commit fa24f09ff4
3 changed files with 21 additions and 6 deletions

16
tests/Vagrantfile vendored
View File

@ -1,15 +1,25 @@
Vagrant.configure(2) do |config|
# RHEL 6
config.vm.define "rhel6" do |rhel6|
config.vm.define "rhsub-rhel6" do |rhel6|
rhel6.vm.box = "samdoran/rhel6"
rhel6.vm.hostname = "java-rhel6"
rhel6.vm.hostname = "rhsub-rhel6"
config.vm.provider "virtualbox" do |vbox|
vbox.name = "rhsub-rhel7"
vbox.cpus = 1
vbox.memory = 128
end
end
# RHEL 7
config.vm.define "rhel7" do |rhel7|
rhel7.vm.box = "samdoran/rhel7"
rhel7.vm.hostname = "java-rhel7"
rhel7.vm.hostname = "rhsub-rhel7"
config.vm.provider "virtualbox" do |vbox|
vbox.name = "rhsub-rhel7"
vbox.cpus = 1
vbox.memory = 128
end
end
config.vm.provision "ansible" do |ansible|

View File

@ -1,4 +1,3 @@
---
- hosts: localhost
remote_user: root
roles:

View File

@ -1,6 +1,12 @@
---
- hosts: all
remote_user: vagrant
become: True
become: yes
vars:
rhsub_state: present
rhsub_repos:
- name: rhel-7-server-extras-rpms # wildcard or repo name
state: enable
roles:
- redhat-subscription