Commit Graph

59 Commits

Author SHA1 Message Date
Kevin Fenzi
90ed0a38e0 pkgs: change the pagure user to uid 1000 for suexec, block in sssd
The pagure user needs to be uid 1000 because suexec won't let users with
uid under that suexec. ;(

Also, filter pagure user out in sssd so we get the local user.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-02 15:25:17 -07:00
Kevin Fenzi
70ee9cda84 pkgs: set ipa_host_group_desc or ipa playbook errors
failed: [pkgs01.rdu3.fedoraproject.org -> ipa01.rdu3.fedoraproject.org] (item=ipa_host_group_desc) => {"ansible_loop_var": "item", "changed": false, "item": "ipa_host_group_desc", "msg": "`ipa_host_group_desc` is not defined"}

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-02 14:52:48 -07:00
Kevin Fenzi
a4d4393fe2 pkgs01.rdu3: deploy prod pkgs to prep for move
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-26 17:24:53 -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
Kevin Fenzi
c2f38092ad pkgs/src: pump pagure processes from 8 to 10
We have been getting timeouts. See if this helps any to prevent them.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-11-12 14:10:12 -08:00
Kevin Fenzi
679f7f6f16 iptables: clean up osbuild and add a external block set scaffolding
Setup osbuild so it only needs to exist on the specific builders in the
osbuild channel, not all builders.
Also, setup things so we can add a blocklist that will block external
subnets/ip's if we need to do so. Currently it should just be an empty
set, but we can implement it as needed/desired starting with the ips we
already were blocking on just some hosts.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-26 12:41:07 -07:00
Kevin Fenzi
0801e0fdd5 pkgs01: sync ansible up with reality on memory and switch procs to 8 to try and get a bit better performance
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-07 16:47:08 -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
Kevin Fenzi
fdc0368f12 pkgs01: use sshd_keyhelper here
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-03-31 07:20:30 -07:00
Nick Bebout
0eae657232 Fix sudo rules for sysadmin-noc and sysadmin-veteran 2021-03-28 20:46:01 -05: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
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
dba7d2d870 inventory: pkgs and pkgs_stg variables
Adjust pkgs prod to...what it actually already is.
Adjust stg to match prod so we can sync all the content to it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-10-15 10:58:39 -07:00
Pierre-Yves Chibon
22662d79b5 Clean up inventory files for odcs and pkgs for the fedmsg-related variables and comments
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-07-23 13:11:50 +02:00
Pierre-Yves Chibon
d0452479ed Revert "remove fedmsg variables which define endpoints on other fedmsg systems"
We need to keep these variables defined as they are used in the .wsgi files
to set the number of procs and threads for apache.

This reverts commit 6e92ba25a7.
2020-07-23 13:09:24 +02:00
Stephen Smoogen
6e92ba25a7 remove fedmsg variables which define endpoints on other fedmsg systems 2020-07-22 12:28:44 -04:00
Kevin Fenzi
f85ab3cdfa iad2: pkgs01.iad2: setup for pkgs01 in iad2
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-25 12:37:01 -07:00
Stephen Smoogen
87ce71a5a9 [pkgs] make it so pkgs has pagure user 2020-04-24 21:34:20 +02:00
Kevin Fenzi
7dbb115c1b pkgs: add exclude for clamav scan on gdk-picbuf as it has a new test that triggers things.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:09 +02:00
Patrick Uiterwijk
e984427ca0 Switch prod over to aclchecker
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-11-21 12:02:42 +01:00
Patrick Uiterwijk
6782635a14 Kill git protocol on pkgs with fire
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-10-04 18:09:42 +02:00
Stephen Smoogen
7d793164e7 remove sysadmin-build from hosts 2018-08-22 15:48:13 +00:00
Rick Elrod
4a60ddc875 Nuke pkgdb some more... and probably break everything.
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-07-19 20:40:14 +00:00
Kevin Fenzi
11d8c01162 Fix a ton of fedmsg routing/policy. 2018-07-12 20:37:53 +00:00
Patrick Uiterwijk
25fe3bf892 Remove access for sysadmin-veterans and noc to gitolite
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-07-11 01:59:05 +02:00
Patrick Uiterwijk
31fe8d6bcb Open ports 80 and 443 to everyone
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-02-08 23:01:22 +00:00
Patrick Uiterwijk
321ad82c19 Unblock pkgs and do redirect instead
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-02-05 13:17:54 +00:00
Stephen Smoogen
b93bd375fb ok let us try to cut down http access ot the server from whatever backdoor is letting it in 2018-02-02 23:21:46 +00:00
Pierre-Yves Chibon
2767cfd05b Looks like the pagure fedmsg hook is using the shell fedmsg cert
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-01-05 14:09:08 +01:00
Pierre-Yves Chibon
22b5207726 Enable the fedmsg hook from pagure on dist-git
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-01-05 10:06:14 +01:00
Kevin Fenzi
37c7bf8b21 try increasing this to make src.fp.o more responsive 2017-11-24 19:51:35 +00:00
Patrick Uiterwijk
4ebdf4c1f0 Make pkgs02 active fedmsg
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-10-04 21:15:14 +00:00
Pierre-Yves Chibon
ca65bb4ecb Turn on pagure/fedmsg on dist-git prod 2017-10-04 19:18:50 +02:00
Kevin Fenzi
e17ce6d801 re-open git://pkgs for now until fedpkg is ready 2017-09-26 15:56:19 +00:00
Kevin Fenzi
2f9504efa8 no external git:// cloning pleaase 2017-09-25 20:52:38 +00:00
Pierre-Yves Chibon
34d7c7652b Looks like it works in stg, let's try in prod 2017-08-17 11:38:57 +02:00
Nick Bebout
a6ad9e2c05 Add sysadmin-veteran everywhere sysadmin-noc is 2017-06-12 03:09:13 +00:00
Ralph Bean
8e60dca881 fedmsg config for pagure on dist-git. 2017-02-28 18:42:32 +00:00
Kevin Fenzi
14745d3285 Update clamav false positives list. 2016-08-31 19:55:26 +00:00
Dennis Gilmore
515551119e change sysadmin-build for sysadmin-releng
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2016-07-18 16:43:54 +00:00
Ralph Bean
9ffcd0a1ef Revert "Revert "Set git_basepath to not include rpms, so the namespacing version works.""
This reverts commit c5143cfbab.

Revert war!
2016-03-21 16:15:15 +00:00
Kevin Fenzi
c5143cfbab Revert "Set git_basepath to not include rpms, so the namespacing version works."
This reverts commit c5d30c4ee6.
2016-03-21 15:29:50 +00:00
Kevin Fenzi
c5d30c4ee6 Set git_basepath to not include rpms, so the namespacing version works. 2016-03-21 14:29:54 +00:00
Pierre-Yves Chibon
1cb956501e Point the base git to repository/rpms 2015-12-21 12:10:11 +01:00
Pierre-Yves Chibon
5b6ce80a6b Move rpms to repositories on all scripts 2015-12-21 11:22:25 +01:00
Ralph Bean
47dfa809d5 Explicitly list all certs that can send the logger.log fedmsg message. 2015-12-03 19:30:08 +00:00
Ralph Bean
bb59d9a1ac Correct the fedmsg policy for the pkgs box. 2015-06-16 13:52:49 +00:00
Ralph Bean
5e0598b6e5 Declare who can send what fedmsg stuff from pkgs01. 2015-06-12 19:08:34 +00:00
Pierre-Yves Chibon
bfd3eba918 Move the user used by the git-daemon service to be a variable 2015-05-13 16:05:06 +02:00
Kevin Fenzi
686a187418 Add virus scan exclude for false positive. 2015-03-31 13:54:58 +00:00