mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
library/ipajoin.py: Doc updates, renamed ca_certs_file
Documentation for domain, principal, keytab, ca_cert_file and kinit_attempts has been added. ca_certs_file has been renamed to ca_cert_file as it is used in ipa-client-install.
This commit is contained in:
@@ -43,17 +43,33 @@ options:
|
|||||||
description: The Kerberos realm of an existing IPA deployment.
|
description: The Kerberos realm of an existing IPA deployment.
|
||||||
required: true
|
required: true
|
||||||
kdc:
|
kdc:
|
||||||
description:
|
description: The name or address of the host running the KDC.
|
||||||
required: true
|
required: true
|
||||||
hostname:
|
hostname:
|
||||||
description: The hostname of the machine to join (FQDN).
|
description: The hostname of the machine to join (FQDN).
|
||||||
required: false
|
required: false
|
||||||
|
domain:
|
||||||
|
description: The primary DNS domain of an existing IPA deployment.
|
||||||
|
required: false
|
||||||
force_join:
|
force_join:
|
||||||
description: Force enrolling the host even if host entry exists.
|
description: Force enrolling the host even if host entry exists.
|
||||||
required: false
|
required: false
|
||||||
|
principal:
|
||||||
|
description: The authorized kerberos principal used to join the IPA realm.
|
||||||
|
required: false
|
||||||
|
default: admin
|
||||||
password:
|
password:
|
||||||
description: The password to use if not using Kerberos to authenticate.
|
description: The password to use if not using Kerberos to authenticate.
|
||||||
required: false
|
required: false
|
||||||
|
keytab:
|
||||||
|
description: The path to a backed-up host keytab from previous enrollment.
|
||||||
|
required: false
|
||||||
|
ca_cert_file:
|
||||||
|
description: A CA certificate to use. Do not acquire the IPA CA certificate via automated means.
|
||||||
|
required: false
|
||||||
|
kinit_attempts:
|
||||||
|
description: Repeat the request for host Kerberos ticket X times.
|
||||||
|
required: false
|
||||||
author:
|
author:
|
||||||
- Thomas Woerner
|
- Thomas Woerner
|
||||||
'''
|
'''
|
||||||
@@ -92,7 +108,7 @@ def main():
|
|||||||
principal=dict(required=False),
|
principal=dict(required=False),
|
||||||
password=dict(required=False),
|
password=dict(required=False),
|
||||||
keytab=dict(required=False),
|
keytab=dict(required=False),
|
||||||
ca_certs_file=dict(required=False),
|
ca_cert_file=dict(required=False),
|
||||||
kinit_attempts=dict(required=False, type='int'),
|
kinit_attempts=dict(required=False, type='int'),
|
||||||
),
|
),
|
||||||
# required_one_of = ( [ '', '' ] ),
|
# required_one_of = ( [ '', '' ] ),
|
||||||
@@ -110,7 +126,7 @@ def main():
|
|||||||
principal = module.params.get('principal')
|
principal = module.params.get('principal')
|
||||||
password = module.params.get('password')
|
password = module.params.get('password')
|
||||||
keytab = module.params.get('keytab')
|
keytab = module.params.get('keytab')
|
||||||
ca_certs_file = module.params.get('ca_certs_file')
|
ca_cert_file = module.params.get('ca_cert_file')
|
||||||
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:]
|
||||||
@@ -123,7 +139,7 @@ def main():
|
|||||||
class Object(object):
|
class Object(object):
|
||||||
pass
|
pass
|
||||||
options = Object()
|
options = Object()
|
||||||
options.ca_cert_file = ca_certs_file
|
options.ca_cert_file = ca_cert_file
|
||||||
options.unattended = True
|
options.unattended = True
|
||||||
options.principal = principal
|
options.principal = principal
|
||||||
options.password = password
|
options.password = password
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
principal: "{{ ipaclient_principal | default(omit) }}"
|
principal: "{{ ipaclient_principal | default(omit) }}"
|
||||||
password: "{{ ipaclient_password | default(omit) }}"
|
password: "{{ ipaclient_password | default(omit) }}"
|
||||||
keytab: "{{ ipaclient_keytab | default(omit) }}"
|
keytab: "{{ ipaclient_keytab | default(omit) }}"
|
||||||
#ca_certs_file: "{{ ipaclient_ca_certs_file | default(omit) }}"
|
#ca_cert_file: "{{ ipaclient_ca_cert_file | default(omit) }}"
|
||||||
kinit_attempts: "{{ ipaclient_kinit_attempts | default(omit) }}"
|
kinit_attempts: "{{ ipaclient_kinit_attempts | default(omit) }}"
|
||||||
|
|
||||||
#- name: Configure krb5
|
#- name: Configure krb5
|
||||||
|
|||||||
Reference in New Issue
Block a user