]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame_incremental - modules/base_installation/files/cronie/puppet-post-merge
Change post-merge script
[perso/Immae/Projets/Puppet.git] / modules / base_installation / files / cronie / puppet-post-merge
... / ...
CommitLineData
1#!/bin/bash
2## Run Puppet locally using puppet apply
3git submodule update --init
4/usr/bin/puppet apply --test `pwd`/manifests/site.pp
5
6## Log status of the Puppet run
7if [ $? -eq 0 ]
8then
9 /usr/bin/logger -i "Puppet has run successfully" -t "puppet-run"
10 exit 0
11else
12 /usr/bin/logger -i "Puppet has ran into an error, please run Puppet manually" -t "puppet-run"
13 exit 1
14fi
15