This was done using yq ( https://mikefarah.gitbook.io/yq/operators/sort-keys ) Doing things this way makes it much easier to see if a variable is set in a file or if two hosts differ in what variables they set. Hopefully we can keep things sorted moving forward. Basically this means just sort a-z anything you add to any host or group vaiable and it will be in the right place. Additionally, this enforces 'normal' intent rules for all the variable files which we should also try and obey. 2 spaces for first level, 3 for next, etc. When in doubt you can run yq on it. This should cause NO actual vairable changes, it's all just readability fixing for humans, ansible parses it exactly the same. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
51 lines
1.9 KiB
Text
51 lines
1.9 KiB
Text
---
|
|
# Define resources for this group of hosts here.
|
|
csi_primary_contact: Badges admins - sysadmin-badges-members@fedoraproject.org
|
|
csi_purpose: Run fedmsg-hub with the fedbadges plugin to award badges (+ some crons)
|
|
csi_relationship: |
|
|
fedbadges integrates many different services..
|
|
|
|
* The fedbadges fedmsg-hub plugin relies on:
|
|
* the fedmsg bus, to deliver messages
|
|
* pkgdb, for queries about who owns what packages
|
|
* fas, to lookup what irc nick corresponds to what fas user.
|
|
* db-datanommer for the fedmsg history
|
|
* db01, for storing badge awards
|
|
|
|
* badges-web01 will be expecting to display badges entered into the tahrir
|
|
db on db01. So, if badges stop showing up there, the problem is likely
|
|
here.
|
|
|
|
* Locally, of note there exists:
|
|
* a git repo of badge rules and images to be synced here by ansible
|
|
to /usr/share/badges/
|
|
* a local file cache in /var/tmp/fedbadges-cache.dbm (not memcached, atm)
|
|
* Furthermore, there are a ton of cronjobs for awarding badges in
|
|
/usr/share/badges/cronjobs/ that depends on all sorts of third parties
|
|
(flickr, google+, libravatar, etc..).
|
|
# For the MOTD
|
|
csi_security_category: Low
|
|
# These are consumed by a task in roles/fedmsg/base/main.yml
|
|
fedmsg_certs:
|
|
- can_send:
|
|
- logger.log
|
|
group: sysadmin
|
|
owner: root
|
|
service: shell
|
|
- can_send:
|
|
- fedbadges.badge.award
|
|
- fedbadges.person.rank.advance
|
|
group: fedmsg
|
|
owner: root
|
|
service: fedbadges
|
|
# These people get told when something goes wrong.
|
|
fedmsg_error_recipients:
|
|
- sysadmin-badges-members@fedoraproject.org
|
|
fedmsg_hub_auto_restart: True
|
|
fedmsg_hub_memory_limit_mb: "{{ (mem_size / 2) | int }}"
|
|
lvm_size: 20000
|
|
mem_size: 8192
|
|
num_cpus: 2
|
|
# for systems that do not match the above - specify the same parameter in
|
|
# the host_vars/$hostname file
|
|
tcp_ports: [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007]
|