aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2026-01-31 12:41:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2026-01-31 12:41:27 -0300
commitbba55fda49bb11cd0f23ac6fde6becd3aaaac391 (patch)
tree58556b4ff3b072b778b3bd29e2595545d11c8646
parentc850c699883f4a0c1181063903727bcf639049ca (diff)
downloadhydra-bba55fda49bb11cd0f23ac6fde6becd3aaaac391.tar.gz
hydra-bba55fda49bb11cd0f23ac6fde6becd3aaaac391.tar.bz2
hydra: deploy: Puppet 8 compatibilityHEADmaster
-rw-r--r--docs/changelog.md4
-rw-r--r--lib/hydra/deploy10
2 files changed, 13 insertions, 1 deletions
diff --git a/docs/changelog.md b/docs/changelog.md
index 011c3bb..4754fe3 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -7,6 +7,8 @@
* [x] Deploy:
* [x] Automatically fix permission of (or delete) puppet's `devices`
folder: https://github.com/puppetlabs/puppet-specifications/blob/master/file_paths.md
+ * [x] [Puppet 8 compatibility][].
+
* [x] Keys:
* [x] Deprecate generating and deploying/import borg keys, since
pre-generation is not a supported behavior right now:
@@ -14,6 +16,8 @@
* [x] Document about how keys are encrypted and backed up in the server:
https://borgbackup.readthedocs.io/en/latest/faq.html#how-important-is-the-home-config-borg-directory
+[Puppet 8 compatibility]: https://github.com/puppetlabs/puppet/wiki/Puppet-8-Compatibility#module-compatibility
+
### hydractl
* [x] Provision: increase default partition sizes from 20G to 40G, as nowadays
diff --git a/lib/hydra/deploy b/lib/hydra/deploy
index 9f1a0ba..8bbbac2 100644
--- a/lib/hydra/deploy
+++ b/lib/hydra/deploy
@@ -9,6 +9,12 @@ function hydra_deploy_setup {
DEPLOY_RSYNC="rsync -CrltDvpq --no-owner --exclude=/ssl --exclude=logs --exclude=keys --exclude=site_keys --exclude=config/secrets --delete --rsync-path"
RSYNC_PATH="rsync -q"
+ # 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"
+
# Ensure keystore existence
mkdir -p $HYDRA_FOLDER/puppet/keys
@@ -75,9 +81,11 @@ function hydra_deploy_setup {
DEPLOY_COMMAND="$SUDO"
DEPLOY_RSYNC=""
FQDN="`cat /etc/hostname`"
- PUPPET_OPTS="--confdir=$HYDRA_FOLDER/puppet --modulepath=$HYDRA_FOLDER/puppet/modules"
hydra_deploy_set_manifest $HYDRA_FOLDER || return 1
+ # Set configuration and module path
+ PUPPET_OPTS="$PUPPET_OPTS --confdir=$HYDRA_FOLDER/puppet --modulepath=$HYDRA_FOLDER/puppet/modules"
+
# Remove old eyaml symlinks if exists
if [ -h "$HYDRA_FOLDER/puppet/keys/private_key.pkcs7.pem" ]; then
rm -f $HYDRA_FOLDER/puppet/keys/private_key.pkcs7.pem