Commit Graph

115 Commits

Author SHA1 Message Date
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
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
Ryan Lerch
dbdb0d9824 Fix the final 50ish casing linting errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-22 07:30:55 +10:00
Kevin Fenzi
6c38d7b61a various: fix some more shell variables that were accidentally converted to builtin.shell
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-15 17:26:50 -08:00
Ryan Lerch
3c41882bb0 ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:29:10 +10:00
Ryan Lerch
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
Aurélien Bompard
d23b6f2d9b s/user_username/user_name/g
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2024-12-03 11:12:47 +01:00
Ryan Lerch
4a4e7e07cb [ansible-lint] prefix variable names for rabbit/user role
ansible-lint requires that variables for roles are prefixed with the
name of the role. This commit prefixes the variables for the
rabbit/user role with user_ as required by ansible-lint

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-12-03 10:48:45 +01:00
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
David Kirwan
5ad386ed6f zabbix: Enable zabbix agent on prod hosts
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-01-03 14:31:12 +00:00
Patrik Polakovič
cd2b7c1289 Zabbix: add zabbix agent to groups/pkgs playbook
Signed-off-by: Patrik Polakovič <patrik@alphamail.org>
2023-09-04 14:07:02 +02:00
Andrew Heath
a961a5ed7d updating playbooks to work with ansible 2.14 2023-05-18 15:28:34 -04: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
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
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
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
6ac5a89b14 playbooks / fedmsg: drop fedmsg/base from pkgs and releng-compose
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-05-17 12:30:42 -07:00
Nils Philippsen
9195c2d39a ipa/client: enable for pkgs in prod
...and grant shell access to the packager group.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-03-24 13:44:33 +01:00
Mark O'Brien
fdcd55c176 add ipa/client role to the rest of the playbookd for staging 2021-02-12 14:22:40 +00:00
Kevin Fenzi
a45f203750 pkgs01.stg: add instance to staging
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-09-09 10:47:36 -07:00
Pierre-Yves Chibon
02603cab58 pkgs: we now longer use gitolite anywhere
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-08-04 14:53:28 +02:00
Kevin Fenzi
7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00
Pierre-Yves Chibon
57ad832a4a pkgs: strings should have quotes
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-25 22:53:54 +02:00
Pierre-Yves Chibon
042eafc49b pgks: don't install gitolite/base on rhel8
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-25 22:08:55 +02:00
Pierre-Yves Chibon
fbec93831c pkgs: don't setup fedmsg on the rhel8 based hosts
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-25 21:43:46 +02:00
Kevin Fenzi
caa442e694 iad2: pkgs playbook: use group instead of hard coding pkgs02
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-25 12:41:11 -07:00
Pierre-Yves Chibon
bb6f7217d3 pkgs: specify to the nfs/client role that we're ok with mounting this in stg
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-23 20:37:30 +02:00
Pierre-Yves Chibon
f258376a88 distgit: restructure the playbook so it does the basic first then the dist-git specific bits
This will hopefully help making sure, for example, the correct rhel8.repo
repo definition file gets installed before we call the pagure role that
relies on this file being there.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-23 15:08:51 +02:00
Pierre-Yves Chibon
e2b1add696 pkgs: don't install gitolite/base in staging
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-20 11:03:59 +02:00
Pierre-Yves Chibon
c52238022f pkgs: don't setup fedmsg in staging pkgs
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-20 10:36:43 +02:00
Stephen Smoogen
0028f5f9e4 [pkgs] add tag for user 2020-04-24 21:34:20 +02:00
Stephen Smoogen
eccd948801 [pkgs] try to get syntax right while waiting for 3rd pot of coffee 2020-04-24 21:34:20 +02:00
Stephen Smoogen
5f9818d50b [pkgs] add in comment to code to when change needs to go 2020-04-24 21:34:20 +02:00
Stephen Smoogen
87ce71a5a9 [pkgs] make it so pkgs has pagure user 2020-04-24 21:34:20 +02:00
Stephen Smoogen
dbdc75e762 remove repospanner from pkgs playbook. thankyou for your work. 2020-04-24 21:34:20 +02:00
Kevin Fenzi
80d8694583 ansible: fix -- mistake for import_playbook
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 18:23:42 +00:00
Kevin Fenzi
2d1cf41c9f ansible: fix the virt-create calls
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 18:19:27 +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
Patrick Uiterwijk
55c9fb266b Remove cgit from dist-git
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2019-04-13 15:57:00 +02:00
Stephen Smoogen
4d9f322a13 [repospanner] When defining ports please use the variables in global.yml to make sure that all the files get edited during a playrun versus just one or two. Thank you. 2019-04-12 14:22:24 +00:00
Stephen Smoogen
7c3fa7c396 Make it so our http configs for repoSpanner do not wander off from each other due to too many cooks and too few pots. Change all repospanner related 8443 to use jinja variable repoSpanner_{{region}}_http 2019-04-09 13:50:01 +00:00
Patrick Uiterwijk
d8e632492a Sync bridge port with http port
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2019-04-09 12:48:27 +02:00
Stephen Smoogen
001a65c0e3 [pkgs/repospanner] This is what happens when you do parts of one thing in one playbook and also in another 2019-04-08 19:47:16 +00:00
Aurélien Bompard
a0347912ec Migrate distgit to the new rabbit/user role 2019-03-05 09:42:51 +00:00
Pierre-Yves Chibon
0e87532f03 Looks like it needs a full task not a delegate_to
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2019-03-04 15:08:14 +01:00
Pierre-Yves Chibon
c3d64514c1 Create the fedora-messaging user for src.fp.o
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2019-03-04 15:05:35 +01:00
Patrick Uiterwijk
6cdfe3dc19 I already hardcoded https://
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-10-05 21:00:05 +02:00
Patrick Uiterwijk
401c84ebe8 fix cert name
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-10-05 15:14:17 +00:00