summaryrefslogtreecommitdiff
path: root/roles/kerberos
diff options
context:
space:
mode:
Diffstat (limited to 'roles/kerberos')
-rw-r--r--roles/kerberos/meta/main.yaml3
-rw-r--r--roles/kerberos/tasks/main.yaml9
-rw-r--r--roles/kerberos/templates/krb5_prop_xinetd.j211
3 files changed, 23 insertions, 0 deletions
diff --git a/roles/kerberos/meta/main.yaml b/roles/kerberos/meta/main.yaml
new file mode 100644
index 0000000..98bb83d
--- /dev/null
+++ b/roles/kerberos/meta/main.yaml
@@ -0,0 +1,3 @@
+---
+dependencies:
+ - { role: xinetd }
diff --git a/roles/kerberos/tasks/main.yaml b/roles/kerberos/tasks/main.yaml
new file mode 100644
index 0000000..3bf3105
--- /dev/null
+++ b/roles/kerberos/tasks/main.yaml
@@ -0,0 +1,9 @@
+---
+# Setup kerberos
+- name: Install MIT Kerberos
+ apt: name=krb5-kdc state=present
+
+# Configure kerberos krb5_prop xinetd
+- name: Configure xinetd for krb5_prop
+ template: dest=/etc/xinetd.d/krb5_prop src=krb5_prop_xinetd.j2
+ notify: Restart xinetd
diff --git a/roles/kerberos/templates/krb5_prop_xinetd.j2 b/roles/kerberos/templates/krb5_prop_xinetd.j2
new file mode 100644
index 0000000..b614046
--- /dev/null
+++ b/roles/kerberos/templates/krb5_prop_xinetd.j2
@@ -0,0 +1,11 @@
+# {{ ansible_managed }}
+service krb5_prop
+{
+ id = krb5_prop
+ socket_type = stream
+ protocol = tcp
+ user = root
+ wait = no
+ bind = {{ ansible_default_ipv6.address }}
+ server = /usr/sbin/kpropd
+}