]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add kerberos client profile
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 12 Aug 2018 23:12:20 +0000 (01:12 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 14 Aug 2018 11:24:32 +0000 (13:24 +0200)
modules/profile/files/kerberos/krb5_client.conf [new file with mode: 0644]
modules/profile/manifests/kerberos/client.pp [new file with mode: 0644]
modules/role/manifests/file_store.pp

diff --git a/modules/profile/files/kerberos/krb5_client.conf b/modules/profile/files/kerberos/krb5_client.conf
new file mode 100644 (file)
index 0000000..3fce983
--- /dev/null
@@ -0,0 +1,12 @@
+[libdefaults]
+  default_realm = IMMAE.EU
+
+[realms]
+  IMMAE.EU = {
+    kdc = kerberos.immae.eu
+    admin_server = kerberos.immae.eu
+  }
+
+[domain_realm]
+  immae.eu = IMMAE.EU
+  .immae.eu = IMMAE.EU
diff --git a/modules/profile/manifests/kerberos/client.pp b/modules/profile/manifests/kerberos/client.pp
new file mode 100644 (file)
index 0000000..1f1f2cd
--- /dev/null
@@ -0,0 +1,7 @@
+class profile::kerberos::client {
+  ensure_packages(["krb5", "cyrus-sasl-gssapi"])
+
+  file { "/etc/krb5.conf":
+    source => "puppet:///modules/profile/kerberos/krb5_client.conf"
+  }
+}
index 1d3ee495f967f449973edacd6465dab5cc204ef0..ec12d75f0ca0718c23a8fb52f761efa2573a5e6b 100644 (file)
@@ -7,6 +7,7 @@ class role::file_store (
   include "profile::fstab"
   include "profile::tools"
   include "profile::monitoring"
+  include "profile::kerberos::client"
 
   unless empty($mountpoint) {
     class { "::nfs":