RFR for bugyou.
This commit is contained in:
parent
2a7220c776
commit
5ef4daf95b
6 changed files with 153 additions and 0 deletions
24
inventory/group_vars/bugyou
Normal file
24
inventory/group_vars/bugyou
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
# 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: []
|
||||||
|
|
||||||
|
fas_client_groups: sysadmin-noc,sysadmin-releng,sysadmin-fedimg,sysadmin-datanommer
|
||||||
|
|
||||||
|
# For the MOTD
|
||||||
|
csi_security_category: Moderate
|
||||||
|
csi_primary_contact: Fedora admins - admin@fedoraproject.org
|
||||||
|
csi_purpose: Run the 'bugyou' fedmsg process that files automatic bugs in pagure
|
||||||
|
csi_relationship: |
|
||||||
|
This node runs 'bugyou', a fedmsg consumer that files pagure bugs in
|
||||||
|
response to fedmsg bus activity.
|
||||||
|
|
||||||
|
It is primarily used to file bugs when automatic releng processes fail.
|
||||||
|
|
||||||
|
See https://pagure.io/bugyou for more information.
|
24
inventory/group_vars/bugyou-stg
Normal file
24
inventory/group_vars/bugyou-stg
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
# Define resources for this group of hosts here.
|
||||||
|
lvm_size: 20000
|
||||||
|
mem_size: 1024
|
||||||
|
num_cpus: 1
|
||||||
|
|
||||||
|
# for systems that do not match the above - specify the same parameter in
|
||||||
|
# the host_vars/$hostname file
|
||||||
|
|
||||||
|
tcp_ports: []
|
||||||
|
|
||||||
|
fas_client_groups: sysadmin-noc,sysadmin-releng,sysadmin-fedimg,sysadmin-datanommer
|
||||||
|
|
||||||
|
# For the MOTD
|
||||||
|
csi_security_category: Moderate
|
||||||
|
csi_primary_contact: Fedora admins - admin@fedoraproject.org
|
||||||
|
csi_purpose: Run the 'bugyou' fedmsg process that files automatic bugs in pagure
|
||||||
|
csi_relationship: |
|
||||||
|
This node runs 'bugyou', a fedmsg consumer that files pagure bugs in
|
||||||
|
response to fedmsg bus activity.
|
||||||
|
|
||||||
|
It is primarily used to file bugs when automatic releng processes fail.
|
||||||
|
|
||||||
|
See https://pagure.io/bugyou for more information.
|
14
inventory/host_vars/bugyou01.phx2.fedoraproject.org
Normal file
14
inventory/host_vars/bugyou01.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.129
|
||||||
|
|
||||||
|
volgroup: /dev/vg_guests
|
||||||
|
vmhost: virthost22.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
||||||
|
freezes: true
|
13
inventory/host_vars/bugyou01.stg.phx2.fedoraproject.org
Normal file
13
inventory/host_vars/bugyou01.stg.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
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.130
|
||||||
|
|
||||||
|
volgroup: /dev/vg_virthost16
|
||||||
|
vmhost: virthost16.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
|
@ -90,6 +90,12 @@ bodhi04.phx2.fedoraproject.org
|
||||||
[bodhi2-stg]
|
[bodhi2-stg]
|
||||||
bodhi02.stg.phx2.fedoraproject.org
|
bodhi02.stg.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
[bugyou]
|
||||||
|
bugyou01.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
[bugyou-stg]
|
||||||
|
bugyou01.stg.phx2.fedoraproject.org
|
||||||
|
|
||||||
[bugzilla2fedmsg]
|
[bugzilla2fedmsg]
|
||||||
bugzilla2fedmsg01.phx2.fedoraproject.org
|
bugzilla2fedmsg01.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
@ -588,6 +594,7 @@ badges-web01.stg.phx2.fedoraproject.org
|
||||||
blockerbugs01.stg.phx2.fedoraproject.org
|
blockerbugs01.stg.phx2.fedoraproject.org
|
||||||
bodhi02.stg.phx2.fedoraproject.org
|
bodhi02.stg.phx2.fedoraproject.org
|
||||||
bodhi-backend01.stg.phx2.fedoraproject.org
|
bodhi-backend01.stg.phx2.fedoraproject.org
|
||||||
|
bugyou01.stg.phx2.fedoraproject.org
|
||||||
bugzilla2fedmsg01.stg.phx2.fedoraproject.org
|
bugzilla2fedmsg01.stg.phx2.fedoraproject.org
|
||||||
buildvm-01.stg.phx2.fedoraproject.org
|
buildvm-01.stg.phx2.fedoraproject.org
|
||||||
busgateway01.stg.phx2.fedoraproject.org
|
busgateway01.stg.phx2.fedoraproject.org
|
||||||
|
@ -809,6 +816,7 @@ resultsdb-stg01.qa.fedoraproject.org
|
||||||
autocloud-backend
|
autocloud-backend
|
||||||
badges-backend
|
badges-backend
|
||||||
busgateway
|
busgateway
|
||||||
|
bugyou
|
||||||
fedimg
|
fedimg
|
||||||
hotness
|
hotness
|
||||||
notifs-backend
|
notifs-backend
|
||||||
|
@ -820,6 +828,7 @@ summershum
|
||||||
autocloud-backend-stg
|
autocloud-backend-stg
|
||||||
badges-backend-stg
|
badges-backend-stg
|
||||||
busgateway-stg
|
busgateway-stg
|
||||||
|
bugyou-stg
|
||||||
fedimg-stg
|
fedimg-stg
|
||||||
hotness-stg
|
hotness-stg
|
||||||
notifs-backend-stg
|
notifs-backend-stg
|
||||||
|
|
69
playbooks/groups/bugyou.yml
Normal file
69
playbooks/groups/bugyou.yml
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
# create a new bugyou 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/mirrorlist or from hostvars
|
||||||
|
|
||||||
|
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=bugyou:bugyou-stg"
|
||||||
|
|
||||||
|
- name: dole out the generic configuration
|
||||||
|
hosts: bugyou;bugyou-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:
|
||||||
|
- base
|
||||||
|
- rkhunter
|
||||||
|
- { role: denyhosts, when: ansible_distribution_major_version|int != 7 }
|
||||||
|
- nagios_client
|
||||||
|
- collectd/base
|
||||||
|
- hosts
|
||||||
|
- fas_client
|
||||||
|
- sudo
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: "{{ tasks }}/yumrepos.yml"
|
||||||
|
- include: "{{ tasks }}/2fa_client.yml"
|
||||||
|
- include: "{{ tasks }}/motd.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: set up fedmsg basics
|
||||||
|
hosts: bugyou;bugyou-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:
|
||||||
|
- fedmsg/base
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: dole out the service-specific config
|
||||||
|
hosts: bugyou;bugyou-stg
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- fedmsg/hub
|
||||||
|
#- bugyou # TODO -- we still have to write this role.
|
||||||
|
- role: collectd/fedmsg-service
|
||||||
|
process: fedmsg-hub
|
||||||
|
|
||||||
|
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"
|
Loading…
Add table
Add a link
Reference in a new issue