]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Puppet 8 compatibility master
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 31 Jan 2026 15:42:28 +0000 (12:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 31 Jan 2026 15:42:28 +0000 (12:42 -0300)
bin/deploy

index f23bc421e64b221e854dbb612953ff636d146397..880c9f52682c62c6e059e9f29691dbb9f18440a2 100755 (executable)
@@ -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