aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-08-13 01:12:20 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-08-14 13:24:32 +0200
commit9fcc3f8faac4a24fb97fff87a4a49bf362967fa2 (patch)
tree2a48678d9b86b3eeb73f60d6f3ff3774bc537231
parent81ec6f92f400f667c2ce9d879396bfff00ec5bb2 (diff)
downloadPuppet-9fcc3f8faac4a24fb97fff87a4a49bf362967fa2.tar.gz
Puppet-9fcc3f8faac4a24fb97fff87a4a49bf362967fa2.tar.zst
Puppet-9fcc3f8faac4a24fb97fff87a4a49bf362967fa2.zip
Add kerberos client profile
-rw-r--r--modules/profile/files/kerberos/krb5_client.conf12
-rw-r--r--modules/profile/manifests/kerberos/client.pp7
-rw-r--r--modules/role/manifests/file_store.pp1
3 files changed, 20 insertions, 0 deletions
diff --git a/modules/profile/files/kerberos/krb5_client.conf b/modules/profile/files/kerberos/krb5_client.conf
new file mode 100644
index 0000000..3fce983
--- /dev/null
+++ b/modules/profile/files/kerberos/krb5_client.conf
@@ -0,0 +1,12 @@
1[libdefaults]
2 default_realm = IMMAE.EU
3
4[realms]
5 IMMAE.EU = {
6 kdc = kerberos.immae.eu
7 admin_server = kerberos.immae.eu
8 }
9
10[domain_realm]
11 immae.eu = IMMAE.EU
12 .immae.eu = IMMAE.EU
diff --git a/modules/profile/manifests/kerberos/client.pp b/modules/profile/manifests/kerberos/client.pp
new file mode 100644
index 0000000..1f1f2cd
--- /dev/null
+++ b/modules/profile/manifests/kerberos/client.pp
@@ -0,0 +1,7 @@
1class profile::kerberos::client {
2 ensure_packages(["krb5", "cyrus-sasl-gssapi"])
3
4 file { "/etc/krb5.conf":
5 source => "puppet:///modules/profile/kerberos/krb5_client.conf"
6 }
7}
diff --git a/modules/role/manifests/file_store.pp b/modules/role/manifests/file_store.pp
index 1d3ee49..ec12d75 100644
--- a/modules/role/manifests/file_store.pp
+++ b/modules/role/manifests/file_store.pp
@@ -7,6 +7,7 @@ class role::file_store (
7 include "profile::fstab" 7 include "profile::fstab"
8 include "profile::tools" 8 include "profile::tools"
9 include "profile::monitoring" 9 include "profile::monitoring"
10 include "profile::kerberos::client"
10 11
11 unless empty($mountpoint) { 12 unless empty($mountpoint) {
12 class { "::nfs": 13 class { "::nfs":