Skip to content
Snippets Groups Projects
Commit 08f4ebb4 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

refactoring of datasealer conf file

parent 0a914644
No related branches found
No related tags found
No related merge requests found
# If the datasealer file is not present, run datasealer_update.pl so it
# gets created.
class shibb_idp3::datasealer {
class shibb_idp3::datasealer
{
# The datasealer_update.pl script is in the stanford-shibbolethidp3-tool
# package.
......@@ -12,7 +13,7 @@ class shibb_idp3::datasealer {
# We need the datasealer master/slave configuration file.
file { '/etc/shibboleth-idp/dist-datasealer.conf':
source => "puppet:///modules/shibb_idp3/etc/shibboleth-idp/dist-datasealer.conf.${shibb_idp3::env}",
content => template('shibb_idp3/etc/shibboleth-idp/dist-datasealer.conf.erb'),
require => Package['stanford-shibbolethidp3-tools'],
}
......
class shibb_idp3(
$env = 'uat',
$pool_slaves = [],
$pool_master = undef,
$ldap_host = '',
$mysql_support = true,
)
{
if (!$pool_master) {
fail("missing datasealer pool master")
}
if (size($pool_slaves) == 0) {
fail("missing datasealer pool slave array")
}
# $pool_fqdn will be the name to refer to the IDP pool and depends on
# the environment:
# prod: idp.stanford.edu
......
<%-
# This template expects the instance variables $pool_slaves and
# $pool_master, both parameters from shibb_idp3::datasealer.
pool_slaves_l = scope['shibb_idp3::pool_slaves']
pool_slaves_formatted = pool_slaves_l.join(",")
-%>
MASTER = <%= scope['shibb_idp3::pool_master'] %>
SLAVES = <%= pool_slaves_formatted %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment