Add initial cut at mirrormanager2 stg instances
This commit is contained in:
parent
0890075271
commit
24e8532ea0
7 changed files with 105 additions and 0 deletions
3
inventory/group_vars/mirrormanager2-stg
Normal file
3
inventory/group_vars/mirrormanager2-stg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
# Define resources for this group of hosts here.
|
||||||
|
fas_client_groups: sysadmin-noc
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
lvm_size: 20000
|
||||||
|
mem_size: 2048
|
||||||
|
num_cpus: 2
|
||||||
|
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_virthost16
|
||||||
|
eth0_ip: 10.5.126.178
|
||||||
|
vmhost: virthost16.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
lvm_size: 20000
|
||||||
|
mem_size: 4096
|
||||||
|
num_cpus: 2
|
||||||
|
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_virthost16
|
||||||
|
eth0_ip: 10.5.126.180
|
||||||
|
vmhost: virthost16.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
lvm_size: 20000
|
||||||
|
mem_size: 4096
|
||||||
|
num_cpus: 2
|
||||||
|
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_virthost16
|
||||||
|
eth0_ip: 10.5.126.181
|
||||||
|
vmhost: virthost16.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
lvm_size: 20000
|
||||||
|
mem_size: 2048
|
||||||
|
num_cpus: 1
|
||||||
|
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_virthost16
|
||||||
|
eth0_ip: 10.5.126.179
|
||||||
|
vmhost: virthost16.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
|
@ -341,6 +341,12 @@ mirrorlist-ibiblio.fedoraproject.org
|
||||||
mirrorlist-phx2.phx2.fedoraproject.org
|
mirrorlist-phx2.phx2.fedoraproject.org
|
||||||
mirrorlist-host1plus.fedoraproject.org
|
mirrorlist-host1plus.fedoraproject.org
|
||||||
|
|
||||||
|
[mirrormanager2-stg]
|
||||||
|
mirrorlist-phx2.stg.phx2.fedoraproject.org
|
||||||
|
mirrorlist-frontend01.stg.phx2.fedoraproject.org
|
||||||
|
mirrorlist-backend01.stg.phx2.fedoraproject.org
|
||||||
|
mirrorlist-cawler01.stg.phx2.fedoraproject.org
|
||||||
|
|
||||||
[other]
|
[other]
|
||||||
people03.fedoraproject.org
|
people03.fedoraproject.org
|
||||||
secondary01.phx2.fedoraproject.org
|
secondary01.phx2.fedoraproject.org
|
||||||
|
|
44
playbooks/groups/mirrormanager2.yml
Normal file
44
playbooks/groups/mirrormanager2.yml
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
- name: make the servers
|
||||||
|
hosts: mirrormanager2-stg
|
||||||
|
user: root
|
||||||
|
gather_facts: False
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "{{ private }}/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: "{{ tasks }}/virt_instance_create.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: make the boxen be real for real
|
||||||
|
hosts: mirrormanager2-stg
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "{{ private }}/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- base
|
||||||
|
- rkhunter
|
||||||
|
- nagios_client
|
||||||
|
- hosts
|
||||||
|
- fas_client
|
||||||
|
- sudo
|
||||||
|
- collectd/base
|
||||||
|
- { role: openvpn/client,
|
||||||
|
when: env != "staging" }
|
||||||
|
|
||||||
|
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