Skip to content

Commit

Permalink
Add support for pushing MD aggregates and MDQ cache to new CDI infras…
Browse files Browse the repository at this point in the history
…tructure
  • Loading branch information
Rhys Smith committed Nov 13, 2018
1 parent e49fb11 commit 6335591
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 4 deletions.
47 changes: 43 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@
<property name="mdq.dist.name" value="mdq.ukfederation.org.uk"/>
<property name="md.dist.path.name" value="/"/>

<property name="cdi-master.user" value="rsync"/>
<property name="cdi-master.name" value="cdi-master.ci.ti.ja.net"/>
<property name="cdi-master.ssh.port" value="8822"/>
<property name="cdi-master.temploc.name" value="/tmp/legacy-ukf"/>
<property name="cdi-master.md.path.name" value="/legacy-ukf-md/"/>
<property name="cdi-master.mdq.path.name" value="/legacy-ukf-mdq/"/>

<!--
Middlebox server properties.
-->
Expand Down Expand Up @@ -1289,6 +1296,22 @@
<checksum file="${aggregates.dir}/${mdaggr.export.preview.signed}"
property="mdaggr.export.preview.signed.checksum"/>

<echo>Verifying metadata held at ${cdi-master.name}</echo>
<VFY.remote.and.checksum i="http://${cdi-master.name}${cdi-master.md.path.name}${mdaggr.prod.signed}"
checksum="${mdaggr.prod.signed.checksum}"/>
<VFY.remote.and.checksum i="http://${cdi-master.name}${cdi-master.md.path.name}${mdaggr.wayf.signed}"
checksum="${mdaggr.wayf.signed.checksum}"/>
<VFY.remote.and.checksum i="http://${cdi-master.name}${cdi-master.md.path.name}${mdaggr.cdsall.signed}"
checksum="${mdaggr.cdsall.signed.checksum}"/>
<VFY.remote.and.checksum i="http://${cdi-master.name}${cdi-master.md.path.name}${mdaggr.test.signed}"
checksum="${mdaggr.test.signed.checksum}"/>
<VFY.remote.and.checksum i="http://${cdi-master.name}${cdi-master.md.path.name}${mdaggr.back.signed}"
checksum="${mdaggr.back.signed.checksum}"/>
<VFY.remote.and.checksum i="http://${cdi-master.name}${cdi-master.md.path.name}${mdaggr.export.signed}"
checksum="${mdaggr.export.signed.checksum}"/>
<VFY.remote.and.checksum i="http://${cdi-master.name}${cdi-master.md.path.name}${mdaggr.export.preview.signed}"
checksum="${mdaggr.export.preview.signed.checksum}"/>

<echo>Verifying metadata held at ${md.dist.host-ne-01.name}</echo>
<VFY.remote.and.checksum i="http://${md.dist.host-ne-01.name}${md.dist.path.name}${mdaggr.prod.signed}"
checksum="${mdaggr.prod.signed.checksum}"/>
Expand Down Expand Up @@ -1360,10 +1383,14 @@
Verify a few select mdq files held on the master distribution site.
-->
<target name="samlmd.mdq.verify.remote">
<echo>Verifying MDQ held at ${mdq.dist.name}</echo>
<VFY.MDQ.remote i="http://${mdq.dist.name}/entities"/>
<VFY.MDQ.remote i="http://${mdq.dist.name}/entities/https%3A%2F%2Ftest-idp.ukfederation.org.uk%2Fidp%2Fshibboleth"/>
<VFY.MDQ.remote i="http://${mdq.dist.name}/entities/https%3A%2F%2Ftest.ukfederation.org.uk%2Fentity"/>
<echo>Verifying MDQ held at ${cdi-master.name}${cdi-master.mdq.path.name}</echo>
<VFY.MDQ.remote i="http://${cdi-master.name}${cdi-master.mdq.path.name}entities"/>
<VFY.MDQ.remote i="http://${cdi-master.name}${cdi-master.mdq.path.name}entities/https%3A%2F%2Ftest-idp.ukfederation.org.uk%2Fidp%2Fshibboleth"/>
<VFY.MDQ.remote i="http://${cdi-master.name}${cdi-master.mdq.path.name}entities/https%3A%2F%2Ftest.ukfederation.org.uk%2Fentity"/>
<echo>Verifying MDQ held at ${mdq.dist.name}</echo>
<VFY.MDQ.remote i="http://${mdq.dist.name}/entities"/>
<VFY.MDQ.remote i="http://${mdq.dist.name}/entities/https%3A%2F%2Ftest-idp.ukfederation.org.uk%2Fidp%2Fshibboleth"/>
<VFY.MDQ.remote i="http://${mdq.dist.name}/entities/https%3A%2F%2Ftest.ukfederation.org.uk%2Fentity"/>
</target>


Expand Down Expand Up @@ -2021,6 +2048,12 @@
Push metadata files for the UK Federation to the MD dist servers
-->
<echo>Pushing UK Federation metadata files to MD dist.</echo>
<echo>-> CDI-master</echo>
<exec executable="${git.executable}" dir="${shared.ws.dir}/${git.repo.project.products}" failonerror="true">
<arg value="push"/>
<arg value="cdi-master"/>
<arg value="master"/>
</exec>
<echo>-> MD-NE-01</echo>
<exec executable="${git.executable}" dir="${shared.ws.dir}/${git.repo.project.products}" failonerror="true">
<arg value="push"/>
Expand Down Expand Up @@ -2052,6 +2085,12 @@
Push mdq cache tar to the MD dist servers
-->
<echo>Pushing UK Federation mdq cache to MD dist.</echo>
<echo>-> CDI-master</echo>
<scp failonerror="true" remoteTodir="${cdi-master.user}@${cdi-master.name}:${cdi-master.temploc.name}" port="${cdi-master.ssh.port}" keyfile="~/.ssh/id_rsa" knownhosts="~/.ssh/known_hosts">
<fileset dir="${output.dir}">
<include name="${mdq.cache}"/>
</fileset>
</scp>
<echo>-> MD-NE-01</echo>
<scp failonerror="true" remoteTodir="${md.user}@${md.dist.host-ne-01.name}:/tmp" keyfile="~/.ssh/id_rsa" knownhosts="~/.ssh/known_hosts">
<fileset dir="${output.dir}">
Expand Down
7 changes: 7 additions & 0 deletions preprod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ md.dist.path.name=/
#
mdq.dist.name=mdq-test.ukfederation.org.uk
mdq.cache=mdqcache-test.tar.gz

#
# Preprod T&I CDI uses different settings for temp location and
#
cdi-master.temploc.name=/tmp/legacy-ukf-test
cdi-master.md.path.name=/legacy-ukf-test-md/
cdi-master.mdq.path.name=/legacy-ukf-test-mdq/

0 comments on commit 6335591

Please sign in to comment.