dns-ops/global/pre-tasks.d/030puppet
Micke Nordin 3aac1f97d8
Add additional packages for use with debian 12
This patch will install three packages that is needed for normal operations of puppet using puppet-sunet with multiverse on Debian 12:

cron puppet-module-puppetlabs-cron-core puppet-module-camptocamp-augeas
2023-07-10 16:32:20 +02:00

24 lines
529 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
. /etc/os-release
# Note: in posix shell, string comparison is done with a single =
if [ "${ID}" = "debian" ] && [ "${VERSION_ID}" -ge 12 ]; then
apt-get -y install cron puppet-module-puppetlabs-cron-core puppet-module-camptocamp-augeas
fi
mkdir -p "$(dirname "${stamp}")"
touch "${stamp}"
fi