diff --git a/inventory/host_vars/db-qa03.qa.fedoraproject.org b/inventory/host_vars/db-qa03.qa.fedoraproject.org new file mode 100644 index 0000000000..a27314867e --- /dev/null +++ b/inventory/host_vars/db-qa03.qa.fedoraproject.org @@ -0,0 +1,34 @@ +--- +nm: 255.255.255.0 +gw: 10.5.131.254 +dns: 10.5.126.21 +ks_url: http://10.5.126.23/repo/rhel/ks/kvm-fedora-28 +ks_repo: http://10.5.126.23/pub/fedora/linux/releases/28/Server/x86_64/os/ +volgroup: /dev/vg_guests +eth0_ip: 10.5.131.74 +eth0_nm: 255.255.255.0 +vmhost: virthost-comm01.qa.fedoraproject.org +datacenter: phx2 + +# This is a generic list, monitored by collectd +#databases: + +# This is a more strict list, to be made publicly available +#dbs_to_backup: + +# These are normally group variables, but in this case db servers are often different +lvm_size: 300000 +mem_size: 16384 +max_mem_size: "{{ mem_size * 2 }}" +num_cpus: 6 +tcp_ports: [ 5432, 443, 3306 ] +fas_client_groups: sysadmin-qa,sysadmin-noc,sysadmin-veteran +sudoers: "{{ private }}/files/sudo/qavirt-sudoers" + +# kernel SHMMAX value +kernel_shmmax: 68719476736 + +db_backup_dir: ['/backups'] +shared_buffers: "2GB" +effective_cache_size: "6GB" +host_backup_targets: ['/backups'] diff --git a/inventory/inventory b/inventory/inventory index 5dd665a741..5fad92a5d7 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -292,6 +292,7 @@ db-datanommer02.phx2.fedoraproject.org db-koji01.phx2.fedoraproject.org db-qa01.qa.fedoraproject.org db-qa02.qa.fedoraproject.org +db-qa03.qa.fedoraproject.org [dbserver-stg] db-fas01.stg.phx2.fedoraproject.org @@ -836,6 +837,7 @@ kojipkgs02.phx2.fedoraproject.org ns03.phx2.fedoraproject.org ns04.phx2.fedoraproject.org db-qa01.qa.fedoraproject.org +db-qa03.qa.fedoraproject.org proxy01.phx2.fedoraproject.org proxy10.phx2.fedoraproject.org proxy101.phx2.fedoraproject.org diff --git a/playbooks/groups/postgresql-server.yml b/playbooks/groups/postgresql-server.yml index c30946008b..8d6cb1fe50 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" +- 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" # 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 + 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.or:db-qa03.qa.fedoraproject.org user: root gather_facts: True