Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run 'puppet generate types' when appropriate #145

Open
bjvrielink opened this issue Jan 7, 2023 · 1 comment
Open

Run 'puppet generate types' when appropriate #145

bjvrielink opened this issue Jan 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bjvrielink
Copy link
Contributor

Use Case

I get 'Could not autoload' errors in Puppet.

Describe the Solution You Would Like

I would like to run the command 'puppet generate types --environment $environment' when needed (for example, in r10k postrun)

Describe Alternatives You've Considered

I have naively tried to add a postrun in the r10k config myself, until I realized that there is no puppet installed in the r10k container.

Additional Context

What is the best approach? Multiple containers have access to /etc/puppetlabs/code, but the one that knows when to run generate types does not have puppet and the one that has the puppet command does not know when to run generate types.

@bjvrielink bjvrielink added the enhancement New feature or request label Jan 7, 2023
@davidphay
Copy link
Collaborator

We use the officiel R10K image, so if puppet is not installed we can't do anything.

You still can build a custom image with puppet and update the downloaded image in the values.yaml ( r10k.image and r10k.tag ).

Then you can use postrun to execute what you need.

Unless you have a better idea, feel free to send our way a PR !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants