fix: install filemapper gem and deploy generate-types cronjob
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful

The network module's interfaces provider requires puppetx/filemapper
which was not installed, causing catalog compilation failures with
"no such file to load -- puppetx/filemapper".

Adds filemapper to additional-ruby-gems.sh for puppetserver/compiler
pods, installs it directly in the generate-types cronjob (which has no
access to that script), and adds cronjob_generate-types.yaml to the
kustomization so the CronJob is actually deployed.

💘 Generated with Crush

Assisted-by: Claude Sonnet 4.6 via Crush <crush@charm.land>
This commit is contained in:
2026-03-22 00:01:16 +11:00
parent 2a96d9e948
commit cfc7cb345e
3 changed files with 3 additions and 0 deletions
@@ -35,6 +35,7 @@ spec:
- -c
args:
- |
/opt/puppetlabs/puppet/bin/gem install filemapper toml
find /etc/puppetlabs/code/environments -mindepth 1 -maxdepth 1 -type d | while read -r envdir; do
env="$(basename "$envdir")"
echo "Generating types for $env"
+1
View File
@@ -7,6 +7,7 @@ resources:
- cnpg_cluster.yaml
- cnpg_pooler.yaml
- cronjob_g10k-code.yaml
- cronjob_generate-types.yaml
- persistentvolumeclaims.yaml
- vaultauth.yaml
- vaultstaticsecret.yaml
@@ -3,4 +3,5 @@ set -e
echo "Installing additional Ruby gems..."
/opt/puppetlabs/puppet/bin/gem install toml
/opt/puppetlabs/puppet/bin/gem install filemapper
echo "Additional Ruby gems installed successfully"