summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/cosmos_config_version
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2014-10-17 10:35:31 +0200
committerLeif Johansson <leifj@sunet.se>2014-10-17 10:35:31 +0200
commit03f11e934ce69baa884f941dcd3a286183425f53 (patch)
treedc4151ba5e4433822330b67840790d0f9a4d2cf4 /global/overlay/etc/puppet/cosmos_config_version
parentf1338441f14d173227a40277fdbd86cfbe7a9061 (diff)
parent2fbbba1b3fea02300e2c23b02304b57bd6bb6dc5 (diff)
Merge branch 'master' of git.nordu.net:sunet-ops
Diffstat (limited to 'global/overlay/etc/puppet/cosmos_config_version')
-rwxr-xr-xglobal/overlay/etc/puppet/cosmos_config_version11
1 files changed, 11 insertions, 0 deletions
diff --git a/global/overlay/etc/puppet/cosmos_config_version b/global/overlay/etc/puppet/cosmos_config_version
new file mode 100755
index 0000000..57786fd
--- /dev/null
+++ b/global/overlay/etc/puppet/cosmos_config_version
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+set -a
+COSMOS_CONF_DIR="/etc/cosmos"
+. /etc/cosmos/cosmos.conf
+COSMOS_VERBOSE="yes"
+set +a
+
+/etc/cosmos/update.d/25verify-git 2>/dev/null | grep ^"tag " | head -1 | cut -b 5-