Commit Graph

9 Commits

Author SHA1 Message Date
Kevin Fenzi
82f85d89ad compose / staging: these are primary koji instances
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-03-26 10:30:51 -07:00
David Kirwan
9d97299285 zabbix: template to handle external hosts
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-04-25 11:26:49 +01:00
David Kirwan
02565b933e zabbix: update releng compose cronjob template
re-enable zabbix/zabbix_template role on releng_compose

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-15 04:02:33 +00:00
David Kirwan
5302ad27df zabbix: add template variables to staging groupvars
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-13 14:47:02 +00:00
David Kirwan
bf5dcd8edb zabbix: set releng_compose_stg zabbix_templates to empty list
add zabbix hostgroup create task

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-13 09:29:56 +00:00
David Kirwan
d0e43de656 zabbix: add zabbix_templates to releng compose stg
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-12 13:51:19 +00:00
Kevin Fenzi
580cd252c5 Inventory group/host variables: Sort yaml
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>
2021-11-16 13:27:57 -08:00
Nils Philippsen
dbbf94a411 ipa/client: configure global shell access and sudo
Almost global anyway, i.e. inside the VPN.

The ipa/client-based shell access and sudo rules are only effective for
staging right now, the respective playbook bits are masked out for prod.

- Assign Ansible host groups to IPA host groups, the latter don't care
  about 'stg' in the name and use dashes rather than underscores.
- Distill shell access groups from fas_client_groups in group and host
  vars.
- Let all `sysadmin-*` groups in the previous list run anything via sudo
  in the host group (except bastion & batcave).
- Remove `fas_client_groups` from staging host and group vars.
- Remove sudoers from staging host and group vars if only `sysadmin-*`
  groups have shell access.
- Set up `ipa_client_shell_groups` on bastion to be a super set of the
  same on batcave.

Newly created IPA host groups:
- autosign
- badges
- basset
- bastion
- batcave
- blockerbugs
- bodhi
- bugzilla2fedmsg
- busgateway
- datagrepper
- dbserver
- dns
- fedimg
- github2fedmsg
- ipa
- kernel-qa
- kerneltest
- kojibuilder
- kojihub
- kojipkgs
- logging
- mailman
- memcached
- mirrormanager
- nagios
- notifs
- oci-registry
- odcs
- openqa
- openqa-workers
- osbs
- packages
- pdc-web
- pkgs
- proxies
- rabbitmq
- releng-compose
- resultsdb
- secondary
- sign-bridge
- sundries
- value
- wiki

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-01 22:23:41 +00:00
Nils Philippsen
d6cdeb7aea Consistency: releng_stg -> releng_compose_stg
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-01 22:23:41 +00:00