]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
Enable support for Ubuntu
authorGabriel Filion <lelutin@gmail.com>
Mon, 27 Dec 2010 23:24:43 +0000 (18:24 -0500)
committerGabriel Filion <lelutin@gmail.com>
Mon, 31 Jan 2011 02:47:40 +0000 (21:47 -0500)
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>
manifests/client.pp
templates/sshd_config/Ubuntu.erb [new symlink]

index b650244510ee5fe3a849fb352f379a14f83e8b78..31785e93a7f133b6e27661fd1de652c83699e90d 100644 (file)
@@ -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 (symlink)
index 0000000..11b0acc
--- /dev/null
@@ -0,0 +1 @@
+Debian_squeeze.erb
\ No newline at end of file