Commit Graph

260 Commits

Author SHA1 Message Date
Kevin Fenzi
aa5c7bac75 ipa / client / sssd: add rawhide to filter and fix syntax error
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-17 18:05:41 -07:00
Michal Konecny
b8ea561123 [ipa/server] Remove RHEL 8 entries
We only now run IPA on RHEL 9, so let's clean the playbook a little bit.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-07-11 12:15:13 +00:00
Pavel Raiskup
23275c26ea Revert "copr-hypervisor/ipa-client: debug variable"
This reverts commit 9daef0d257.
2024-02-13 00:04:20 +01:00
Pavel Raiskup
9daef0d257 copr-hypervisor/ipa-client: debug variable 2024-02-12 23:55:16 +01:00
Kevin Fenzi
1c2e14769c koji / hub: deny any tagging for draft builds currently
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-06 12:12:50 -08:00
Michal Konecny
cd3534157e [ipa/server] Update ipa01 to RHEL9
Let's try to update ipa01 to RHEL9 and replace the broken ipa01 machine.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-01-24 14:59:46 +01:00
Michal Konecny
51a2ab7e73 [ipa/server] Reinstall ipa03 from scratch
This will create the ipa03 server from scratch.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-01-22 20:03:44 +00:00
Michal Konecny
dd2093e4c6 [ipa/server] Move ipa-rewrite.conf to templates
There are some variables that need to be filled in ipa-rewrite.conf, but it was
not in template directory, so that didn't happen.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 21:57:19 +01:00
Michal Konecny
77b00429d4 [IPA] Fix syntax issue
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 17:37:29 +01:00
Michal Konecny
df9d9a0d51 [IPA] Use ipa_server variable where posible
Don't use hardcoded ipa01, use ipa_server variable instead that is set in group_vars.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 17:29:15 +01:00
Michal Konecny
3858d5841d [IPA] Prepare for staging ipa01 update to RHEL 9
To deploy the ipa01 again we need to remove it from server first. This will need
to be reverted after deployment.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 17:15:54 +01:00
Michal Konecny
f4ebb6d0d7 [ipa/server] Fix the parameters for topologysegment-add
I forgot to use the '--' for the flags and used
`hostvars[item]['ansible_hostname']` instead of just item.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 13:20:03 +01:00
Michal Konecny
315ff4be8a [ipa/server] Concatenate the strings correctly
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 13:03:19 +01:00
Michal Konecny
3d200881c4 [ipa/server] Explicitly mark '-' as string
Previous change split the argument to two, which caused error in number of
parameters for the command. Let's try if this will fix it.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 12:48:56 +01:00
Michal Konecny
f7cb379e43 [ipa/server] Fix AnsibleUnsafeText error
The `-` character was evaluated as subtract operation, this should fix that issue.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 12:34:53 +01:00
Michal Konecny
3d47ce35e4 [ipa/server] Add missing topology segments
This command adds missing topology segments to already existing IPA nodes.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 08:40:57 +00:00
Michal Konecny
03edf77f12 [IPA] Start the clean step unattended
This needs user input if not run with --unattended. Let's add this parameter to
fix that.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-16 14:14:42 +01:00
Michal Konecny
405c6a4953 [IPA] Clean client installation before running replica on RHEL 9
On RHEL9 ipa-replica-install fails if there is already client installed with
"Your system is partly configured." To prevent this we need to uninstall the
existing installation before trying to do replica.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-16 13:56:55 +01:00
Michal Konecny
84c25cad71 [IPA] Fix syntax issue
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-16 12:54:53 +01:00
Michal Konecny
a3112de954 [IPA] Remove creates parameter from deploy replica
The deploy replica step wasn't executed because it's checking if
`/etc/ipa/default.conf` exists. Remove that and use only the return code from
ipactl to check if the replication is done.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-16 12:39:36 +01:00
Michal Konecny
0969fed462 [IPA] Ignore errors when determining replication status
The ipactl status returns non 0 code when the IPA server is not set yet. We need
to ignore the error code when checking that.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-16 12:22:01 +01:00
Michal Konecny
3e349c80ec [IPA] Use ipactl status output for replication check
As the /etc/ipa/default.conf is already created by ipa/client role, we need to
find another way to check if replication is needed. Calling `ipactl status`
should be more reliable.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-16 12:06:22 +01:00
Aurélien Bompard
94478cc88b Install IPA replicas with a larger nsslapd-maxsasliosize
Related to https://pagure.io/fedora-infrastructure/issue/10358

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-11-09 09:33:15 +00:00
Aurélien Bompard
f6e6921655 Factor the replication tasks in a block
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-11-09 09:33:15 +00:00
Kevin Fenzi
1c43429266 ipa / client: just remove the sshd override file
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-09-20 12:10:32 -07:00
Kevin Fenzi
308ff1a8ce Revert "ipa / client: pass --no-sshd to client enroll"
This reverts commit df1445a64b.

