apache: Add Ubuntu support to apache::mod::auth_openid
This commit is contained in:
parent
fc6f4f110e
commit
7f92851e16
1 changed files with 26 additions and 3 deletions
|
@ -473,11 +473,34 @@ class apache::mod::auth_kerb {
|
||||||
|
|
||||||
# Enable mod_auth_openid.
|
# 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 {
|
class apache::mod::auth_openid {
|
||||||
|
|
||||||
apache::configfile { "auth_openid.conf":
|
case $::operatingsystem {
|
||||||
content => "LoadModule authopenid_module modules/mod_auth_openid.so\n",
|
"debian","ubuntu": {
|
||||||
http => false,
|
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}.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue