Merge branch 'master' of /git/ansible

This commit is contained in:
Stephen Smoogen 2015-01-14 21:18:59 +00:00
commit e47e727f69
5 changed files with 61 additions and 9 deletions

View file

@ -1,5 +1,5 @@
---
# Define resources for this group of hosts here.
# Define resources for this group of hosts here.
lvm_size: 20000
mem_size: 8192
num_cpus: 2
@ -26,3 +26,24 @@ fedmsg_certs:
- service: anitya
owner: root
group: fedmsg
# For the MOTD
csi_security_category: Low
csi_primary_contact: Fedora admins - admin@fedoraproject.org
csi_purpose: Run the 'anitya' backend cronjobs and database server
csi_relationship: |
There are a few things running here:
- A number of cronjobs that scrape upstreams for new releases
- A postgres database server to be used by those crons and by
anitya-frontend01
- This host relies on:
- The fedmsg-relay daemon running on anitya-frontend01.
- Lots of external third-party services. The cronjobs make all kinds of
requests out to the Internet that can fail in various ways.
- Things that rely on this host:
- The webapps running on anitya-frontend01 relies on the postgres db
server running on this node.

View file

@ -1,5 +1,5 @@
---
# Define resources for this group of hosts here.
# Define resources for this group of hosts here.
lvm_size: 20000
mem_size: 2048
num_cpus: 2
@ -28,3 +28,30 @@ fedmsg_certs:
- service: anitya
owner: root
group: apache
# For the MOTD
csi_security_category: Low
csi_primary_contact: Fedora admins - admin@fedoraproject.org
csi_purpose: Run the 'anitya' mod_wsgi app for release-monitoring.org
csi_relationship: |
There are a few things running here:
- The apache/mod_wsgi app for release-monitoring.org
- A fedmsg-relay instance for anitya's local fedmsg bus
- This host relies on:
- A postgres db server running on anitya-backend01
- Lots of external third-party services. The anitya webapp can scrape
pypi, rubygems.org, sourceforge and many others on command.
- Things that rely on this host:
- The Fedora Infrastructure bus subscribes to the anitya bus published
here by the local fedmsg-relay daemon at
tcp://release-monitoring.org:9940
- the-new-hotness is a fedmsg-hub plugin running in FI on hotness01. It
listens for anitya messages from here and performs actions on koji and
bugzilla.
- anitya-backend01 expects to publish fedmsg messages via
anitya-frontend01's fedmsg-relay daemon. Access should be restricted by
firewall.

View file

@ -8,12 +8,14 @@ num_cpus: 4
# the host_vars/$hostname file
tcp_ports: [ 80, 873, 8443, 8444,
# fas has 32 wsgi processes, each of which need their own port
# fas has 40 wsgi processes, each of which need their own port
# open for outbound fedmsg messages.
8000, 8001, 8002, 8003, 8004, 8005, 8006, 8007,
8008, 8009, 8010, 8011, 8012, 8013, 8014, 8015,
8016, 8017, 8018, 8019, 8020, 8021, 8022, 8023,
8024, 8025, 8026, 8027, 8028, 8029, 8030, 8031, ]
8024, 8025, 8026, 8027, 8028, 8029, 8030, 8031,
8032, 8033, 8034, 8035, 8036, 8037, 8038, 8039,
]
fas_client_groups: sysadmin-main,sysadmin-accounts

View file

@ -8,12 +8,14 @@ num_cpus: 2
# the host_vars/$hostname file
tcp_ports: [ 80, 873, 8443, 8444,
# fas has 32 wsgi processes, each of which need their own port
# fas has 40 wsgi processes, each of which need their own port
# open for outbound fedmsg messages.
8000, 8001, 8002, 8003, 8004, 8005, 8006, 8007,
8008, 8009, 8010, 8011, 8012, 8013, 8014, 8015,
8016, 8017, 8018, 8019, 8020, 8021, 8022, 8023,
8024, 8025, 8026, 8027, 8028, 8029, 8030, 8031, ]
8024, 8025, 8026, 8027, 8028, 8029, 8030, 8031,
8032, 8033, 8034, 8035, 8036, 8037, 8038, 8039,
]
fas_client_groups: sysadmin-main,sysadmin-accounts

View file

@ -41,16 +41,16 @@ config = dict(
# the usual 8 since there are so many mod_wsgi processes for it.
"fas.fas01": [
"tcp://fas01.%s:30%02i" % (suffix, i)
for i in range(32)
for i in range(40)
],
{% if env != 'staging' %}
"fas.fas02": [
"tcp://fas02.%s:30%02i" % (suffix, i)
for i in range(32)
for i in range(40)
],
"fas.fas03": [
"tcp://fas03.%s:30%02i" % (suffix, i)
for i in range(32)
for i in range(40)
],
{% endif %}
# fedoratagger needs 32 endpoints too, just like FAS.