Turns out we do have to enable sshd on client enroll because it passes
'ssh' to services in sssd.conf, which we need to get ssh keys for users.
:( Instead will try another approach.
2023-09-20 12:07:06 -07:00
Kevin Fenzi
df1445a64b ipa / client: pass --no-sshd to client enroll
In RHEL9, ipa-enroll-client by default adds a
/etc/ssh/sshd_config.d/04-ipa.conf file with some sshd configuration.
Almost all of these things are things we already set in our sshd_config,
but one of them causes sshd to enable password (and 2nd factor required)
auth. We don't want this, we only want to allow ssh keys.
So, pass --no-sshd to enrollment and that should prevent it from
messing with our sshd config.

I have also removed this file and reloaded sshd all around.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-09-20 10:52:17 -07:00
Michal Konecny
8a6b5a7c65 [IPA-Server]Don't install pynag on RHEL9
pynag is not available on rhel9 yet.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-09-20 15:56:10 +02:00
Kevin Fenzi
cf5ca54701 ipa: exclude the ipa postgres user in favor of local one
We have a postgres user in ipa to prevent people from making an account
with that name, but we need/want to use a local version of this on
database servers, not the ipa one. We need the local one because the ipa
one is locked and this prevents database backups from working.
(Locked accounts can't run cron jobs).

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-07 16:52:25 -07:00
Kevin Fenzi
6720b82d01 ipa/client: try and sort this so it does not change from run to run
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-04-04 13:03:37 -07:00
Kevin Fenzi
4df0d9e28f ipa/client: hbac check Set this to not be changed since it's a check
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-04-04 13:02:46 -07:00
Kevin Fenzi
6aa0ea662a ipa / server: enable sweeper on prod too now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-15 11:28:48 -07:00
Kevin Fenzi
d98e32a15b ipa / staging: set sweepeer job to not output stdout to cron
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-06 10:11:40 -08:00
Kevin Fenzi
11496398d0 ipa / staging: adjust the sweeper cron job.
Right now since minutes aren't specified, it runs it every minute of
03. ;(

Also provide full path to script.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-02 20:11:06 -08:00
Andrew Heath
ce6005e573 Updateing the sweeper command and setting it to run only on the stage
env
2023-03-02 14:57:14 -05:00
Kevin Fenzi
30ae8977c6 ipa / server: disable sweeper for now until we can sort out the issues with it
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-21 11:39:29 -08:00
Andrew Heath
3aa8c192eb Fixing lint issues so zull is happy 2023-02-21 19:14:21 +00:00
Andrew Heath
a128021328 Adding Sweeper to clean up expired tokens 2023-02-21 19:14:21 +00:00
Kevin Fenzi
ef40f9ea6e ipa / server: fix too many newlines
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-21 11:11:30 -08:00
Kevin Fenzi
39e20b5e36 ipa / server: fix trailing whitespace
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-21 11:09:27 -08:00
Kevin Fenzi
25484cc0a1 ipa / hbac: lower case sudo group
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-14 12:24:19 -08:00
Kevin Fenzi
e2a5be9575 put nolog back
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-13 15:39:35 -08:00
Kevin Fenzi
d943c375e6 temp disable nolog here to gather debugging info
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-13 15:21:40 -08:00
Kevin Fenzi
e42b099606 ipa / client: try not double delegating
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-13 15:12:51 -08:00
Kevin Fenzi
e2fdd2826a temp disable nolog here to gather debugging info
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-13 15:00:22 -08:00
Pavel Raiskup
e804c8ff01 ipa/service: add missing tags for the "fail" task 2022-11-23 15:07:46 +01:00
Pavel Raiskup
c59e68a986 ipa/service: don't fail if service already exists
Relates: https://pagure.io/fedora-infra/ansible/pull-request/1259
2022-11-23 15:03:41 +01:00
Pavel Raiskup
8d3cbc375e ipa/service: drop the PR I merged
The 'stat' can't work because "{{ service }}/{{ host }}" isn't a real
path name.

Revert "check if ipa service entry exists"

This reverts commit 98475f6ae4.
2022-11-23 14:50:50 +01:00
Seddik Alaoui Ismaili
98475f6ae4 check if ipa service entry exists 2022-11-23 13:31:10 +00:00
Kevin Fenzi
527d8cda18 sssd: exclude rabbitmq user also
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-10-03 16:12:55 -07:00