library/ipatest.py: Drop unused prinipal from module parameters

The principal is not used and needed in the module, therefore it got removed.
This commit is contained in:
Thomas Woerner
2017-10-05 10:39:43 +02:00
parent c696ea3ebf
commit 6482a0d1c3
2 changed files with 0 additions and 8 deletions

View File

@@ -51,9 +51,6 @@ options:
kdc: kdc:
description: The name or address of the host running the KDC. description: The name or address of the host running the KDC.
required: true required: true
principal:
description: The authorized kerberos principal used to join the IPA realm.
required: false
kinit_attempts: kinit_attempts:
description: Repeat the request for host Kerberos ticket X times. description: Repeat the request for host Kerberos ticket X times.
required: false required: false
@@ -71,7 +68,6 @@ EXAMPLES = '''
realm: EXAMPLE.COM realm: EXAMPLE.COM
kdc: server1.example.com kdc: server1.example.com
hostname: client1.example.com hostname: client1.example.com
principal: admin
kinit_attempts: 5 kinit_attempts: 5
# Join IPA to get the keytab using ipadiscovery return values # Join IPA to get the keytab using ipadiscovery return values
@@ -82,7 +78,6 @@ EXAMPLES = '''
realm: "{{ ipadiscovery.realm }}" realm: "{{ ipadiscovery.realm }}"
kdc: "{{ ipadiscovery.kdc }}" kdc: "{{ ipadiscovery.kdc }}"
hostname: "{{ ipadiscovery.hostname }}" hostname: "{{ ipadiscovery.hostname }}"
principal: admin
''' '''
RETURN = ''' RETURN = '''
@@ -176,7 +171,6 @@ def main():
realm=dict(required=True), realm=dict(required=True),
hostname=dict(required=True), hostname=dict(required=True),
kdc=dict(required=True), kdc=dict(required=True),
principal=dict(required=False),
kinit_attempts=dict(required=False, type='int', default=5), kinit_attempts=dict(required=False, type='int', default=5),
), ),
supports_check_mode = True, supports_check_mode = True,
@@ -188,7 +182,6 @@ def main():
realm = module.params.get('realm') realm = module.params.get('realm')
hostname = module.params.get('hostname') hostname = module.params.get('hostname')
kdc = module.params.get('kdc') kdc = module.params.get('kdc')
principal = module.params.get('principal')
kinit_attempts = module.params.get('kinit_attempts') kinit_attempts = module.params.get('kinit_attempts')
client_domain = hostname[hostname.find(".")+1:] client_domain = hostname[hostname.find(".")+1:]

View File

@@ -35,7 +35,6 @@
realm: "{{ ipadiscovery.realm }}" realm: "{{ ipadiscovery.realm }}"
hostname: "{{ ipadiscovery.hostname }}" hostname: "{{ ipadiscovery.hostname }}"
kdc: "{{ ipadiscovery.kdc }}" kdc: "{{ ipadiscovery.kdc }}"
principal: "{{ ipaadmin_principal if not ipaclient_use_otp | bool else '' }}"
kinit_attempts: "{{ ipaclient_kinit_attempts | default(omit) }}" kinit_attempts: "{{ ipaclient_kinit_attempts | default(omit) }}"
register: ipatest register: ipatest