diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-10 12:30:04 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-11 02:29:49 +0100 |
commit | 7fdbcf1e4b8a1b485d16861a76de93681ed7af80 (patch) | |
tree | 0f25aeb315f41c021c6635bdebf9a13b353bae89 /modules/profiles/manifests | |
parent | Replace homewritten ssh module with pre-made one. (diff) | |
download | webdav_server-7fdbcf1e4b8a1b485d16861a76de93681ed7af80.tar.gz webdav_server-7fdbcf1e4b8a1b485d16861a76de93681ed7af80.tar.xz |
Update code to use new ssh module.
Diffstat (limited to 'modules/profiles/manifests')
-rw-r--r-- | modules/profiles/manifests/ssh.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/profiles/manifests/ssh.pp b/modules/profiles/manifests/ssh.pp new file mode 100644 index 0000000..1cf0fbf --- /dev/null +++ b/modules/profiles/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'], + } + } +} + |