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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user