Add a proxy02.stg instance

This commit is contained in:
Kevin Fenzi 2014-12-07 16:53:39 +00:00
parent 7ffc7ca5b8
commit 6ebd3cc29b
4 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,15 @@
---
# Define resources for this group of hosts here.
lvm_size: 30000
mem_size: 8192
num_cpus: 2
custom_rules: [
# Need for rsync from log01 for logs.
'-A INPUT -p tcp -m tcp -s 10.5.126.13 --dport 873 -j ACCEPT',
'-A INPUT -p tcp -m tcp -s 192.168.1.59 --dport 873 -j ACCEPT',
]
tcp_ports: [ 80, 443 ]
fas_client_groups: sysadmin-noc

View file

@ -0,0 +1,10 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
volgroup: vg_virthost16
eth0_ip: 10.5.126.35
vmhost: virthost16.phx2.fedoraproject.org

View file

@ -411,6 +411,7 @@ proxy09.fedoraproject.org
[proxies-stg]
proxy01.stg.phx2.fedoraproject.org
proxy02.stg.phx2.fedoraproject.org
[qa]
qa01.dev.fedoraproject.org
@ -473,6 +474,7 @@ paste01.stg.phx2.fedoraproject.org
pkgdb01.stg.phx2.fedoraproject.org
pkgs01.stg.phx2.fedoraproject.org
proxy01.stg.phx2.fedoraproject.org
proxy02.stg.phx2.fedoraproject.org
releng01.stg.phx2.fedoraproject.org
summershum01.stg.phx2.fedoraproject.org
sundries01.stg.phx2.fedoraproject.org

View file

@ -0,0 +1,47 @@
# create a new proxy server
- name: make new proxy server
hosts: proxies-stg
user: root
gather_facts: False
accelerate: "{{ accelerated }}"
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: fproxies-stg
user: root
gather_facts: True
accelerate: "{{ accelerated }}"
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- hosts
- rkhunter
- denyhosts
- nagios_client
- fas_client
- collectd/base
- sudo
tasks:
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"