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

Intermediate CA import crashes container Startup if CA is already imported #122

Open
l4rsV opened this issue Sep 9, 2024 · 2 comments · May be fixed by #123
Open

Intermediate CA import crashes container Startup if CA is already imported #122

l4rsV opened this issue Sep 9, 2024 · 2 comments · May be fixed by #123

Comments

@l4rsV
Copy link

l4rsV commented Sep 9, 2024

If you restart the container, the 90.sh script crashes the startup, if you have already imported the CA earlier.
See attachment.

I think something like checking for existing files before importing ($ puppetserver ca import) could fix it or changing the exit code?

Reference: #116

puppet_intermediate.txt

@rwaffen
Copy link
Sponsor Member

rwaffen commented Sep 10, 2024

@tuxmea did you see something like this, while you implemented this?

@l4rsV
Copy link
Author

l4rsV commented Sep 11, 2024

I did a quick and dirty fix for our systems and override it by dockerfile. So container restarting isn't a problem anymore:

if [[ -f /etc/puppetlabs/puppet/ssl/certs/ca.pem ]]; then exit 0; else puppetserver ca import; fi

tuxmea added a commit to tuxmea/container-puppetserver that referenced this issue Sep 11, 2024
@tuxmea tuxmea linked a pull request Sep 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants