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"
|
|
|
|
|
2023-07-10 14:32:20 +00:00
|
|
|
if ! test -f "${stamp}" -a -f /usr/bin/puppet; then
|
2013-09-02 14:01:50 +00:00
|
|
|
apt-get update
|
2023-01-17 12:53:13 +00:00
|
|
|
apt-get -y install puppet
|
2023-07-10 14:32:20 +00:00
|
|
|
. /etc/os-release
|
2013-09-02 14:01:50 +00:00
|
|
|
|
2023-07-10 14:32:20 +00:00
|
|
|
# Note: in posix shell, string comparison is done with a single =
|
|
|
|
if [ "${ID}" = "debian" ] && [ "${VERSION_ID}" -ge 12 ]; then
|
2023-11-14 14:28:46 +00:00
|
|
|
apt-get -y install \
|
|
|
|
cron \
|
|
|
|
puppet-module-camptocamp-augeas \
|
|
|
|
puppet-module-puppetlabs-apt \
|
|
|
|
puppet-module-puppetlabs-concat \
|
|
|
|
puppet-module-puppetlabs-cron-core \
|
2024-11-08 09:25:34 +00:00
|
|
|
puppet-module-puppetlabs-sshkeys-core \
|
2023-11-14 14:28:46 +00:00
|
|
|
puppet-module-puppetlabs-stdlib \
|
2024-11-08 09:25:34 +00:00
|
|
|
puppet-module-puppetlabs-vcsrepo
|
2023-11-14 14:27:45 +00:00
|
|
|
|
2023-07-10 14:32:20 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p "$(dirname "${stamp}")"
|
|
|
|
touch "${stamp}"
|
2013-09-02 14:01:50 +00:00
|
|
|
fi
|
2023-07-10 14:32:20 +00:00
|
|
|
|