Vars for statscache.
This commit is contained in:
parent
777f6ba10a
commit
b4a0f1dd8e
12 changed files with 196 additions and 20 deletions
16
inventory/group_vars/statscache-backend
Normal file
16
inventory/group_vars/statscache-backend
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 20000
|
||||
mem_size: 6144
|
||||
num_cpus: 4
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
# No fedmsg publication... no ports.
|
||||
tcp_ports: []
|
||||
|
||||
fas_client_groups: sysadmin-noc,sysadmin-datanommer
|
||||
|
||||
# For performance measurement.. for now. This can be removed whenever.
|
||||
fedmsg_loglevel: DEBUG
|
13
inventory/group_vars/statscache-backend-stg
Normal file
13
inventory/group_vars/statscache-backend-stg
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 20000
|
||||
mem_size: 1024
|
||||
num_cpus: 2
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
# Nope
|
||||
tcp_ports: []
|
||||
|
||||
fas_client_groups: sysadmin-noc,sysadmin-datanommer
|
12
inventory/group_vars/statscache-web
Normal file
12
inventory/group_vars/statscache-web
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 20000
|
||||
mem_size: 1024
|
||||
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,sysadmin-datanommer
|
12
inventory/group_vars/statscache-web-stg
Normal file
12
inventory/group_vars/statscache-web-stg
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 20000
|
||||
mem_size: 1024
|
||||
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,sysadmin-datanommer
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
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/
|
||||
|
||||
eth0_ip: 10.5.126.81
|
||||
|
||||
volgroup: /dev/vg_virthost09
|
||||
vmhost: virthost09.phx2.fedoraproject.org
|
||||
|
||||
datacenter: phx2
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
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/
|
||||
|
||||
eth0_ip: 10.5.126.82
|
||||
|
||||
volgroup: /dev/vg_virthost16
|
||||
vmhost: virthost16.phx2.fedoraproject.org
|
||||
|
||||
datacenter: phx2
|
14
inventory/host_vars/statscache-web01.phx2.fedoraproject.org
Normal file
14
inventory/host_vars/statscache-web01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
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/
|
||||
|
||||
eth0_ip: 10.5.126.31
|
||||
|
||||
volgroup: /dev/vg_guests
|
||||
vmhost: virthost02.phx2.fedoraproject.org
|
||||
|
||||
datacenter: phx2
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
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/
|
||||
|
||||
eth0_ip: 10.5.126.33
|
||||
|
||||
volgroup: /dev/vg_virthost16
|
||||
vmhost: virthost16.phx2.fedoraproject.org
|
||||
|
||||
datacenter: phx2
|
14
inventory/host_vars/statscache-web02.phx2.fedoraproject.org
Normal file
14
inventory/host_vars/statscache-web02.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
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/
|
||||
|
||||
eth0_ip: 10.5.126.32
|
||||
|
||||
volgroup: /dev/vg_guests
|
||||
vmhost: virthost19.phx2.fedoraproject.org
|
||||
|
||||
datacenter: phx2
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
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/
|
||||
|
||||
eth0_ip: 10.5.126.34
|
||||
|
||||
volgroup: /dev/vg_guests
|
||||
vmhost: virthost20.phx2.fedoraproject.org
|
||||
|
||||
datacenter: phx2
|
|
@ -622,6 +622,28 @@ ns04.phx2.fedoraproject.org
|
|||
db-qa01.qa.fedoraproject.org
|
||||
proxy10.phx2.fedoraproject.org
|
||||
|
||||
[statscache:children]
|
||||
statscache-web
|
||||
statscache-backend
|
||||
|
||||
[statscache-stg:children]
|
||||
statscache-web-stg
|
||||
statscache-backend-stg
|
||||
|
||||
[statscache-web]
|
||||
statscache-web01.phx2.fedoraproject.org
|
||||
statscache-web02.phx2.fedoraproject.org
|
||||
|
||||
[statscache-web-stg]
|
||||
statscache-web01.stg.phx2.fedoraproject.org
|
||||
statscache-web02.stg.phx2.fedoraproject.org
|
||||
|
||||
[statscache-backend]
|
||||
statscache-backend01.phx2.fedoraproject.org
|
||||
|
||||
[statscache-backend-stg]
|
||||
statscache-backend01.stg.phx2.fedoraproject.org
|
||||
|
||||
[summershum]
|
||||
summershum01.phx2.fedoraproject.org
|
||||
|
||||
|
|
|
@ -1,14 +1,20 @@
|
|||
# create a new notifs-web server
|
||||
# NOTE: should be used with --limit most of the time
|
||||
# NOTE: make sure there is room/space for this server on the vmhost
|
||||
# NOTE: most of these vars_path come from group_vars/notifs-web* or from hostvars
|
||||
|
||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=statscache:statscache-stg"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: statscache;statscache-stg
|
||||
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
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
roles:
|
||||
- base
|
||||
|
@ -18,33 +24,44 @@
|
|||
- hosts
|
||||
- fas_client
|
||||
- collectd/base
|
||||
- rsyncd
|
||||
- sudo
|
||||
- apache
|
||||
- fedmsg/base
|
||||
- sudo
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
- include: "{{ tasks }}/mod_wsgi.yml"
|
||||
|
||||
- name: Stuff just for the web frontend
|
||||
hosts: statscache-web;statscache-web-stg
|
||||
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
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
#- name: dole out the service specific config
|
||||
# hosts: statscache;statscache-stg
|
||||
# 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:
|
||||
# - statscache
|
||||
#
|
||||
# handlers:
|
||||
# - include: "{{ handlers }}/restart_services.yml"
|
||||
roles:
|
||||
- apache
|
||||
- role: openvpn/client
|
||||
when: env != "staging"
|
||||
# TODO -- include statscache/frontend here
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/mod_wsgi.yml"
|
||||
|
||||
- name: Stuff just for the fedmsg backend
|
||||
hosts: statscache-backend;statscache-backend-stg
|
||||
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
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
#roles:
|
||||
# TODO -- include statscache/backend here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue