summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-05 16:37:37 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-05 16:37:37 +0100
commit74dba0e839b2ab5d89868556888a4029bd80343c (patch)
tree3f50830ce870e9bc7f4fd28e0db6da9247236160
parent34058c08f34dc05ea6f804687c564ee63c9b85dd (diff)
downloadpuppet.SGM-74dba0e839b2ab5d89868556888a4029bd80343c.tar.gz
puppet.SGM-74dba0e839b2ab5d89868556888a4029bd80343c.tar.bz2
puppet.SGM-74dba0e839b2ab5d89868556888a4029bd80343c.zip
modules: Add krb5hostkeytab module.
l---------code/environments/production/modules/krb5hostkeytab/files1
-rw-r--r--code/environments/production/modules/krb5hostkeytab/manifests/init.pp9
2 files changed, 10 insertions, 0 deletions
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",
+ }
+}