diff --git a/apache/manifests/init.pp b/apache/manifests/init.pp index 7944ca8..f0d350d 100644 --- a/apache/manifests/init.pp +++ b/apache/manifests/init.pp @@ -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}.") + } } }