diff options
author | mh <mh@immerda.ch> | 2009-09-29 19:53:04 +0200 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-07 16:03:55 -0500 |
commit | 5e20e07d1fead39375f656a2b0091e17fe14d95b (patch) | |
tree | c7199109e6824f789555ea885f73e29a517e16cf /manifests/client | |
parent | 57eae8bc845318eb89c48acef3ca13468689a875 (diff) | |
download | puppet-sshd-5e20e07d1fead39375f656a2b0091e17fe14d95b.tar.gz puppet-sshd-5e20e07d1fead39375f656a2b0091e17fe14d95b.tar.bz2 |
factor everything into its own file
Diffstat (limited to 'manifests/client')
-rw-r--r-- | manifests/client/base.pp | 9 | ||||
-rw-r--r-- | manifests/client/debian.pp | 5 | ||||
-rw-r--r-- | manifests/client/linux.pp | 5 |
3 files changed, 19 insertions, 0 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp new file mode 100644 index 0000000..2c3e31f --- /dev/null +++ b/manifests/client/base.pp @@ -0,0 +1,9 @@ +class sshd::client::base { + # 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 <<||>> +} diff --git a/manifests/client/debian.pp b/manifests/client/debian.pp new file mode 100644 index 0000000..9ca6da9 --- /dev/null +++ b/manifests/client/debian.pp @@ -0,0 +1,5 @@ +class sshd::client::debian inherits sshd::client::linux { + Package['openssh-clients']{ + name => 'openssh-client', + } +} diff --git a/manifests/client/linux.pp b/manifests/client/linux.pp new file mode 100644 index 0000000..522fa50 --- /dev/null +++ b/manifests/client/linux.pp @@ -0,0 +1,5 @@ +class sshd::client::linux inherits sshd::client::base { + package {'openssh-clients': + ensure => installed, + } +} |