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

SSL cert isn't created for compilers #811

Open
unixsurfer opened this issue Oct 4, 2021 · 3 comments
Open

SSL cert isn't created for compilers #811

unixsurfer opened this issue Oct 4, 2021 · 3 comments

Comments

@unixsurfer
Copy link

In my use-case I want to build a compiler and I use the following snippet:

class { 'puppet::server':
    version  => '7.3.0-1bionic',
    foreman  => false,
    ca  => false,
    jvm_min_heap_size   => $jvm_min_heap_size,
    jvm_max_heap_size   => $jvm_max_heap_size,
  }

but the puppetservice service fails to start as it doesn't find the certificate:

 "Unable to open 'ssl-cert' file: /etc/puppetlabs/puppet/ssl/certs/puppet-dev-bionic.pem",

In hiera I point to the correct CA server and I was expecting to see code to run puppet ssl bootstrap but I didn't.
what am I doing wrong?

@alexjfisher
Copy link
Contributor

Is declaring puppet::server directly supported? I've always declared the base puppet class and set server => true (and other options) there.

@ekohl
Copy link
Member

ekohl commented Oct 4, 2021

Technically I guess it's supported. I know that there are also people do essentially use this in their base profile:

class { 'puppet':
  server => false,
}

And then in another profile:

class { 'puppet::server':
  ...
}

In hiera I point to the correct CA server and I was expecting to see code to run puppet ssl bootstrap but I didn't.

I don't think we really considered this use case that much. Personally I've always set up hosts to provision, including Puppet setup. Then in profiles I added additional functionality. At that point the bootstrapping was already done.

@unixsurfer
Copy link
Author

unixsurfer commented Oct 4, 2021

@ekohl this is what I am doing as well.
I think my issue is rather a process issue for bootstrapping a compiler. I just need to adjust the process to run puppet ssl bootstrap before I apply the corresponding role+profile on the 1st compiler of the region.

Having said that, it would be nice if the module could generate the certs on a compiler as well.

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

No branches or pull requests

3 participants