Commit Graph

3802 Commits

Author SHA1 Message Date
Michal Konečný
b7e5056a4e [notifs-backend] Fix YAML syntax
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2023-01-16 16:09:56 +01:00
Michal Konečný
00bb6a3634 [notifs-backend] Update FMN playbook
Remove redis from playbook, it's no longer used. We are using memcached instead.
Start the services automatically after deployment.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2023-01-16 15:58:59 +01:00
Stephen Smoogen
69ba9efed8 Move to using new certs for fedorapeople
Get new certs per instructions
Put new certs in ansible_private from letsencrypt
Change the cert name in configs to 2023 to show different from 2017 one.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2023-01-05 12:50:34 -05:00
Kevin Fenzi
147459b7b0 proxies_stg: disable zabbix for now as it is not installable
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-12-05 14:26:25 -08:00
Pavel Raiskup
2667ac065f inventory/copr: drop unused hosts/vars
The non-aws variant is not used for a looong time.  It just confuses
contributors now.  The stg is not used either.
2022-12-04 15:02:29 +01:00
Pavel Raiskup
e21db9be97 copr-dist-git: typo in the restart_services.yml import 2022-11-29 17:54:00 +01:00
Kevin Fenzi
b1b0923af0 openshift 3.11: raise a glass!
Our openshift 3.11 cluster(s) served us long and well.

Now we have everything finally moved to the openshift 4 clusters (fas2
was the last holdout). We can finally retire this. :)

🎉🥂

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-11-28 13:08:01 -08:00
Adam Williamson
6aa77e9423 openqa: try and fix on-disk encryption stuff
Some of the openqa workers are encrypted and some aren't (this is a bit of a
mess that's partly a result of all the redeployments we did around
https://bugzilla.redhat.com/show_bug.cgi?id=2009585 ). We should only run
the nbde_client role on workers which are encrypted. Hopefully this gets that
right.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-11-25 16:10:11 -08:00
Jakub Kadlcik
44d826078b copr: move user creation back to copr/keygen role 2022-11-22 10:13:40 +01:00
Jakub Kadlcik
32b72e13dd copr: hmm, I guess those comments needs to be under tasks 2022-11-22 04:19:22 +01:00
Jakub Kadlcik
076777af9f copr: trying to fix a syntax error 2022-11-22 04:12:44 +01:00
Jakub Kadlcik
067f4e7998 copr: that was probably a wrong place to create users 2022-11-22 04:07:00 +01:00
Jakub Kadlcik
1d58562bfa copr: pre-create users and groups with specifics UIDs and GIDs 2022-11-22 04:00:10 +01:00
Jakub Kadlcik
6959217b11 copr: explicitly import handlers
See 36a976c5ef
2022-11-19 18:31:08 +01:00
Jakub Kadlcik
6dd20a81b3 copr: apply nagios_client role before any copr roles for all servers 2022-11-19 14:55:21 +01:00
Jakub Kadlcik
d596f825c4 copr: apply nagios_client role before any copr roles
Otherwise we fail in our Copr specific configuration

TASK [copr/base : install nrpe checks]
fatal: [copr-fe-dev.aws.fedoraproject.org]: FAILED! => {"changed": false, "checksum": "0795e7c4f6bbb7974ea9bf74a81ba7cde5177fdd", "msg": "Destination directory /etc/nrpe.d does not exist"}
2022-11-19 14:47:51 +01:00
Jakub Kadlcik
36a976c5ef copr: explicitly import handlers for copr-frontend.yml
Trying to solve this issue

    TASK [Mount swap]
    ERROR! The requested handler 'restart swap.swap' was not found in
    either the main handlers list nor in the listening handlers list
2022-11-18 18:29:25 +01:00
Pavel Raiskup
86a787200b storinator: drop copr-dist-git* volumes, enlarge copr-be 2022-11-11 14:16:29 +01:00
Kevin Fenzi
fa610eaed0 osbs: fix race between stg and prod making registry secrets
If you run these playbooks without any limit, The 4 master hosts (2
x86_64 and 2 aarch64) will be in the play, but they all use local_action
to make the local secrets file thats loaded. This means, whichever of
them happens to be writing the file last, thats the version of the file
that all 4 of them get. This is particularly bad when it's the staging
creds and the prod hosts get it loaded. :(

So, adding {{ env }} here makes the staging and prod versions seperate
so they don't step on each other.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-10-05 16:11:03 +00:00
Kevin Fenzi
a20235b95d notifs: fix missing closing squiggly
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-10-03 16:06:33 -07:00
Kevin Fenzi
223455e441 prep notifs-backend role for 02 being 01
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-10-03 16:04:52 -07:00
Kevin Fenzi
b0fe24fce0 notifs / backend / staging: move keytab to after fedmsg since it needs the fedmsg user
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-28 17:25:42 -07:00
Kevin Fenzi
c5fa0f91f1 notifs / staging: try a keytab thats actually the same as the service
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-26 15:55:02 -07:00
Kevin Fenzi
c207175516 mirrormanager: drop s3-mirror role
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-19 14:54:12 -07:00
Kevin Fenzi
946e51e41c virthost: install collectd on all virthosts
This conditional was intended to not try and install this on rhel9, but
collectd is now available on rhel9. In addition it accidentially didn't
install it on all fedora virthosts. :(

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-19 12:53:35 -07:00
Kevin Fenzi
1503d6669d notifs-backend: try removing the template number here.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-16 09:05:05 -07:00
Kevin Fenzi
db66979838 notifs-backend: re-enable keytab
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-16 09:00:21 -07:00
Michal Konečný
717feea0d3 Fix yaml linting errors
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2022-09-14 09:00:57 +00:00
Michal Konečný
6f49dc8c85 [pagure] Don't use conflicting topic permissions
The pagure.{{ env_suffix }} user is currently used for both pagure and dist-git,
which makes io.pagure.* and org.fedoraproject.* topics to conflict with each
other.

This will set the permissions for both in one place.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2022-09-14 09:00:57 +00:00
Kevin Fenzi
423eb61c14 zabbix / staging: change zabbix server to use sysadmin-noc and add client to wiki and proxies in staging
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-08-31 11:59:01 -07:00
Adam Williamson
94fbd1d58c openqa-workers group: drop broken, unnecessary condition
This is syntactically wrong, and it's not necessary any more
anyhow because we got someone to disconnect the problematic
network interfaces from the hardware.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-08-18 14:08:15 -04:00
Kevin Fenzi
2141799237 maintainer_test: el9 has rkhunter now too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-08-15 18:13:40 -07:00
Stephen Smoogen
a34148440d FIX: nagios was using 66.187.228.248 which is not a usable ip address on Ibiblio networks currently 2022-07-29 09:40:57 -04:00
Kevin Fenzi
aacb604700 odcs: disable fmc queue for now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-22 09:23:42 -07:00
Adam Williamson
fb51893a84 openqa/workers: skip nbde-client on a64 workers
They aren't encrypted, and it causes networking config problems.
We'd like to solve the underlying problem but we don't know how,
this is good enough for now. Also drop the workaround things
again because they don't seem to help.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-14 14:07:12 -07:00
Adam Williamson
72a1f710d5 Add nirik's nbde client fixups to openQA worker playbook
nirik did some stuff in the virthost and buildhw groups to try
and deal with a problem where network configuration created
during the initrd phase for the nbde_client role is activated
by NM during the regular system boot phase, which results in
the network configuration not being the one we actually want
and carefully set up. However, he didn't add this stuff to the
openqa-workers group playbook even though that uses the
nbde_client role too, and we sure are having the same problem
on the openQA workers. Adding it now to see if it helps.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-14 12:35:03 -07:00
Aurélien Bompard
e38f39b2dd Fix topic regexp for logger
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-07-07 09:17:51 +02:00
Aurélien Bompard
d083b291d3 sent_topics can't be a list, it has to be a single regexp
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-07-07 09:09:24 +02:00
Aurélien Bompard
24c7194f1a Split off some rabbitmq vhosts
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-07-05 09:29:29 +02:00
Aurélien Bompard
4249161ad0 RabbitMQ: add topic auth to more apps
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-07-05 08:35:10 +02:00
Kevin Fenzi
3c960624f4 fas2: good bye! You served long and well
Remove fas2 and all the checks that depended on it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-01 12:09:36 -07:00
Aurélien Bompard
15982bb9ae Add topic permissions for more apps
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-06-23 18:40:35 +02:00
Kevin Fenzi
68141d381b resultsdb: drop old vm's and adjust other apps to new openshift url
Drop resultsdb vars and playbooks.
resultsdb is now in openshift and on a different url.
Adjust bodhi, pagure dist git for the new url.
Drop taskotron roles.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-21 14:01:28 -07:00
Aurélien Bompard
f5484d1e23 No need for so much escaping
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-06-21 11:36:09 +02:00
Aurélien Bompard
58d703ae27 Limit topics that can be sent to
Only a few apps have topic permissions, if this works well we'll have to
generalize it.

Fixes: #8167

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-06-21 11:16:09 +02:00
Aurélien Bompard
8fb52e6dd4 Read all the release vars
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-06-09 13:04:24 +02:00
Aurélien Bompard
0946ab8732 Read the FedoraRawhideNumber var
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-06-09 12:57:32 +02:00
Kevin Fenzi
82102f60a5 notifs-backend02: drop this service keytab for now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-08 12:44:55 -07:00
Kevin Fenzi
55b62afe3f releng: move releng role before nfs mounts
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-08 10:40:53 -07:00
Adam Williamson
0308e54f47 openqa-onebox-test: drop virt-create line
Forgot to update this from the original. It's not appropriate
here since we're using this on a non-virt box.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-07 15:24:57 -07:00