From: Ismaƫl Bouya Date: Sun, 12 Aug 2018 23:12:20 +0000 (+0200) Subject: Add kerberos client profile X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9fcc3f8faac4a24fb97fff87a4a49bf362967fa2;p=perso%2FImmae%2FProjets%2FPuppet.git Add kerberos client profile --- 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 @@ +[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 index 0000000..1f1f2cd --- /dev/null +++ b/modules/profile/manifests/kerberos/client.pp @@ -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" + } +} 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 ( include "profile::fstab" include "profile::tools" include "profile::monitoring" + include "profile::kerberos::client" unless empty($mountpoint) { class { "::nfs":