1
0
Fork 0
forked from infra/ansible
Commit graph

32 commits

Author SHA1 Message Date
4a7f27604d buildvm-a64 / stg: sync stats with prod for more usable testing
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-10 10:59:57 -07:00
d5c4b09e6e buildvm-a64 staging: move to fedora 44
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-29 17:34:14 -07:00
6a0d395ee5 staging builders: move to f43
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-04 14:14:54 -08:00
a3dd45c855 buildvm: all these are f42 already, just adjust the more generic groups files
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-21 17:31:11 -07:00
6c85fda0c9 Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2025-07-03 20:05:02 +02:00
47fcb90839 buildvm_aarch64_stg: set primary instance here too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-16 08:58:04 -08:00
7b58dfdce8 Remove fedmsg and github2fedmsg from staging
The messaging bridges openshift project and github2fedmsg VM were
already removed in staging. This is to clean the ansible playbooks.

I will create a separate one for production after this one is merged.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-04 09:13:40 +01:00
iamyaash
b3d6a90b9a motd generic template added
migrated notes from infra/hosts

motd changes; excluding CSI infos

removed csi_* vars from group_vars; converted csi_purpose & csi_relationship into notes

fixed merge conflicts

minor changes; var

updating YAMLs & playbooks

udpated YAMLs & playbooks again

updated correctly; buildhw.yml

fixing merge conflicts

dest added in motd.yml
2025-01-28 01:10:14 +00:00
eafcece0cf batcave: redirect http to https
We hadn't done this in the past because virt-install couldn't do https
urls, but thats long since no longer the case.

So, move all the ks_url and ks_repo calls to use https and since they
are using https, they need to use the valid
infrastructure.fedoraproject.org name so they can verify the cert.

Set batcave to redirect http to https now since that was the thing
holding this back.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-06 09:45:25 -08:00
53c38cd023 Staging koji/buildvm's: move to f41
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-11-18 19:18:47 -08:00
99514bbad0 koji / staging: move hub and builders in staging to fedora 40
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-09 13:32:12 -07:00
c84b99223c osbs: raise a glass for it's service
This removes osbs and allmost all it's associated playbooks and files.

It served long and well, but we no longer need it.
flatpaks are building with a koji-flatpak plugin.
base/minimal/toolbox containers are building with kiwi.
We aren't building any other containers right now, and we did they could
be added to kiwi.

This is the end of an era... I look with nostolga on
ansible-ansible-openshift-ansible (a role to setup ansible on a control
host and run it from our ansible).

Good bye osbs!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-03-28 12:52:07 -07:00
8039ea0bf1 Update koji builders in stg
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2023-11-21 11:10:45 +01:00
c57a37ff88 Move a bunch of machines to f38
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-17 17:35:26 -07:00
9e9215b934 f37 uplift
Upgraded proxies and builders to f37. We have a reduced timeframe to get
this done before the holidays, so this time we just upgraded them in
place. Usually we do a full reinstall. We will try and do that next
cycle.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-11-30 16:31:23 -08:00
02154c2ef6 buildvm-a64.stg: move to f36
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-26 13:51:11 -07:00
4e3d057cbb builders_stg: do not set staging as datacenter for staging builders
This has caused them to pick up the iptables template for staging
instead of the one for their host group (koji_builder). There's no
reason to have staging as a datacenter for these, nothing checks it
besides the base iptables role hopefully.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-26 12:52:00 -07:00
5e235aab26 buildvm: fix gateways
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-01-25 14:47:50 -08:00
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
af94db8ab8 builders_stg: adjust vars for f35 installs in staging
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-12-03 09:44:36 -08:00
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
8531bc6068 buildvm / staging: move everything to f34
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-05-24 12:42:28 -07:00
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
717ebb3386 buildvm / aarch64 / staging: move to fedora 33
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-11-04 14:30:18 -08:00
aab66b98d3 buildvm / arm / staging: adjust memory and cpus and disk to match prod.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-10-01 14:22:56 -07:00
7b4b815cc3 buildvm / staging: use correct virt-install
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-10-01 13:59:42 -07:00
d83ca87622 buildvm / arm / staging: no vmx passing on arm
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-10-01 13:55:07 -07:00
4933755ec1 buildvm / staging - Add a32, a64, ppc64le staging builders
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-10-01 13:16:06 -07:00
97076ed46f buildvm-stg: drop hard coding python3 and see if auto works.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:15 +02:00
d6f6e7b938 builders_stg: move all the staging builders to f31.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
ab127872ef buildvm-stg: move to f30 and python3 (except armv7 on f29)
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-31 02:55:06 +00:00
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
Renamed from inventory/group_vars/buildvm-aarch64-stg (Browse further)