Closed jsfrerot closed 1 month ago
I tested this and first got confused, because something like docker compose restart puppet
worked. But when I do docker compose down && docker compose up
i also get the error. Will have a deeper look into that.
btw.: PUPPERWARE_ANALYTICS_ENABLED
ist not supported anymore, were are not Pupperware. ;-)
ah okay, that was a easy one: just add the CA as a volume
volumes:
...
- ${VOLUME_ROOT:-.}/volumes/ca:/etc/puppetlabs/puppetserver/ca
Adding - ${VOLUME_ROOT:-.}/volumes/ca:/etc/puppetlabs/puppetserver/ca
on the puppet container did help for me. Still getting the following error. Note this is an existing installation and I would rather no to have to regenerate all my certificates.
root@bln-puppet-001:~# docker-compose -f /etc/docker/docker-compose.yml logs -f puppet
Attaching to docker_puppet_1
puppet_1 | Running /docker-entrypoint.d/20-use-templates-initially.sh
puppet_1 | Upgrading /opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems
puppet_1 | Running /docker-entrypoint.d/30-set-permissions.sh
puppet_1 | Running /docker-entrypoint.d/40-update-puppetdb-conf.sh
puppet_1 | Running /docker-entrypoint.d/50-set-certname.sh
puppet_1 | Running /docker-entrypoint.d/55-set-masterport.sh
puppet_1 | Running /docker-entrypoint.d/56-set-environmentpath.sh
puppet_1 | Running /docker-entrypoint.d/57-set-hiera_config.sh
puppet_1 | Running /docker-entrypoint.d/60-setup-autosign.sh
puppet_1 | Running /docker-entrypoint.d/70-set-dns-alt-names.sh
puppet_1 | Running /docker-entrypoint.d/83-environment-cache.sh
puppet_1 | Settings environment_timeout to unlimited
puppet_1 | Running /docker-entrypoint.d/84-enable_graphite.sh
puppet_1 | Running /docker-entrypoint.d/85-setup-storeconfigs.sh
puppet_1 | Running /docker-entrypoint.d/88-enable-cache-delete-api.sh
puppet_1 | Running /docker-entrypoint.d/89-csr_attributes.sh
puppet_1 | CSR Attributes: {}
puppet_1 | Running /docker-entrypoint.d/90-ca.sh
puppet_1 | Error:
puppet_1 | Existing file at '/etc/puppetlabs/puppet/ssl/certs/puppet.mydomain.io.pem'
puppet_1 | Existing file at '/etc/puppetlabs/puppet/ssl/certs/ca.pem'
puppet_1 | Existing file at '/etc/puppetlabs/puppet/ssl/crl.pem'
puppet_1 | If you would really like to replace your CA, please delete the existing files first.
puppet_1 | Note that any certificates that were issued by this CA will become invalid if you
puppet_1 | replace it!
Hi, I'm not able to restart puppet server at this moment. Not sure what happened, I thought it was able to restart after the initial start, but today I can't restart it.
I'm using docker-compose and here is the configuration
and my env file in /etc/docker/.env
any idea of what is happenning?
Thank you.