summaryrefslogtreecommitdiff
path: root/manifests/ssh.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-10 12:30:04 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-11 02:29:49 +0100
commitad7fa8dee6a381509e79f201182417d46556b378 (patch)
tree5597a3c88842050c69242473a693208db21a3588 /manifests/ssh.pp
parentLetsencrypt improvements (diff)
downloadprofiles-ad7fa8dee6a381509e79f201182417d46556b378.tar.gz
profiles-ad7fa8dee6a381509e79f201182417d46556b378.tar.xz
Update code to use new ssh module.
Diffstat (limited to 'manifests/ssh.pp')
-rw-r--r--manifests/ssh.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/ssh.pp b/manifests/ssh.pp
new file mode 100644
index 0000000..1cf0fbf
--- /dev/null
+++ b/manifests/ssh.pp
@@ -0,0 +1,18 @@
+class profiles::ssh {
+ include ::ssh
+
+ $authorized_keys = lookup('ssh_authorized_keys', Array[Hash], undef, [])
+
+ ssh::client::config::user { 'root':
+ user_home_dir => '/root'
+ }
+
+ $authorized_keys.each |$key| {
+ ssh_authorized_key { $key['name']:
+ user => $key['user'],
+ type => $key['type'],
+ key => $key['key'],
+ }
+ }
+}
+