adding taskotron-prod-clients and initial settings for prod environment
This commit is contained in:
parent
63a56a4532
commit
70a2508f8f
9 changed files with 164 additions and 14 deletions
23
inventory/group_vars/taskotron-prod-clients
Normal file
23
inventory/group_vars/taskotron-prod-clients
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
lvm_size: 20000
|
||||
mem_size: 4096
|
||||
num_cpus: 2
|
||||
|
||||
slave_user: buildslave
|
||||
taskotron_fas_user: taskotron
|
||||
resultsdb_server: http://resultsdb01.qa.fedoraproject.org/resultsdb_api/api/v1.0/
|
||||
bodhi_server: http://10.5.124.206/fakefedorainfra/bodhi/
|
||||
kojihub_url: http://koji.fedoraproject.org/kojihub
|
||||
taskotron_master: https://taskotron.fedoraproject.org/taskmaster/
|
||||
deployment_type: prod
|
||||
slave_home: /home/buildslave/
|
||||
slave_dir: /home/buildslave/slave
|
||||
slave_user: buildslave
|
||||
buildmaster: 10.5.124.206
|
||||
buildslave_port: 9989
|
||||
tcp_ports: [ "{{ buildslave_port }}" ]
|
||||
buildslave_private_sshkey_file: prod-buildslave-sshkey/prod_buildslave
|
||||
buildslave_public_sshkey_file: prod-buildslave-sshkey/prod_buildslave.pub
|
||||
taskotron_admin_email: taskotron-admin-members@fedoraproject.org
|
||||
sudoers: "{{ private }}/files/sudo/qavirt-sudoers"
|
||||
buildmaster_pubkey: ''
|
14
inventory/host_vars/taskotron-client22.qa.fedoraproject.org
Normal file
14
inventory/host_vars/taskotron-client22.qa.fedoraproject.org
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.124.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-fedora-20
|
||||
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/
|
||||
volgroup: /dev/vmstore
|
||||
eth0_ip: 10.5.124.183
|
||||
vmhost: qa06.qa.fedoraproject.org
|
||||
datacenter: phx2
|
||||
|
||||
short_hostname: taskotron-client22.qa
|
||||
buildslave_name: taskotron-client22
|
||||
fas_client_groups: sysadmin-qa,sysadmin-main
|
15
inventory/host_vars/taskotron-client23.qa.fedoraproject.org
Normal file
15
inventory/host_vars/taskotron-client23.qa.fedoraproject.org
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.124.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-fedora-20
|
||||
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/i386/os/
|
||||
volgroup: /dev/vmstore
|
||||
eth0_ip: 10.5.124.184
|
||||
vmhost: qa06.qa.fedoraproject.org
|
||||
datacenter: phx2
|
||||
libdir: /usr/lib
|
||||
|
||||
short_hostname: taskotron-client23.qa
|
||||
buildslave_name: taskotron-client23
|
||||
fas_client_groups: sysadmin-qa,sysadmin-main
|
14
inventory/host_vars/taskotron-client24.qa.fedoraproject.org
Normal file
14
inventory/host_vars/taskotron-client24.qa.fedoraproject.org
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.124.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-fedora-20
|
||||
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/
|
||||
volgroup: /dev/vmstore
|
||||
eth0_ip: 10.5.124.185
|
||||
vmhost: qa06.qa.fedoraproject.org
|
||||
datacenter: phx2
|
||||
|
||||
short_hostname: taskotron-client24.qa
|
||||
buildslave_name: taskotron-client24
|
||||
fas_client_groups: sysadmin-qa,sysadmin-main
|
14
inventory/host_vars/taskotron-client25.qa.fedoraproject.org
Normal file
14
inventory/host_vars/taskotron-client25.qa.fedoraproject.org
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.124.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-fedora-20
|
||||
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/
|
||||
volgroup: /dev/vmstore
|
||||
eth0_ip: 10.5.124.186
|
||||
vmhost: qa06.qa.fedoraproject.org
|
||||
datacenter: phx2
|
||||
|
||||
short_hostname: taskotron-client25.qa
|
||||
buildslave_name: taskotron-client25
|
||||
fas_client_groups: sysadmin-qa,sysadmin-main
|
|
@ -26,19 +26,13 @@ fake_fedorainfra_endpoint: fakefedorainfra
|
|||
buildmaster: 10.5.124.206
|
||||
|
||||
buildslaves:
|
||||
- taskotron-client11
|
||||
- taskotron-client12
|
||||
- taskotron-client13
|
||||
- taskotron-client14
|
||||
- taskotron-client19
|
||||
- taskotron-client20
|
||||
- taskotron-client21
|
||||
- taskotron-client22
|
||||
- taskotron-client23
|
||||
- taskotron-client24
|
||||
- taskotron-client25
|
||||
i386_buildslaves:
|
||||
- taskotron-client12
|
||||
- taskotron-client14
|
||||
- taskotron-client19
|
||||
- taskotron-client23
|
||||
x86_64_buildslaves:
|
||||
- taskotron-client11
|
||||
- taskotron-client13
|
||||
- taskotron-client20
|
||||
- taskotron-client21
|
||||
- taskotron-client22
|
||||
- taskotron-client24
|
||||
- taskotron-client25
|
||||
|
|
|
@ -528,6 +528,12 @@ taskotron-client21.qa.fedoraproject.org
|
|||
[taskotron-prod]
|
||||
taskotron01.qa.fedoraproject.org
|
||||
|
||||
[taskotron-prod-clients]
|
||||
taskotron-client22.qa.fedoraproject.org
|
||||
taskotron-client23.qa.fedoraproject.org
|
||||
taskotron-client24.qa.fedoraproject.org
|
||||
taskotron-client25.qa.fedoraproject.org
|
||||
|
||||
[unbound]
|
||||
unbound-ib01.fedoraproject.org
|
||||
unbound-telia01.fedoraproject.org
|
||||
|
|
|
@ -63,8 +63,10 @@
|
|||
- include: /srv/web/infra/ansible/playbooks/groups/sundries.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/tagger.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/taskotron-prod.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/taskotron-prod-clients.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/taskotron-dev.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/taskotron-dev-clients.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/taskotron-stg.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/taskotron-stg-clients.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/unbound.yml
|
||||
- include: /srv/web/infra/ansible/playbooks/groups/value.yml
|
||||
|
|
68
playbooks/groups/taskotron-prod-clients.yml
Normal file
68
playbooks/groups/taskotron-prod-clients.yml
Normal file
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
# create taskotron prod clients
|
||||
# NOTE: make sure there is room/space for this server on the vmhost
|
||||
# NOTE: most of these vars_path come from group_vars/mirrorlist or from hostvars
|
||||
|
||||
- name: make taskotron-prod clients
|
||||
hosts: taskotron-prod-clients
|
||||
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: taskotron-prod-clients
|
||||
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:
|
||||
- { role: base, tags:['base'] }
|
||||
- { role: rkhunter, tags:['rkhunter'] }
|
||||
- { role: nagios_client, tags:['nagios_client'] }
|
||||
- hosts
|
||||
- { role: fas_client, tags:['fas_client'] }
|
||||
- { role: collectd/base, tags:['collectd_base'] }
|
||||
- { role: yum-cron, tags:['yumcron'] }
|
||||
- { role: sudo, tags:['sudo'] }
|
||||
|
||||
tasks:
|
||||
# this is how you include other task lists
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
- name: configure taskotron clients
|
||||
hosts: taskotron-prod-clients
|
||||
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:
|
||||
- { role: taskotron/buildslave, tags: ['buildslave'] }
|
||||
- { role: taskotron/taskotron-client, tags: ['taskotronclient'] }
|
||||
- { role: taskotron/buildslave-configure, tags: ['buildslaveconfigure'] }
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue