From 2499f7e73946cd5147a1158b48ebe4b06e4e530d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 4 Mar 2018 12:28:24 +0100 Subject: Add helpers and remove logs from cronie --- .../base_installation/files/scripts/puppet_reset_and_apply | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/base_installation/files/scripts/puppet_reset_and_apply (limited to 'modules/base_installation/files/scripts/puppet_reset_and_apply') diff --git a/modules/base_installation/files/scripts/puppet_reset_and_apply b/modules/base_installation/files/scripts/puppet_reset_and_apply new file mode 100644 index 0000000..ff71aa8 --- /dev/null +++ b/modules/base_installation/files/scripts/puppet_reset_and_apply @@ -0,0 +1,14 @@ +#!/bin/bash + +cd /etc/puppetlabs/code +git fetch origin + +branch="master" +if [ -n "$1" ]; then + branch="$1" +fi + +git reset --hard origin/$1 + +git submodule update --init +puppet apply --test manifests/site.pp -- cgit v1.2.3