---
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 }}"
freezes: false
lvm_size: 20000
mem_size: 16384
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]
