iad2: add db01.iad2 server

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-20 16:05:42 -07:00
parent b2718b308a
commit c7a298ab73
3 changed files with 80 additions and 2 deletions

View file

@ -0,0 +1,76 @@
---
nm: 255.255.255.0
gw: 10.3.163.254
dns: 10.3.163.33
volgroup: /dev/vg_guests
eth0_ip: 10.3.163.41
vmhost: vmhost-x86-03.iad2.fedoraproject.org
datacenter: iad2
ks_url: http://209.132.181.6/repo/rhel/ks/kvm-rhel-8-ext
ks_repo: http://209.132.181.6/repo/rhel/RHEL8-x86_64/
# This is a generic list, monitored by collectd
databases:
- anitya
- blockerbugs
- bodhi2
- elections
- fedocal
- hyperkitty
- kerneltest
- koschei
- mailman
- mbs
- mirrormanager
- notifications
- nuancier_lite
- odcs
- pagure
- pdc
- tahrir
- waiverdb
- transtats
# This is a more strict list of databases to backup every day
dbs_to_backup:
- anitya
- blockerbugs
- bodhi2
- elections
- fedocal
- hyperkitty
- kerneltest
- koschei
- mailman
- mbs
- mirrormanager
- notifications
- nuancier_lite
- odcs
- pagure
- pdc
- tahrir
- waiverdb
- transtats
# These are normally group variables, but in this case db servers are often different
lvm_size: 500000
mem_size: 16384
num_cpus: 10
fas_client_groups: sysadmin-dba,sysadmin-noc,sysadmin-veteran
#
# We should narrow this down at some point
#
custom_rules: [ '-A INPUT -p tcp -m tcp --dport 5432 -j ACCEPT' ]
#
# db01 handles lots of apps, could have many procs if they are busy.
#
nrpe_procs_warn: 800
nrpe_procs_crit: 900
db_backup_dir: ['/backups']
shared_buffers: "4GB"
effective_cache_size: "12GB"

View file

@ -212,6 +212,7 @@ autosign01.stg.phx2.fedoraproject.org
[dbserver]
db01.phx2.fedoraproject.org
db01.iad2.fedoraproject.org
db03.phx2.fedoraproject.org
db-fas01.phx2.fedoraproject.org
db-fas01.iad2.fedoraproject.org
@ -1277,6 +1278,7 @@ bvmhost-x86-03.iad2.fedoraproject.org
bvmhost-x86-04.iad2.fedoraproject.org
bvmhost-x86-05.iad2.fedoraproject.org
certgetter01.iad2.fedoraproject.org
db01.iad2.fedoraproject.org
ipa01.iad2.fedoraproject.org
ipa02.iad2.fedoraproject.org
log01.iad2.fedoraproject.org

View file

@ -2,12 +2,12 @@
# NOTE: should be used with --limit most of the time
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=db-datanommer02.phx2.fedoraproject.org:db-qa01.qa.fedoraproject.org:db-koji01.phx2.fedoraproject.org:db-fas01.stg.phx2.fedoraproject.org:db-fas01.phx2.fedoraproject.org:db01.phx2.fedoraproject.org:db01.stg.phx2.fedoraproject.org:db-qa02.qa.fedoraproject.org:db-koji01.stg.phx2.fedoraproject.org:db_qa03.qa.fedoraproject.org:db-koji02.phx2.fedoraproject.org:db-fas01.iad2.fedoraproject.org"
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=db-datanommer02.phx2.fedoraproject.org:db-qa01.qa.fedoraproject.org:db-koji01.phx2.fedoraproject.org:db-fas01.stg.phx2.fedoraproject.org:db-fas01.phx2.fedoraproject.org:db01.phx2.fedoraproject.org:db01.stg.phx2.fedoraproject.org:db-qa02.qa.fedoraproject.org:db-koji01.stg.phx2.fedoraproject.org:db_qa03.qa.fedoraproject.org:db-koji02.phx2.fedoraproject.org:db-fas01.iad2.fedoraproject.org:db01.iad2.fedoraproject.org"
# Once the instance exists, configure it.
- name: configure postgresql server system
hosts: db-datanommer02.phx2.fedoraproject.org:db-qa01.qa.fedoraproject.org:db-koji01.phx2.fedoraproject.org:db-fas01.stg.phx2.fedoraproject.org:db-fas01.phx2.fedoraproject.org:db01.phx2.fedoraproject.org:db01.stg.phx2.fedoraproject.org:db-qa02.qa.fedoraproject.org:db-koji01.stg.phx2.fedoraproject.org:db-qa03.qa.fedoraproject.org:db-koji02.phx2.fedoraproject.org:db-fas01.iad2.fedoraproject.org
hosts: db-datanommer02.phx2.fedoraproject.org:db-qa01.qa.fedoraproject.org:db-koji01.phx2.fedoraproject.org:db-fas01.stg.phx2.fedoraproject.org:db-fas01.phx2.fedoraproject.org:db01.phx2.fedoraproject.org:db01.stg.phx2.fedoraproject.org:db-qa02.qa.fedoraproject.org:db-koji01.stg.phx2.fedoraproject.org:db-qa03.qa.fedoraproject.org:db-koji02.phx2.fedoraproject.org:db-fas01.iad2.fedoraproject.org:db01.iad2.fedoraproject.org
user: root
gather_facts: True