Add sundries staging server.

This commit is contained in:
Kevin Fenzi 2014-04-04 17:02:16 +00:00
parent cceec52e2f
commit e5c3bda671
5 changed files with 76 additions and 0 deletions

View 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

View 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

View file

@ -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

View file

@ -18,6 +18,7 @@
hosts: bodhi:bodhi-stg
user: root
gather_facts: True
accelerate: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml

View 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"