cdn-ops/global/pre-tasks.d/030puppet
Johan Wassberg fb4849a0df
Use puppet that comes with OS
nunoc-ops does like this since 2018 so I think it will fly.

Also the package `puppet` seems to been around since at-least Ubuntu 14.04.
2023-01-17 13:53:13 +01:00

17 lines
250 B
Bash
Executable file

#!/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
mkdir -p `dirname $stamp`
touch $stamp
fi