From 5e20e07d1fead39375f656a2b0091e17fe14d95b Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 29 Sep 2009 19:53:04 +0200 Subject: factor everything into its own file --- manifests/client/base.pp | 9 +++++++++ manifests/client/debian.pp | 5 +++++ manifests/client/linux.pp | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 manifests/client/base.pp create mode 100644 manifests/client/debian.pp create mode 100644 manifests/client/linux.pp (limited to 'manifests/client') 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, + } +} -- cgit v1.2.3