Newer
Older
# Let's make some local copies of variables that will be useful in the
# ERB files.
## tomcat8 configuration
file { '/etc/default/tomcat8':
ensure => present,
source => 'puppet:///modules/shibb_idp3/etc/default/tomcat8',
mode => '0644',
}
# services.properties
# Controls the dynamic reloading behavior of
# services listed services.xml. Right now, we want relying-party
# resources to use legacy V2 format.
file { '/etc/shibboleth-idp/conf/services.properties':
ensure => present,
content => template('shibb_idp3/etc/shibboleth-idp/conf/services.properties.erb'),
mode => '0644',
require => Package['shibboleth-identity-provider'],
# 1. web.xml: custom version contains TwoStepRemoteUser definition.
file { '/opt/shibboleth-idp/webapp/WEB-INF/web.xml':
ensure => present,
content => template('shibb_idp3/opt/shibboleth-idp/webapp/WEB-INF/web.xml.erb'),
mode => '0644',
require => Package['shibboleth-identity-provider'],
# 1. metadata-providers.xml: points to all our SP metadata.
file { '/etc/shibboleth-idp/conf/metadata-providers.xml':
ensure => present,
content => template('shibb_idp3/etc/shibboleth-idp/conf/metadata-providers.xml.erb'),
mode => '0644',
require => Package['shibboleth-identity-provider'],
# 2. access-control.xml: allow access to status page
file { '/etc/shibboleth-idp/conf/access-control.xml':
ensure => present,
content => template('shibb_idp3/etc/shibboleth-idp/conf/access-control.xml.erb'),
mode => '0644',
require => Package['shibboleth-identity-provider'],
# 3. logback.xml: log-level settings
file { '/etc/shibboleth-idp/conf/logback.xml':
ensure => present,
content => template('shibb_idp3/etc/shibboleth-idp/conf/logback.xml.erb'),
mode => '0644',
require => Package['shibboleth-identity-provider'],
# 3. saml-nameid.xml
file { '/etc/shibboleth-idp/conf/saml-nameid.properties':
ensure => present,
content => template('shibb_idp3/etc/shibboleth-idp/conf/saml-nameid.properties.erb'),
mode => '0644',
require => Package['shibboleth-identity-provider'],
#### Often-changed configuration files.
file { '/etc/shibboleth-idp/conf/relying-party.xml':
ensure => present,
content => template('shibb_idp3/etc/shibboleth-idp/conf/relying-party.xml.erb'),
require => Package['shibboleth-identity-provider'],
}
file { '/etc/shibboleth-idp/conf/attribute-filter.xml':
ensure => present,
source => 'puppet:///modules/shibb_idp3/etc/shibboleth-idp/conf/attribute-filter.xml',
mode => '0644',
owner => 'tomcat8',
group => 'tomcat8',
}
file { '/etc/shibboleth-idp/conf/attribute-resolver.xml':
ensure => present,
source => 'puppet:///modules/shibb_idp3/etc/shibboleth-idp/conf/attribute-resolver.xml',
mode => '0644',
owner => 'tomcat8',
group => 'tomcat8',
require => Package['shibboleth-identity-provider'],
# This file should be in both
# /opt/shibboleth-idp/metadata/idp-metadata.xml and /var/www.
content => template("shibb_idp3/opt/shibboleth-idp/metadata/idp-metadata-${shibb_idp3::env}.xml.erb"),
require => Package['shibboleth-identity-provider'],
file { '/var/www/idp-metadata.xml':
ensure => present,
content => template("shibb_idp3/opt/shibboleth-idp/metadata/idp-metadata-${shibb_idp3::env}.xml.erb"),
mode => '0644',
owner => 'www-data',
group => 'www-data',
require => Package['shibboleth-identity-provider'],
file { '/etc/shibboleth-idp/conf/authn/general-authn.xml':
ensure => present,
content => template('shibb_idp3/etc/shibboleth-idp/conf/authn/general-authn.xml.erb'),
mode => '0644',
require => Package['shibboleth-identity-provider'],
file { '/etc/shibboleth-idp/conf/authn/twostepremoteuser-authn-config.xml':
source => 'puppet:///modules/shibb_idp3/etc/shibboleth-idp/conf/authn/twostepremoteuser-authn-config.xml',
mode => '0644',
owner => 'tomcat8',
group => 'tomcat8',
require => Package['shibboleth-identity-provider'],
file { '/opt/shibboleth-idp/flows/authn/TwoStepRemoteUser/twostepremoteuser-authn-beans.xml':
source => 'puppet:///modules/shibb_idp3/opt/shibboleth-idp/flows/authn/TwoStepRemoteUser/twostepremoteuser-authn-beans.xml',
require => Package['shibboleth-identity-provider'],
file {
'/opt/shibboleth-idp/flows/authn/TwoStepRemoteUser/':
ensure => directory,
owner => 'tomcat8',
group => 'tomcat8',
require => Package['shibboleth-identity-provider'];
'/opt/shibboleth-idp/flows/authn/TwoStepRemoteUser/twostepremoteuser-authn-flow.xml':
ensure => present,
source => 'puppet:///modules/shibb_idp3/opt/shibboleth-idp/flows/authn/TwoStepRemoteUser/twostepremoteuser-authn-flow.xml',
mode => '0644',
owner => 'tomcat8',
group => 'tomcat8',
require => Package['shibboleth-identity-provider'];