Commit Graph

22 Commits

Author SHA1 Message Date
Kevin Fenzi
fb2a8a82d6 releng-compose: add troubleshoot group for non sudo access to debug ostree issue with kinoite
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-28 11:03:08 -07:00
Kevin Fenzi
22681acd07 releng_compose: set koji_instance: "primary"
This was missed when I was adding the riscv secondary koji before
freeze. We need it fixed because it breaks the playbooks on the
primary releng compose machines and we have a freeze break to deploy.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-03-17 10:59:10 -07:00
Michal Konecny
6428f8f772 Sunset github2fedmsg and fedmsg
This commit is removing all the fedmsg related stuff from ansible
repository.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-13 10:08:51 +00:00
David Kirwan
66defc189e zabbix: attach monitoring template to rabbitmq
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-05-16 09:22:21 +01:00
David Kirwan
9fe6ae04ad zabbix: merging items and triggers in zabbix templates
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-19 12:58:28 +00:00
David Kirwan
41f8bc82e7 zabbix: break releng compose cronjob template into two parts
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-19 11:28:51 +00:00
David Kirwan
8ac96eb595 zabbix: move zabbix templates to role's base files directory
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-13 11:53:02 +00:00
David Kirwan
0191fd7574 zabbix: add task to add hosts to zabbix hostgroup
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-13 11:42:49 +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
ec7bdacff2 zabbix: add zabbix_templates role
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-12 13:45:03 +00:00
Kevin Fenzi
1ffd577490 compose-x86-01: No, phx2 dns isn't going to work too well for you.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-07 13:08:53 -07:00
Kevin Fenzi
f53ef31856 releng compose: lets try nfsv4 again
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-30 10:49:58 -07:00
Kevin Fenzi
ba254fc43a group_vars: clean up some gws
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-01-25 15:30:38 -08:00
Kevin Fenzi
83d364e0e2 host_vars: drop nm: and remove eth0_ipv4_nm from builders/builders_stg
nm is used by installs, but it's set in group_vars/all.
Drop the eth0_ipv4_nm from builders / builders_stg because it messes up
things by being not in CIDR notitation.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-01-25 14:36:00 -08: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
e3ee5d6da8 ipa/client: enable for releng_compose in prod
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-03-24 13:44:33 +01: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
Kevin Fenzi
db9e25330b inventory: try removing all the calls to ansible_python_interpreter and rely on the auto detection.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
d0e3410d69 releng_compose group vars: add some install variants that use the fast cache mode for composers.
Note, we don't want to use this everywhere, only on machines that have
no data actually stored on them (these use the nfs koji mount) and can
easily be reinstalled it anything becomes messed up.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
67e6f9911e Revert "ansible: drop each host/group setting ansible_python_interpreter and just change the interpreter_python value on the control host."
This reverts commit 5caa9024c5.
2019-05-30 23:28:27 +00:00
Kevin Fenzi
5caa9024c5 ansible: drop each host/group setting ansible_python_interpreter and just change the interpreter_python value on the control host.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-30 21:59:28 +00:00
Kevin Fenzi
4b31ac5152 ansible: Change all our group names from foo-bar to foo_bar or foo-bar-baz to foo_bar_baz
In ansible 2.8 the - character isn't supposed to be valid in group names.
While we could override this, might has well just bite the bullet and change it.
So, just switch all group names to use _ instead of -

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 17:38:09 +00:00