From 5654d69add11c3eb15fc061949af2e406cf5b500 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Mon, 27 Dec 2010 18:24:43 -0500 Subject: 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 --- manifests/client.pp | 2 +- templates/sshd_config/Ubuntu.erb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 templates/sshd_config/Ubuntu.erb 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 -- cgit v1.2.3