From 74dba0e839b2ab5d89868556888a4029bd80343c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 5 Jan 2022 16:37:37 +0100 Subject: modules: Add krb5hostkeytab module. --- code/environments/production/modules/krb5hostkeytab/files | 1 + .../production/modules/krb5hostkeytab/manifests/init.pp | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 120000 code/environments/production/modules/krb5hostkeytab/files create mode 100644 code/environments/production/modules/krb5hostkeytab/manifests/init.pp (limited to 'code/environments/production/modules') diff --git a/code/environments/production/modules/krb5hostkeytab/files b/code/environments/production/modules/krb5hostkeytab/files new file mode 120000 index 0000000..113940b --- /dev/null +++ b/code/environments/production/modules/krb5hostkeytab/files @@ -0,0 +1 @@ +/etc/debian-edu/host-keytabs \ No newline at end of file diff --git a/code/environments/production/modules/krb5hostkeytab/manifests/init.pp b/code/environments/production/modules/krb5hostkeytab/manifests/init.pp new file mode 100644 index 0000000..b9eb1c8 --- /dev/null +++ b/code/environments/production/modules/krb5hostkeytab/manifests/init.pp @@ -0,0 +1,9 @@ +class krb5hostkeytab { + +file { "/etc/krb5.keytab": + mode => "0600", + owner => 'root', + group => 'root', + source => "puppet:///modules/krb5hostkeytab/${trusted[certname]}.keytab", + } +} -- cgit v1.2.3