Skip to content

Commit

Permalink
Stubbing out metadata for shib
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethylred authored and Aaron Hicks committed Sep 29, 2014
1 parent f5523e7 commit bfc2c7c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
14 changes: 14 additions & 0 deletions manifests/mod/shib/metadata.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
define apache::mod::shib::metadata(
$provider_uri,
$cert_uri,
$backing_file_dir = $apache::mod::shib::shib_conf_dir,
$backing_file_name = inline_template("<%= provider_uri.split('/').last %>")
){

require apache::mod::shib

$backing_file = "${backing_file_dir}/${backing_file_name}"



}
12 changes: 3 additions & 9 deletions manifests/mod/shib/sso.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

require apache::mod::shib

info("The shibboleth configuration file is ${apache::mod::shib::shib_conf}")

if $discoveryURL and $idpURL {
err("apache::mod::shib::sso must have one of discoveryURL or idpURL set, not both.")
} elsif !$discoveryURL and !$idpURL {
Expand All @@ -20,9 +18,7 @@
$entityID_aug = "rm SSO/#attribute/entityID"
}

info("The entityID augaes change is ${entityID_aug}")

augeas{"shib_SPconfig_sso_entityID":
augeas{"shib_sso_${name}_entityID":
lens => 'Xml.lns',
incl => $apache::mod::shib::shib_conf,
context => "/files${apache::mod::shib::shib_conf}/SPConfig/ApplicationDefaults/Sessions",
Expand All @@ -36,17 +32,15 @@
$discoveryURL_aug = "rm SSO/#attribute/discoveryURL"
}

info("The discoveryURL augeas change is ${discoveryURL_aug}")

augeas{"shib_SPconfig_sso_discoveryURL":
augeas{"shib_sso_${name}_discoveryURL":
lens => 'Xml.lns',
incl => $apache::mod::shib::shib_conf,
context => "/files${apache::mod::shib::shib_conf}/SPConfig/ApplicationDefaults/Sessions",
changes => [$discoveryURL_aug,],
notify => Service['httpd'],
}

augeas{"shib_SPconfig_sso_discoveryProtocol":
augeas{"shib_sso_${name}_discoveryProtocol":
lens => 'Xml.lns',
incl => $apache::mod::shib::shib_conf,
context => "/files${apache::mod::shib::shib_conf}/SPConfig/ApplicationDefaults/Sessions",
Expand Down

0 comments on commit bfc2c7c

Please sign in to comment.