Improve and cleanup tests
This commit is contained in:
parent
d47dfa8073
commit
fa24f09ff4
|
@ -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|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue