Compare commits

...

2 Commits

Author SHA1 Message Date
unkinben 6ef3cb2731 fix: install filemapper gem in generate-types cronjob
The cronjob runs in its own container without the additional-ruby-gems
init script, so filemapper must be installed directly before running
puppet generate types.

💘 Generated with Crush

Assisted-by: Claude Sonnet 4.6 via Crush <crush@charm.land>
2026-03-21 23:59:19 +11:00
unkinben a475da8bea fix: install filemapper gem and deploy generate-types cronjob
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".

Also adds cronjob_generate-types.yaml to the kustomization so the
generate-types CronJob is actually deployed.

💘 Generated with Crush

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