summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted_templates/sync-templates.sh
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-11-04 11:04:44 -0400
committerGitHub <noreply@github.com>2016-11-04 11:04:44 -0400
commit35db78f391f41e962903dbe9174efc7052948a15 (patch)
tree976232541e2735250a8eb70aed366352ec4087c1 /roles/openshift_hosted_templates/sync-templates.sh
parent3f3b757c0e3ff81b3777f01a98302ee8392ec289 (diff)
parent47a31c4d692479242eefaa5ec64ddf27d2775b0f (diff)
downloadopenshift-35db78f391f41e962903dbe9174efc7052948a15.tar.gz
openshift-35db78f391f41e962903dbe9174efc7052948a15.tar.bz2
openshift-35db78f391f41e962903dbe9174efc7052948a15.tar.xz
openshift-35db78f391f41e962903dbe9174efc7052948a15.zip
Merge pull request #2721 from sdodson/image-stream-sync
Image stream sync
Diffstat (limited to 'roles/openshift_hosted_templates/sync-templates.sh')
-rwxr-xr-xroles/openshift_hosted_templates/sync-templates.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/openshift_hosted_templates/sync-templates.sh b/roles/openshift_hosted_templates/sync-templates.sh
new file mode 100755
index 000000000..1188bc440
--- /dev/null
+++ b/roles/openshift_hosted_templates/sync-templates.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Utility script to update the ansible repo with the latest templates for
+# metrics and logging
+#
+# This script should be run from
+# openshift-ansible/roles/openshift_hosted_templates
+
+ORIGIN_VERSION=v1.4
+EXAMPLES_BASE=$(pwd)/files/${ORIGIN_VERSION}
+find ${EXAMPLES_BASE} -name '*.json' -delete
+TEMP=`mktemp -d`
+pushd $TEMP
+
+wget https://raw.githubusercontent.com/openshift/origin-metrics/master/metrics.yaml -O ${EXAMPLES_BASE}/origin/metrics-deployer.yaml
+wget https://raw.githubusercontent.com/openshift/origin-metrics/enterprise/metrics.yaml -O ${EXAMPLES_BASE}/enterprise/metrics-deployer.yaml
+wget https://raw.githubusercontent.com/openshift/origin-aggregated-logging/master/deployer/deployer.yaml -O ${EXAMPLES_BASE}/origin/logging-deployer.yaml
+wget https://raw.githubusercontent.com/openshift/origin-aggregated-logging/enterprise/deployment/deployer.yaml -O ${EXAMPLES_BASE}/enterprise/logging-deployer.yaml
+
+popd
+git diff files