Add sundries staging server.
This commit is contained in:
parent
cceec52e2f
commit
e5c3bda671
5 changed files with 76 additions and 0 deletions
11
inventory/group_vars/sundries-stg
Normal file
11
inventory/group_vars/sundries-stg
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 30000
|
||||
mem_size: 2048
|
||||
num_cpus: 2
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 80 ]
|
||||
fas_client_groups: sysadmin-noc,fi-apprentice
|
10
inventory/host_vars/sundries01.stg.phx2.fedoraproject.org
Normal file
10
inventory/host_vars/sundries01.stg.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
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-6
|
||||
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
|
||||
volgroup: /dev/vg_guests
|
||||
eth0_ip: 10.5.126.24
|
||||
vmhost: virthost12.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -403,6 +403,7 @@ summershum01.stg.phx2.fedoraproject.org
|
|||
tagger01.stg.phx2.fedoraproject.org
|
||||
value01.stg.phx2.fedoraproject.org
|
||||
packages03.stg.phx2.fedoraproject.org
|
||||
sundries01.stg.phx2.fedoraproject.org
|
||||
|
||||
[summershum]
|
||||
summershum01.phx2.fedoraproject.org
|
||||
|
@ -410,6 +411,9 @@ summershum01.phx2.fedoraproject.org
|
|||
[summershum-stg]
|
||||
summershum01.stg.phx2.fedoraproject.org
|
||||
|
||||
[sundries-stg]
|
||||
sundries01.stg.phx2.fedoraproject.org
|
||||
|
||||
[tagger]
|
||||
tagger01.phx2.fedoraproject.org
|
||||
tagger02.phx2.fedoraproject.org
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
hosts: bodhi:bodhi-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
accelerate: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
|
50
playbooks/groups/sundries.yml
Normal file
50
playbooks/groups/sundries.yml
Normal file
|
@ -0,0 +1,50 @@
|
|||
# create a new sundries server
|
||||
#
|
||||
# These servers run a number of smaller apps that don't merit their own instances.
|
||||
#
|
||||
|
||||
- name: make sundries server
|
||||
hosts: sundries-stg
|
||||
user: root
|
||||
gather_facts: False
|
||||
accelerate: True
|
||||
|
||||
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 box be real
|
||||
hosts: sundries-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
accelerate: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "{{ private }}/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- denyhosts
|
||||
- nagios_client
|
||||
- fas_client
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/hosts.yml"
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
- include: "{{ tasks }}/sudo.yml"
|
||||
- include: "{{ tasks }}/apache.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue