Add a gnome-backups01 machine to handle gnome backups.
This commit is contained in:
parent
19b7d1c701
commit
d5f6a0f127
3 changed files with 62 additions and 0 deletions
31
inventory/host_vars/gnome-backups01.phx2.fedoraproject.org
Normal file
31
inventory/host_vars/gnome-backups01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.126.254
|
||||
dns: 10.5.126.21
|
||||
volgroup: /dev/vg_guests
|
||||
eth0_ip: 10.5.126.39
|
||||
eth1_ip: 10.5.127.28
|
||||
vmhost: virthost21.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
||||
|
||||
ks_url: http://infrastructure.phx2.fedoraproject.org/repo/rhel/ks/kvm-rhel-7
|
||||
ks_repo: http://infrastructure.phx2.fedoraproject.org/repo/rhel/RHEL7-x86_64/
|
||||
|
||||
#
|
||||
# Need a virt-install command with eth1 also
|
||||
#
|
||||
virt_install_command: virt-install -n {{ inventory_hostname }} -r {{ mem_size }}
|
||||
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
|
||||
--vcpus={{ num_cpus }} -l {{ ks_repo }} -x
|
||||
"ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0
|
||||
hostname={{ inventory_hostname }} nameserver={{ dns }}
|
||||
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none
|
||||
ip={{ eth1_ip }}:::{{ nm }}:{{ inventory_hostname }}-nfs:eth1:none"
|
||||
--network=bridge=br0,model=virtio --network=bridge=br1,model=virtio
|
||||
--autostart --noautoconsole
|
||||
|
||||
lvm_size: 30000
|
||||
mem_size: 8192
|
||||
num_cpus: 4
|
||||
# todo: make a gnome sysadmin group
|
||||
#fas_client_groups: sysadmin-gnome
|
|
@ -1103,3 +1103,6 @@ twisted-rhel7-2.fedorainfracloud.org
|
|||
|
||||
[infinote]
|
||||
infinote.fedoraproject.org
|
||||
|
||||
[gnome-backups]
|
||||
gnome-backups01.phx2.fedoraproject.org
|
||||
|
|
28
playbooks/groups/gnome-backups.yml
Normal file
28
playbooks/groups/gnome-backups.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=gnome-backups"
|
||||
|
||||
- name: make the boxen be real for real
|
||||
hosts: gnome-backups
|
||||
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
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue