mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ipa modules never updated to use 'name' attributes such as cn, uid, fqdn. This fixes. (#25851)
This commit is contained in:
parent
70e20bb571
commit
374872cac4
8 changed files with 8 additions and 8 deletions
|
@ -203,7 +203,7 @@ def get_group_diff(client, ipa_group, module_group):
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
name = module.params['name']
|
name = module.params['cn']
|
||||||
group = module.params['group']
|
group = module.params['group']
|
||||||
user = module.params['user']
|
user = module.params['user']
|
||||||
|
|
||||||
|
|
|
@ -234,7 +234,7 @@ def get_hbcarule_diff(client, ipa_hbcarule, module_hbcarule):
|
||||||
|
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
name = module.params['name']
|
name = module.params['cn']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
||||||
if state in ['present', 'enabled']:
|
if state in ['present', 'enabled']:
|
||||||
|
|
|
@ -215,7 +215,7 @@ def get_host_diff(client, ipa_host, module_host):
|
||||||
|
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
name = module.params['name']
|
name = module.params['fqdn']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
||||||
ipa_host = client.host_find(name=name)
|
ipa_host = client.host_find(name=name)
|
||||||
|
|
|
@ -163,7 +163,7 @@ def get_hostgroup_diff(client, ipa_hostgroup, module_hostgroup):
|
||||||
|
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
name = module.params['name']
|
name = module.params['cn']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
host = module.params['host']
|
host = module.params['host']
|
||||||
hostgroup = module.params['hostgroup']
|
hostgroup = module.params['hostgroup']
|
||||||
|
|
|
@ -230,7 +230,7 @@ def get_role_diff(client, ipa_role, module_role):
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
name = module.params['name']
|
name = module.params['cn']
|
||||||
group = module.params['group']
|
group = module.params['group']
|
||||||
host = module.params['host']
|
host = module.params['host']
|
||||||
hostgroup = module.params['hostgroup']
|
hostgroup = module.params['hostgroup']
|
||||||
|
|
|
@ -143,7 +143,7 @@ def get_sudocmdgroup_diff(client, ipa_sudocmdgroup, module_sudocmdgroup):
|
||||||
|
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
name = module.params['name']
|
name = module.params['cn']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
sudocmd = module.params['sudocmd']
|
sudocmd = module.params['sudocmd']
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ def category_changed(module, client, category_name, ipa_sudorule):
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
name = module.params['name']
|
name = module.params['cn']
|
||||||
cmd = module.params['cmd']
|
cmd = module.params['cmd']
|
||||||
cmdcategory = module.params['cmdcategory']
|
cmdcategory = module.params['cmdcategory']
|
||||||
host = module.params['host']
|
host = module.params['host']
|
||||||
|
|
|
@ -244,7 +244,7 @@ def get_ssh_key_fingerprint(ssh_key):
|
||||||
|
|
||||||
def ensure(module, client):
|
def ensure(module, client):
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
name = module.params['name']
|
name = module.params['uid']
|
||||||
nsaccountlock = state == 'disabled'
|
nsaccountlock = state == 'disabled'
|
||||||
|
|
||||||
module_user = get_user_dict(displayname=module.params.get('displayname'),
|
module_user = get_user_dict(displayname=module.params.get('displayname'),
|
||||||
|
|
Loading…
Reference in a new issue