diff --git a/inventory/host_vars/db01.iad2.fedoraproject.org b/inventory/host_vars/db01.iad2.fedoraproject.org new file mode 100644 index 0000000000..0aeb9e0d0f --- /dev/null +++ b/inventory/host_vars/db01.iad2.fedoraproject.org @@ -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" diff --git a/inventory/inventory b/inventory/inventory index 11b20c5499..f2ba363d6b 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -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 diff --git a/playbooks/groups/postgresql-server.yml b/playbooks/groups/postgresql-server.yml index 4f1dd86aa2..4468caed99 100644 --- a/playbooks/groups/postgresql-server.yml +++ b/playbooks/groups/postgresql-server.yml @@ -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