summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2010-12-27 18:24:43 -0500
committerGabriel Filion <lelutin@gmail.com>2011-01-30 21:47:40 -0500
commit5654d69add11c3eb15fc061949af2e406cf5b500 (patch)
tree6a7ae1c32e14f6779aeb61ae6e5f05837f2789e9
parent2188f46db75d74d00ac4a2cb3cdaa34f98d1148d (diff)
Enable support for Ubuntu
The sshd class currently has a mechanism to make resources for Ubuntu similar to the ones for Debian, but the sshd::client class doesn't. Also, There are no templates for sshd_config on Ubuntu so provide for them. Since Ubuntu releases almost all use ssh versions that are as recent as the Debian squeeze one, and the default sshd_config file is usually the same as on Debian, add a default (Ubuntu.erb) template so that it fits all Ubuntu releases. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
-rw-r--r--manifests/client.pp2
l---------templates/sshd_config/Ubuntu.erb1
2 files changed, 2 insertions, 1 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index b650244..31785e9 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -2,7 +2,7 @@
class sshd::client {
case $operatingsystem {
- debian: { include sshd::client::debian }
+ debian,ubuntu: { include sshd::client::debian }
default: {
case $kernel {
linux: { include sshd::client::linux }
diff --git a/templates/sshd_config/Ubuntu.erb b/templates/sshd_config/Ubuntu.erb
new file mode 120000
index 0000000..11b0acc
--- /dev/null
+++ b/templates/sshd_config/Ubuntu.erb
@@ -0,0 +1 @@
+Debian_squeeze.erb \ No newline at end of file