summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted_templates/sync-templates.sh
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-11-04 10:22:33 -0400
committerScott Dodson <sdodson@redhat.com>2016-11-04 10:23:01 -0400
commit47a31c4d692479242eefaa5ec64ddf27d2775b0f (patch)
tree2cd8c269a31499e42fea44252c7457290e0458fa /roles/openshift_hosted_templates/sync-templates.sh
parent236fe4eb0cc2be81dce37b4655292af6e8101d62 (diff)
downloadopenshift-47a31c4d692479242eefaa5ec64ddf27d2775b0f.tar.gz
openshift-47a31c4d692479242eefaa5ec64ddf27d2775b0f.tar.bz2
openshift-47a31c4d692479242eefaa5ec64ddf27d2775b0f.tar.xz
openshift-47a31c4d692479242eefaa5ec64ddf27d2775b0f.zip
Update hosted_templates
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