Skip to content

Commit 006b232

Browse files
committed
Add more templates for streamlined portal installation
1 parent 6fdc3e7 commit 006b232

6 files changed

+21
-39
lines changed

templates/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
templatesdir = $(pkgdatadir)/templates
33

44
dist_templates_DATA = \
5+
idp-metadata-extension.xml.tmpl \
56
install-sp-centos.sh.tmpl \
67
parameters.json \
78
portal-ssl.conf.tmpl \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<mdui:UIInfo xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui">
2+
<mdui:DisplayName xml:lang="en">GENI Project Office</mdui:DisplayName>
3+
<mdui:InformationURL xml:lang="en">https://www.geni.net/
4+
</mdui:InformationURL>
5+
<mdui:PrivacyStatementURL xml:lang="en">https://@portal_host@/policy/privacy.html</mdui:PrivacyStatementURL>
6+
<mdui:Logo height="149" width="176" xml:lang="en">https://@portal_host@/images/geni.png</mdui:Logo>
7+
</mdui:UIInfo>

templates/install-sp-centos.sh.tmpl

-37
Original file line numberDiff line numberDiff line change
@@ -56,46 +56,9 @@ cp portal-@[email protected] /etc/pki/tls/private
5656
cp portal-@[email protected] /etc/pki/tls/private
5757

5858

59-
# Copy "default site" web files into place
60-
if [ -d common/www/localhost ]; then
61-
cp -r common/www/localhost /var/www/localhost
62-
fi
63-
64-
#----------------------------------------------------------------------
65-
# Configure Shibboleth SP
66-
#----------------------------------------------------------------------
67-
68-
SHIB_SP_DIR=/tmp/shib/sp
69-
70-
#-----
71-
# First, copy the common shibboleth config
72-
#-----
73-
if [ -d $SHIB_SP_DIR/common ]; then
74-
if [ -d $SHIB_SP_DIR/common/shibboleth ]; then
75-
mkdir -p /etc/shibboleth
76-
cp $SHIB_SP_DIR/common/shibboleth/* /etc/shibboleth
77-
fi
78-
fi
79-
80-
#-----
81-
# Next, copy the host-specific shibboleth config files
82-
#-----
83-
GENI_APACHE_CONFIG_DIR=/usr/share/geni-ch/www
84-
mkdir -p $GENI_APACHE_CONFIG_DIR
85-
for d in $SHIB_SP_DIR/common/www/*; do
86-
echo "Copying ${d} to $GENI_APACHE_CONFIG_DIR"
87-
/bin/cp -R ${d} $GENI_APACHE_CONFIG_DIR
88-
done
8959

9060
# Restart the Shib Daemon and apache
9161
service ntpd restart
9262
service shibd restart
9363
service httpd restart
9464

95-
echo 'Check for HOST specific files - portal-ssl an'
96-
echo "Edit $HOST ch-ssl and portal-ssl files to point to correct addresses and names"
97-
echo 'Edit /etc/shibboleth/shibboleth2.xml'
98-
echo 'Then restart services'
99-
echo 'service ntpd restart'
100-
echo 'service shibd restart'
101-
echo 'service httpd restart'

templates/parameters.json

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
"name" : "db_host",
3030
"doc" : "Nost of PORTAL database instance"
3131
},
32+
{
33+
"name" : "idp_host",
34+
"doc" : "Nost of IdP host to which PORTAL authenticates"
35+
},
3236
{
3337
"name" : "db_name",
3438
"default" : "portal",

templates/shibboleth2.xml.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@
9191
<!--
9292
<MetadataProvider type="XML" file="partner-metadata.xml"/>
9393
-->
94-
<!-- trust the identity provider at cetaganda.gpolab.bbn.com -->
94+
<!-- trust the identity provider at @idp_host@ -->
9595
<MetadataProvider type="XML"
96-
file="idp-metadata-cetaganda.xml"/>
96+
file="idp-metadata-@idp_host@.xml"/>
9797

9898
<!-- Map to extract attributes from SAML assertions. -->
9999
<AttributeExtractor type="XML" validate="true" path="attribute-map.xml"/>

templates/templates.json

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
"destination" : "/etc/httpd/conf.d/portal-ssl.conf",
3939
"owner" : "root:root",
4040
"protection" : "0644"
41+
},
42+
{
43+
"doc" : "Extensions to IDP Metadata for GENI labels/images at EDS",
44+
"source" : "idp-metadata-extension.xml.tmpl",
45+
"destination" : "/tmp/idp-metadata-extension.xml",
46+
"owner" : "root:root",
47+
"protection" : "0644"
4148
}
4249
]
4350
}

0 commit comments

Comments
 (0)