fix: install filemapper gem and deploy generate-types cronjob (#71)

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>

Reviewed-on: #71
This commit was merged in pull request #71.
This commit is contained in:
2026-03-22 00:03:33 +11:00
parent c0d95b71a7
commit 0fc1268c51
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"