diff --git a/inventory/host_vars/gnome-backups01.phx2.fedoraproject.org b/inventory/host_vars/gnome-backups01.phx2.fedoraproject.org new file mode 100644 index 0000000000..185c545834 --- /dev/null +++ b/inventory/host_vars/gnome-backups01.phx2.fedoraproject.org @@ -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 diff --git a/inventory/inventory b/inventory/inventory index 4e6317b44e..5c879b7f9c 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -1103,3 +1103,6 @@ twisted-rhel7-2.fedorainfracloud.org [infinote] infinote.fedoraproject.org + +[gnome-backups] +gnome-backups01.phx2.fedoraproject.org diff --git a/playbooks/groups/gnome-backups.yml b/playbooks/groups/gnome-backups.yml new file mode 100644 index 0000000000..87a0f7f6ff --- /dev/null +++ b/playbooks/groups/gnome-backups.yml @@ -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"