diff options
author | mh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2007-12-27 15:42:16 +0000 |
---|---|---|
committer | mh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2007-12-27 15:42:16 +0000 |
commit | ddb169a36e297d4a9324495cc6b35eb9be5ea0ef (patch) | |
tree | 9e6f580e1a69f0c523837bd4c37af2b668003738 /manifests | |
parent | a1e8a891019a1644fb046a2d7438164ae55d6097 (diff) | |
download | puppet-sshd-ddb169a36e297d4a9324495cc6b35eb9be5ea0ef.tar.gz puppet-sshd-ddb169a36e297d4a9324495cc6b35eb9be5ea0ef.tar.bz2 |
moved sshd to templates so they are cpable of having different allowed_users
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@330 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index fc6547c..e10a583 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -26,10 +26,11 @@ class sshd { } define sshd::sshd_config ( - $source = "" + $source = "", + $allowed_users => 'root' ){ $real_source = $source ? { - '' => "${operatingsystem}_normal", + '' => "${operatingsystem}_normal.erb", default => $source, } @@ -38,7 +39,7 @@ define sshd::sshd_config ( owner => root, group => 0, mode => 600, - source => "puppet://$server/sshd/sshd_config/$real_source", + source => template("sshd/sshd_config/$real_source"), notify => Service[sshd], } } |