batcomputer01, bare vm for now

Signed-off-by: Ricky Elrod <relrod@redhat.com>
This commit is contained in:
Ricky Elrod 2018-04-11 15:02:13 +00:00
parent 8f7df9629c
commit 7ae53ae7ca
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,17 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-7
ks_repo: http://10.5.126.23/repo/rhel/RHEL7-x86_64/
volgroup: /dev/vg_guests
eth0_ip: 10.5.126.6
vmhost: virthost22.phx2.fedoraproject.org
datacenter: phx2
lvm_size: 50g
mem_size: 8192
max_mem_size: 16384
num_cpus: 4

View file

@ -426,6 +426,9 @@ log01.phx2.fedoraproject.org
batcave01.phx2.fedoraproject.org
batcave13.rdu2.fedoraproject.org
[batcomputer]
batcomputer01.phx2.fedoraproject.org
[ipa]
ipa01.phx2.fedoraproject.org
ipa02.phx2.fedoraproject.org

View file

@ -0,0 +1,31 @@
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=batcomputer"
- name: make the box be real
hosts: batcomputer
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- nagios_client
- hosts
- fas_client
- sudo
- collectd/base
- openvpn/client
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"