apache: Add Ubuntu support to apache::mod::auth_openid

This commit is contained in:
Ossi Salmi 2013-08-20 14:43:53 +03:00
parent fc6f4f110e
commit 7f92851e16

View file

@ -473,11 +473,34 @@ class apache::mod::auth_kerb {
# Enable mod_auth_openid.
#
# Manual installation required, see:
# http://findingscience.com/mod_auth_openid/
# https://github.com/bmuller/mod_auth_openid
#
class apache::mod::auth_openid {
apache::configfile { "auth_openid.conf":
content => "LoadModule authopenid_module modules/mod_auth_openid.so\n",
http => false,
case $::operatingsystem {
"debian","ubuntu": {
file { "/etc/apache2/mods-available/authopenid.load":
ensure => present,
mode => "0644",
owner => "root",
group => "root",
content => "LoadModule authopenid_module /usr/lib/apache2/modules/mod_auth_openid.so\n",
}
apache::debian::a2enmod { "authopenid":
require => File["/etc/apache2/mods-available/authopenid.load"],
}
}
"centos","redhat","fedora": {
apache::configfile { "auth_openid.conf":
content => "LoadModule authopenid_module modules/mod_auth_openid.so\n",
http => false,
}
}
default: {
fail("Apache module not supported in ${::operatingsystem}.")
}
}
}