aboutsummaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp28
1 files changed, 28 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
new file mode 100644
index 0000000..f0b05c5
--- /dev/null
+++ b/manifests/client.pp
@@ -0,0 +1,28 @@
+# manifests/client.pp
+
+class sshd::client {
+ case $operatingsystem {
+ debian: { include sshd::client::debian }
+ default: { include sshd::client::base }
+ }
+}
+
+class sshd::client::base {
+ package {'openssh-clients':
+ ensure => installed,
+ }
+
+ # this is needed because the gid might have changed
+ file { '/etc/ssh/ssh_known_hosts':
+ mode => 0644, owner => root, group => 0;
+ }
+
+ # Now collect all server keys
+ Sshkey <<||>>
+}
+
+class sshd::client::debian inherits sshd::client::base {
+ Package['openssh-clients']{
+ name => 'openssh-client',
+ }
+}