From 9fcc3f8faac4a24fb97fff87a4a49bf362967fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 13 Aug 2018 01:12:20 +0200 Subject: Add kerberos client profile --- modules/profile/files/kerberos/krb5_client.conf | 12 ++++++++++++ modules/profile/manifests/kerberos/client.pp | 7 +++++++ modules/role/manifests/file_store.pp | 1 + 3 files changed, 20 insertions(+) create mode 100644 modules/profile/files/kerberos/krb5_client.conf create mode 100644 modules/profile/manifests/kerberos/client.pp 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": -- cgit v1.2.3