Commit Graph

15 Commits

Author SHA1 Message Date
Ryan Lerch
462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10: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
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
Stephen Smoogen
14d9cbde02 put the task in a job which will run on the right system 2021-03-27 12:40:47 -04:00
Stephen Smoogen
48dc00ae84 Add a deep clean which restarts sssd and then cleans the cache in case of major config file changes 2021-03-27 12:28:48 -04:00
Stephen Smoogen
f7519b408b Allow sssd to ignore special users
Currently /etc/nsswitch.conf has configurations like

passwd:     sss files
shadow:     files sss
group:      sss files

The problem is that to make sure that certain users could not be
created in IPA (like nobody root etc), they were already created but
in a restricted group. In order to allow sss to work for postfix, nfs,
nobody and such, the sssd.conf needs to ignore them in the nss
section. This adds a file which will do that.

Signed-off-by: Stephen Smoogen <smooge@smoogespace.com>
2021-03-27 12:20:35 -04:00
Nils Philippsen
2e6819354f ipa/client: Don't trip over undefined group vars
With set_facts, if an element of a list is undefined, the containing
fact variable becomes a string. Something Sirius Cybernetics Corporation
something something.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-16 19:20:29 +01:00
Nils Philippsen
c394c808e6 ipa/client: Deal better with unset IPA variables
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-16 15:37:12 +01:00
Nils Philippsen
5521d83040 ipa/client: Deal with hosts without IPA settings
Don't attempt to loop over undefined variables. This can happen if the
relevant `ipa_*` variables aren't defined for any host in the play.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-16 14:16:40 +01:00
Nils Philippsen
2bf34099e2 ipa/client: Fix ensuring hosts exist in groups
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-12 18:08:03 +01:00
Nils Philippsen
3d1c5218f7 ipa/client: Combine operations on the IPA server
The reason for this is to avoid having to do the same or similar things
over and over again for each host in the play, especially since these
operations are delegated to the IPA server, i.e. had to run sequentially
host after host in order to avoid race conditions.

To achieve this, the IPA client related group variables are prepared in
suitable structures in `prepare-ipa-info.yml` and consumed by
`common.yml`, `hbac.yml` and `sudo.yml`, which do most operations in one
go per e.g. host group on the affected IPA server(s).

Additionally:
- Remove compat for legacy `fas_client_groups`, only check for its
  presence and warn.
- Remove the prepared but masked out task to manage password-less sudo
  access.
- Make yamllint a little happier on the changed files.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-12 14:25:25 +00:00
Nils Philippsen
502b3d48b0 ipa: More ansible_fqdn -> inventory_hostname
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-02 16:33:07 +01:00
Nils Philippsen
491514e8ba ipa/client: leave out unset host group description
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-01 22:23:41 +00:00
Nils Philippsen
d48d5c00b8 ipa/client: Use host groups for HBAC and sudo rules
Creating individual HBAC and sudo rules in IPA would quickly become
unwieldy.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-01-22 16:05:16 +00:00
Nils Philippsen
e63d94fc74 ipa/client: Add common IPA configuration
The `common.yml` sub-playbook runs tasks necessary for the `hbac.yml`
and `sudo.yml` sub-playbooks, but not specific to either.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-01-22 16:05:16 +00:00