Use upstream puppet modules for ubuntu24+.

This is how we do it in modern debian so it
makes sense to do it on modern ubuntu as well.
This commit is contained in:
Patrik Holmqvist 2024-06-19 14:02:24 +02:00
parent 5d88e66379
commit bc9d1dc960
Signed by untrusted user: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -13,7 +13,7 @@ if ! test -f "${stamp}" -a -f /usr/bin/puppet; then
. /etc/os-release . /etc/os-release
# Note: in posix shell, string comparison is done with a single = # Note: in posix shell, string comparison is done with a single =
if [ "${ID}" = "debian" ] && [ "${VERSION_ID}" -ge 12 ]; then if [ "${ID}" = "debian" ] && [ "${VERSION_ID}" -ge 12 ] || ([ "${ID}" = "ubuntu" ] && $(dpkg --compare-versions ${VERSION_ID} ge 24.04)) ; then
apt-get -y install \ apt-get -y install \
cron \ cron \
puppet-module-camptocamp-augeas \ puppet-module-camptocamp-augeas \