Resources
Exec["enable_shib2"]
command => "/usr/sbin/a2enmod shib2"
creates => "/etc/apache2/mods-enabled/shib2.load"
notify => Service["apache2"]
File["/etc/apache2/conf.d/security"]
ensure => file
content => template("shib2sp/security.erb")
owner => "www-data"
mode => "755"
File["/etc/shibboleth/attribute-map.xml"]
ensure => file
source => "puppet:///modules/shib2sp/etc/shibboleth/attribute-map.xml"
owner => "_shibd"
notify => Service["shibd"]
File["/etc/shibboleth/shibboleth2.xml"]
ensure => file
content => template("shib2sp/shibboleth2.xml.erb")
owner => "_shibd"
notify => Service["shibd"]
File["/etc/shibboleth/sp-cert.pem"]
ensure => file
source => puppet:///modules/shib2sp/etc/shibboleth/sp-cert.pem-$hostname
owner => "_shibd"
notify => Service["shibd"]
File["/etc/shibboleth/sp-key.pem"]
ensure => file
source => puppet:///modules/shib2sp/etc/shibboleth/sp-key.pem-$hostname
owner => "_shibd"
group => "_shibd"
mode => "640"
notify => Service["shibd"]
File["/usr/lib/cgi-bin/env.rb"]
ensure => file
source => "puppet:///modules/shib2sp/usr/lib/cgi-bin/env.rb"
owner => "www-data"
mode => "755"
Package[$service_name]
ensure => installed
notify => Exec["enable_shib2"]
Service["shibd"]
ensure => running
enable => true
hasrestart => true
hasstatus => false
notify => Notify["env.rb"]