aboutsummaryrefslogtreecommitdiff
path: root/manifests/base.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-17 21:43:33 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-17 21:43:33 -0200
commitca79037957522708830ae159b6cc7a05edbac340 (patch)
treee645830cf13393af8b0ad5e097bb260ded2ef20e /manifests/base.pp
parent85d7fc922011bc2a619f0e093b69f0a37a88f59c (diff)
parent576bbf09d8516809d7373dc9b4e725ce2151a463 (diff)
downloadpuppet-sshd-ca79037957522708830ae159b6cc7a05edbac340.tar.gz
puppet-sshd-ca79037957522708830ae159b6cc7a05edbac340.tar.bz2
Merge branch 'master' of git://labs.riseup.net/shared-sshd
Conflicts: templates/sshd_config/Ubuntu_precise.erb
Diffstat (limited to 'manifests/base.pp')
-rw-r--r--manifests/base.pp22
1 files changed, 11 insertions, 11 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index 848e547..4001985 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -1,31 +1,31 @@
-class sshd::base {
+class sshd::base {
file { 'sshd_config':
path => '/etc/ssh/sshd_config',
- content => $lsbdistcodename ? {
- '' => template("sshd/sshd_config/${operatingsystem}.erb"),
- default => template ("sshd/sshd_config/${operatingsystem}_${lsbdistcodename}.erb"),
+ content => $::lsbdistcodename ? {
+ '' => template("sshd/sshd_config/${::operatingsystem}.erb"),
+ default => template ("sshd/sshd_config/${::operatingsystem}_${::lsbdistcodename}.erb"),
},
notify => Service[sshd],
owner => root, group => 0, mode => 600;
}
# Now add the key, if we've got one
- case $sshrsakey {
- '': { info("no sshrsakey on $fqdn") }
+ case $::sshrsakey {
+ '': { info("no sshrsakey on ${::fqdn}") }
default: {
- @@sshkey{"$fqdn":
+ @@sshkey{$::fqdn:
tag => "fqdn",
type => ssh-rsa,
- key => $sshrsakey,
+ key => $::sshrsakey,
ensure => present,
}
# 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":
+ if $sshd::shared_ip == "no" {
+ @@sshkey{$::ipaddress:
tag => "ipaddress",
type => ssh-rsa,
- key => $sshrsakey,
+ key => $::sshrsakey,
ensure => present,
}
}