library/ipajoin.py: New module for ipajoin

The module is doing the important part of the code in ipa-client-install
to be able to use ipa-join on the client. get_ca_certs* from client.py are
used as a temporary solution.
This commit is contained in:
Thomas Woerner
2017-08-24 12:29:50 +02:00
parent 4dea948fda
commit 44e4ee7459
2 changed files with 260 additions and 0 deletions

View File

@@ -40,6 +40,20 @@
when: ipaclient_password is not defined and ipaclient_keytab is not defined
- name: Install - Join IPA
ipajoin:
servers: "{{ ipadiscovery.servers | default(omit) }}"
basedn: "{{ ipadiscovery.basedn | default(omit) }}"
realm: "{{ ipadiscovery.realm | default(omit) }}"
kdc: "{{ ipadiscovery.kdc | default(omit) }}"
hostname: "{{ ipadiscovery.hostname }}"
domain: "{{ ipadiscovery.domain | default(omit) }}"
force_join: "{{ ipaclient_force_join | default(omit) }}"
principal: "{{ ipaclient_principal | default(omit) }}"
password: "{{ ipaclient_password | default(omit) }}"
keytab: "{{ ipaclient_keytab | default(omit) }}"
#ca_certs_file: "{{ ipaclient_ca_certs_file | default(omit) }}"
kinit_attempts: "{{ ipaclient_kinit_attempts | default(omit) }}"
- name: Install - Configure IPA client
ipaclient: