Skip to content
Snippets Groups Projects
Unverified Commit 3cc17a43 authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #974 from dkarpele/dkarpele-919

Add subid option to select the sssd profile with-subid.
parents 87afc56e 2b0b7db0
Branches
Tags
No related merge requests found
...@@ -183,6 +183,7 @@ Variable | Description | Required ...@@ -183,6 +183,7 @@ Variable | Description | Required
`ipaclient_no_ssh` | The bool value defines if OpenSSH client will be configured. `ipaclient_no_ssh` defaults to `no`. | no `ipaclient_no_ssh` | The bool value defines if OpenSSH client will be configured. `ipaclient_no_ssh` defaults to `no`. | no
`ipaclient_no_sshd` | The bool value defines if OpenSSH server will be configured. `ipaclient_no_sshd` defaults to `no`. | no `ipaclient_no_sshd` | The bool value defines if OpenSSH server will be configured. `ipaclient_no_sshd` defaults to `no`. | no
`ipaclient_no_sudo` | The bool value defines if SSSD will be configured as a data source for sudo. `ipaclient_no_sudo` defaults to `no`. | no `ipaclient_no_sudo` | The bool value defines if SSSD will be configured as a data source for sudo. `ipaclient_no_sudo` defaults to `no`. | no
`ipaclient_subid` | The bool value defines if SSSD will be configured as a data source for subid. `ipaclient_subid` defaults to `no`. | no
`ipaclient_no_dns_sshfp` | The bool value defines if DNS SSHFP records will not be created automatically. `ipaclient_no_dns_sshfp` defaults to `no`. | no `ipaclient_no_dns_sshfp` | The bool value defines if DNS SSHFP records will not be created automatically. `ipaclient_no_dns_sshfp` defaults to `no`. | no
`ipaclient_force` | The bool value defines if settings will be forced even in the error case. `ipaclient_force` defaults to `no`. | no `ipaclient_force` | The bool value defines if settings will be forced even in the error case. `ipaclient_force` defaults to `no`. | no
`ipaclient_force_ntpd` | The bool value defines if ntpd usage will be forced. This is not supported anymore and leads to a warning. `ipaclient_force_ntpd` defaults to `no`. | no `ipaclient_force_ntpd` | The bool value defines if ntpd usage will be forced. This is not supported anymore and leads to a warning. `ipaclient_force_ntpd` defaults to `no`. | no
......
...@@ -13,6 +13,7 @@ ipaclient_ssh_trust_dns: no ...@@ -13,6 +13,7 @@ ipaclient_ssh_trust_dns: no
ipaclient_no_ssh: no ipaclient_no_ssh: no
ipaclient_no_sshd: no ipaclient_no_sshd: no
ipaclient_no_sudo: no ipaclient_no_sudo: no
ipaclient_subid: no
ipaclient_no_dns_sshfp: no ipaclient_no_dns_sshfp: no
ipaclient_force: no ipaclient_force: no
ipaclient_force_ntpd: no ipaclient_force_ntpd: no
......
...@@ -125,6 +125,10 @@ options: ...@@ -125,6 +125,10 @@ options:
description: Do not configure SSSD as data source for sudo description: Do not configure SSSD as data source for sudo
type: bool type: bool
required: no required: no
subid:
description: Configure SSSD as data source for subid
type: bool
required: no
fixed_primary: fixed_primary:
description: Configure sssd to use fixed server as primary IPA server description: Configure sssd to use fixed server as primary IPA server
type: bool type: bool
...@@ -208,6 +212,7 @@ def main(): ...@@ -208,6 +212,7 @@ def main():
no_ssh=dict(required=False, type='bool'), no_ssh=dict(required=False, type='bool'),
no_sshd=dict(required=False, type='bool'), no_sshd=dict(required=False, type='bool'),
no_sudo=dict(required=False, type='bool'), no_sudo=dict(required=False, type='bool'),
subid=dict(required=False, type='bool'),
fixed_primary=dict(required=False, type='bool'), fixed_primary=dict(required=False, type='bool'),
permit=dict(required=False, type='bool'), permit=dict(required=False, type='bool'),
no_krb5_offline_passwords=dict(required=False, type='bool'), no_krb5_offline_passwords=dict(required=False, type='bool'),
...@@ -251,6 +256,7 @@ def main(): ...@@ -251,6 +256,7 @@ def main():
options.conf_sshd = not options.no_sshd options.conf_sshd = not options.no_sshd
options.no_sudo = module.params.get('no_sudo') options.no_sudo = module.params.get('no_sudo')
options.conf_sudo = not options.no_sudo options.conf_sudo = not options.no_sudo
options.subid = module.params.get('subid')
options.primary = module.params.get('fixed_primary') options.primary = module.params.get('fixed_primary')
options.permit = module.params.get('permit') options.permit = module.params.get('permit')
options.no_krb5_offline_passwords = module.params.get( options.no_krb5_offline_passwords = module.params.get(
...@@ -430,19 +436,17 @@ def main(): ...@@ -430,19 +436,17 @@ def main():
# Modify nsswitch/pam stack # Modify nsswitch/pam stack
# pylint: disable=deprecated-method # pylint: disable=deprecated-method
argspec = getargspec(tasks.modify_nsswitch_pam_stack) argspec = getargspec(tasks.modify_nsswitch_pam_stack)
the_options = {
"sssd": options.sssd,
"mkhomedir": options.mkhomedir,
"statestore": statestore,
}
if "sudo" in argspec.args: if "sudo" in argspec.args:
tasks.modify_nsswitch_pam_stack( the_options["sudo"] = options.conf_sudo
sssd=options.sssd, if "subid" in argspec.args:
mkhomedir=options.mkhomedir, the_options["subid"] = options.subid
statestore=statestore,
sudo=options.conf_sudo tasks.modify_nsswitch_pam_stack(**the_options)
)
else:
tasks.modify_nsswitch_pam_stack(
sssd=options.sssd,
mkhomedir=options.mkhomedir,
statestore=statestore
)
if hasattr(paths, "AUTHSELECT") and paths.AUTHSELECT is not None: if hasattr(paths, "AUTHSELECT") and paths.AUTHSELECT is not None:
# authselect is used # authselect is used
......
...@@ -378,6 +378,7 @@ ...@@ -378,6 +378,7 @@
no_ssh: "{{ ipaclient_no_ssh }}" no_ssh: "{{ ipaclient_no_ssh }}"
no_sshd: "{{ ipaclient_no_sshd }}" no_sshd: "{{ ipaclient_no_sshd }}"
no_sudo: "{{ ipaclient_no_sudo }}" no_sudo: "{{ ipaclient_no_sudo }}"
subid: "{{ ipaclient_subid }}"
fixed_primary: "{{ ipassd_fixed_primary fixed_primary: "{{ ipassd_fixed_primary
| default(ipasssd_fixed_primary) }}" | default(ipasssd_fixed_primary) }}"
permit: "{{ ipassd_permit | default(ipasssd_permit) }}" permit: "{{ ipassd_permit | default(ipasssd_permit) }}"
......
...@@ -200,6 +200,7 @@ Variable | Description | Required ...@@ -200,6 +200,7 @@ Variable | Description | Required
`ipaclient_no_ssh` | The bool value defines if OpenSSH client will be configured. (bool, default: false) | no `ipaclient_no_ssh` | The bool value defines if OpenSSH client will be configured. (bool, default: false) | no
`ipaclient_no_sshd` | The bool value defines if OpenSSH server will be configured. (bool, default: false) | no `ipaclient_no_sshd` | The bool value defines if OpenSSH server will be configured. (bool, default: false) | no
`ipaclient_no_sudo` | The bool value defines if SSSD will be configured as a data source for sudo. (bool, default: false) | no `ipaclient_no_sudo` | The bool value defines if SSSD will be configured as a data source for sudo. (bool, default: false) | no
`ipaclient_subid` | The bool value defines if SSSD will be configured as a data source for subid. (bool, default: false) | no
`ipaclient_no_dns_sshfp` | The bool value defines if DNS SSHFP records will not be created automatically. (bool, default: false) | no `ipaclient_no_dns_sshfp` | The bool value defines if DNS SSHFP records will not be created automatically. (bool, default: false) | no
Certificate system Variables Certificate system Variables
......
...@@ -252,6 +252,7 @@ Variable | Description | Required ...@@ -252,6 +252,7 @@ Variable | Description | Required
`ipaclient_no_ssh` | The bool value defines if OpenSSH client will be configured. `ipaclient_no_ssh` defaults to `no`. | no `ipaclient_no_ssh` | The bool value defines if OpenSSH client will be configured. `ipaclient_no_ssh` defaults to `no`. | no
`ipaclient_no_sshd` | The bool value defines if OpenSSH server will be configured. `ipaclient_no_sshd` defaults to `no`. | no `ipaclient_no_sshd` | The bool value defines if OpenSSH server will be configured. `ipaclient_no_sshd` defaults to `no`. | no
`ipaclient_no_sudo` | The bool value defines if SSSD will be configured as a data source for sudo. `ipaclient_no_sudo` defaults to `no`. | no `ipaclient_no_sudo` | The bool value defines if SSSD will be configured as a data source for sudo. `ipaclient_no_sudo` defaults to `no`. | no
`ipaclient_subid` | The bool value defines if SSSD will be configured as a data source for subid. `ipaclient_subid` defaults to `no`. | no
`ipaclient_no_dns_sshfp` | The bool value defines if DNS SSHFP records will not be created automatically. `ipaclient_no_dns_sshfp` defaults to `no`. | no `ipaclient_no_dns_sshfp` | The bool value defines if DNS SSHFP records will not be created automatically. `ipaclient_no_dns_sshfp` defaults to `no`. | no
Certificate system Variables Certificate system Variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment