https://github.com/victorock/ansible-role-ipaclient
https://github.com/victorock/ansible-role-ipaclient
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/victorock/ansible-role-ipaclient
- Owner: victorock
- License: gpl-3.0
- Created: 2017-10-05T22:31:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T10:00:15.000Z (about 7 years ago)
- Last Synced: 2025-01-11T06:10:10.662Z (4 months ago)
- Language: Python
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
ipaclient role
==============Description
-----------This role allows to join hosts as clients to an IPA domain. This can be done in differnt ways using auto-discovery of the servers, domain and other settings or by specifying them.
Usage
-----Example inventory file with fixed principal using auto-discovery with DNS records:
[ipaclients]
ipaclient1.example.com
ipaclient2.example.com[ipaclients:vars]
ipaadmin_principal=adminExample playbook to setup the IPA client(s) using principal from inventory file and password from an [Ansible Vault](http://docs.ansible.com/ansible/latest/playbooks_vault.html) file:
- name: Playbook to configure IPA clients with username/password
hosts: ipaclients
become: true
vars_files:
- playbook_sensitive_data.ymltasks:
- include_role:
name: ipaclient
tasks_from: run
vars:
state: presentExample playbook to unconfigure the IPA client(s) using principal and password from inventory file:
- name: Playbook to unconfigure IPA clients
hosts: ipaclients
become: truetasks:
- include_role:
name: ipaclient
tasks_from: run
vars:
state: basentExample inventory file with fixed servers, principal, password and domain:
[ipaclients]
ipaclient1.example.com
ipaclient2.example.com[ipaservers]
ipaserver.example.com[ipaclients:vars]
ipaclient_domain=example.com
ipaadmin_principal=admin
ipaadmin_password=MySecretPassword123Example playbook to setup the IPA client(s) using principal and password from inventory file:
- name: Playbook to configure IPA clients with username/password
hosts: ipaclients
become: truetasks:
- include_role:
name: ipaclient
tasks_from: run
vars:
state: presentVariables
---------**ipaservers** - Group of IPA server hostnames.
(list of strings, optional)**ipaclients** - Group of IPA client hostnames.
(list of strings)**ipaadmin_keytab** - The path to the admin keytab used for alternative authentication.
(string, optional)**ipaadmin_principal** - The authorized kerberos principal used to join the IPA realm.
(string, optional)**ipaadmin_password** - The password for the kerberos principal.
(string, optional)**ipaclient_domain** - The primary DNS domain of an existing IPA deployment.
(string, optional)**ipaclient_realm** - The Kerberos realm of an existing IPA deployment.
(string, optional)**ipaclient_keytab** - The path to a backed-up host keytab from previous enrollment.
(string, optional)**ipaclient_force_join** - Set force_join to yes to join the host even if it is already enrolled.
(bool, optional)**ipaclient_use_otp** - Enforce the generation of a one time password to configure new and existing hosts. The enforcement on an existing host is not done if there is a working krb5.keytab on the host. If the generation of an otp is enforced for an existing host entry, then the host gets diabled and the containing keytab gets removed.
(bool, optional)**ipaclient_allow_repair** - Allow repair of already joined hosts. Contrary to ipaclient_force_join the host entry will not be changed on the server.
(bool, optional)**ipaclient_kinit_attempts** - Repeat the request for host Kerberos ticket X times if it fails.
(int, optional)**ipaclient_ntp** - Set to no to not configure and enable NTP
(bool, optional)**ipaclient_mkhomedir** - Set to yes to configure PAM to create a users home directory if it does not exist.
(string, optional)Requirements
------------freeipa-client v4.4 or later
Authors
-------Florence Blanc-Renaud
Thomas Woerner
Victor da Costa