summaryrefslogtreecommitdiff
path: root/puppet/modules/site_sshd/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-02-12 13:02:10 +0100
committervarac <varacanero@zeromail.org>2014-02-12 13:02:10 +0100
commite81455708e70a46dbb4fefbd510e4e354ce9606c (patch)
treecee32deceb0b4ccce3cbfab8cd30696840eec998 /puppet/modules/site_sshd/manifests
parent3516ef17f41b80409a50cffe5b81a7777e6742cb (diff)
parent15ddd997572a4845f5a16f1af16c5ce5b7ac4c11 (diff)
Merge branch '0.6' into 4982_check_mk
Diffstat (limited to 'puppet/modules/site_sshd/manifests')
-rw-r--r--puppet/modules/site_sshd/manifests/init.pp15
-rw-r--r--puppet/modules/site_sshd/manifests/known_hosts.pp11
2 files changed, 12 insertions, 14 deletions
diff --git a/puppet/modules/site_sshd/manifests/init.pp b/puppet/modules/site_sshd/manifests/init.pp
index d2de41c8..d9bc1d51 100644
--- a/puppet/modules/site_sshd/manifests/init.pp
+++ b/puppet/modules/site_sshd/manifests/init.pp
@@ -13,11 +13,20 @@ class site_sshd {
}
##
- ## SETUP KNOWN HOSTS
+ ## SETUP KNOWN HOSTS and SSH_CONFIG
##
- class { 'site_sshd::known_hosts':
- hosts => $hosts
+ file {
+ '/etc/ssh/ssh_known_hosts':
+ owner => root,
+ group => root,
+ mode => '0644',
+ content => template('site_sshd/ssh_known_hosts.erb');
+ '/etc/ssh/ssh_config':
+ owner => root,
+ group => root,
+ mode => '0644',
+ content => template('site_sshd/ssh_config.erb');
}
##
diff --git a/puppet/modules/site_sshd/manifests/known_hosts.pp b/puppet/modules/site_sshd/manifests/known_hosts.pp
deleted file mode 100644
index 290ffd0b..00000000
--- a/puppet/modules/site_sshd/manifests/known_hosts.pp
+++ /dev/null
@@ -1,11 +0,0 @@
-class site_sshd::known_hosts ($hosts) {
- # these owner and permissions seem odd to me, but it is what is defined
- # in modules/sshd/manifests/client/base.pp, so we are going to stick with it.
- file { '/etc/ssh/ssh_known_hosts':
- ensure => present,
- owner => root,
- group => 0,
- mode => '0644',
- content => template('site_sshd/ssh_known_hosts.erb');
- }
-}