streams-ops/global/pre-tasks.d/030puppet

17 lines
250 B
Plaintext
Raw Normal View History

2013-09-02 14:01:50 +00:00
#!/bin/sh
#
# Re-used example from SJD
#
set -e
stamp="$COSMOS_BASE/stamps/puppet-tools-v01.stamp"
if ! test -f $stamp -a -f /usr/bin/puppet; then
apt-get update
apt-get -y install puppet
2013-09-02 14:01:50 +00:00
mkdir -p `dirname $stamp`
touch $stamp
fi