aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/freeipa_keytab/README.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/roles/freeipa_keytab/README.md b/roles/freeipa_keytab/README.md
new file mode 100644
index 0000000..60c1a1f
--- /dev/null
+++ b/roles/freeipa_keytab/README.md
@@ -0,0 +1,45 @@
+FreeIPA Keytab
+==============
+
+Description
+-----------
+
+The `freeipa_keytab` role retrieves an account's keytab from FreeIPA.
+
+Whenever a new keytab is fetched, the account's password is reset.
+
+
+Variables
+---------
+
+This role **accepts** the following variables:
+
+Variable | Default | Description
+-------------------|--------------------|------------
+`keytab_principal` |   | FreeIPA account principal (without realm component)
+`keytab_path` | `/etc/krb5.keytab` | Path to store keytab
+`keytab_owner` | `root` | Owner of keytab file
+`keytab_group` | `root` | Group owner of keytab file
+`keytab_mode` | 0600 | Permissions of keytab file
+
+
+Usage
+-----
+
+Example tasks:
+
+````yaml
+- name: create HTTP service principal
+ ipaservice:
+ ipaadmin_principal: '{{ ipa_user }}'
+ ipaadmin_password: '{{ ipa_pass }}'
+ name: 'HTTP/{{ ansible_fqdn }}'
+ state: present
+
+- name: retrieve HTTP keytab
+ include_role:
+ name: freeipa_keytab
+ vars:
+ keytab_principal: 'HTTP/{{ ansible_fqdn }}'
+ keytab_path: /etc/httpd/apache.keytab
+````