From b39874ac1ee8f2c550bfb70f979f0a7e1e290809 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 31 Jan 2026 12:42:28 -0300 Subject: Puppet 8 compatibility --- bin/deploy | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin/deploy') diff --git a/bin/deploy b/bin/deploy index f23bc42..880c9f5 100755 --- a/bin/deploy +++ b/bin/deploy @@ -75,6 +75,14 @@ $SUDO mkdir -p /etc/facter/facts.d $SUDO echo "role=$ROLE" | $SUDO tee /etc/facter/facts.d/role.txt > /dev/null $SUDO echo "location=$LOCATION" | $SUDO tee /etc/facter/facts.d/location.txt > /dev/null -# Run puppet apply +# Set configuration and module path PUPPET_OPTS="--confdir=$BASEDIR --modulepath=$BASEDIR/modules" + +# Puppet 8+ compatibility +# https://github.com/puppetlabs/puppet/wiki/Puppet-8-Compatibility#module-compatibility +# https://github.com/puppetlabs/puppet/blob/main/references/configuration.md#configuration-settings +PUPPET_OPTS="$PUPPET_OPTS --include_legacy_facts" +PUPPET_OPTS="$PUPPET_OPTS --no-strict_variables --strict=warning" + +# Run puppet apply LC_ALL=C $SUDO puppet apply $PUPPET_OPTS $PUPPET_MANIFEST -- cgit v1.2.3