aboutsummaryrefslogtreecommitdiff
path: root/manifests/base.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/base.pp')
-rw-r--r--manifests/base.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index ef066e0..813745c 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -1,3 +1,6 @@
+# The base class to setup the common things.
+# This is a private class and will always be used
+# throught the sshd class itself.
class sshd::base {
$sshd_config_content = $::lsbdistcodename ? {
@@ -6,6 +9,7 @@ class sshd::base {
}
file { 'sshd_config':
+ ensure => present,
path => '/etc/ssh/sshd_config',
content => $sshd_config_content,
notify => Service[sshd],
@@ -27,7 +31,7 @@ class sshd::base {
# In case the node has uses a shared network address,
# we don't define a sshkey resource using an IP address
if $sshd::shared_ip == 'no' {
- @@sshkey{$::ipaddress:
+ @@sshkey{$sshd::sshkey_ipaddress:
ensure => present,
tag => 'ipaddress',
type => ssh-rsa,