https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • d

    davidpinaz

    09/15/2022, 5:04 PM
    Yeah, we’ve been doing active/passive but it really hasn’t been working with our volume, so we’re looking at other options
  • b

    bastelfreak

    09/15/2022, 5:04 PM
    which part didnt work?
  • d

    davidpinaz

    09/15/2022, 5:06 PM
    We have users that flex up thousands of instances, and decom thousands of instances within a very short time frame. Managing the creation/signing and deletion of the certs has led to bottlenecks with the single CA (we don’t run puppetDB atm). So we’re looking at any possible way to mitigate that. The first step was discontinuing the CRL stuff
  • b

    bastelfreak

    09/15/2022, 5:09 PM
    maybe switch to a different CA?
  • d

    davidpinaz

    09/15/2022, 5:10 PM
    We were looking into that, too, but puppetlabs recommended against the idea (IIRC). Have you used a different CA that has worked?
  • d

    davidpinaz

    09/15/2022, 5:10 PM
    We’re open to anything, tbh, lol
  • b

    bastelfreak

    09/15/2022, 5:11 PM
    I looked into vault a long time ago, that worked fine. but I didnt do any performance benchmarks
  • b

    bastelfreak

    09/15/2022, 5:11 PM
    I am wondering if you can do multiple puppet CAs with a shared root CA and indovidula intermediate CA
  • b

    bastelfreak

    09/15/2022, 5:11 PM
    that should work
  • d

    davidpinaz

    09/15/2022, 5:14 PM
    Would there be any issue with cert serial numbers or anything?
    /etc/puppetlabs/puppet/ssl/ca/serial
  • r

    ramindk

    09/15/2022, 5:15 PM
    In past we tried not to care about certs. Every puppetserver was a CA with a shared root ca. For some security the backend did a opsdb check around hostname/IP. That said not sure if pounding on AWS API is a good idea. Maybe new instances post to SQS and the puppetserver that gets the requests pops it off as a simple verification step. I've used a similar solution to manage decoms.
  • b

    bastelfreak

    09/15/2022, 5:18 PM
    @davidpinaz I think each intermediate CA creates has their own serial. so if th3 intermediate CA is shared across multiple puppetCAs, you need some global locking to not kill the file
  • b

    bastelfreak

    09/15/2022, 5:18 PM
    but when the intermediate CA isnt shared it should be fine. at least worth a test
  • d

    davidpinaz

    09/15/2022, 5:19 PM
    I’m not sure the intermediate would be shared, necessarily, but, each CA would be behind a LB, so an agent would be able to connect to any of the CA’s
  • b

    bastelfreak

    09/15/2022, 5:23 PM
    I think that should be fine/has to work. you can tell puppetserver to only verify the first level of the agent cert chain, so it doesnt care which intermediate signed it
  • b

    bastelfreak

    09/15/2022, 5:23 PM
    (at least I think so)
  • d

    davidpinaz

    09/15/2022, 5:24 PM
    sweet!!! Thanks everyone!
  • j

    John Ratliff

    09/15/2022, 5:31 PM
    what is the difference between
    Struct[{Optional[field] => String}]
    and
    Struct[{field => Optional[String]}]
    ?
  • n

    natemccurdy

    09/15/2022, 5:36 PM
    Both allow
    field
    to be missing. But the latter allow’s `field`’s value to be literally
    undef
    👍 2
  • j

    John Ratliff

    09/15/2022, 8:11 PM
    Copy code
    $ puppet module install --target-dir . puppet-grafana --version 11.0.0
    Notice: Preparing to install into /etc/puppetlabs/code/environments/jdratlif/modules ...
    Notice: Downloading from <https://forgeapi.puppet.com> ...
    Error: Could not install module 'puppet-grafana' (v11.0.0)
      The requested version cannot satisfy one or more of the following installed modules:
        puppetlabs-stdlib, installed: 7.1.0, expected: >= 4.20.0 < 9.0.0
    
      Use `puppet module install 'puppet-grafana' --ignore-dependencies` to install only this module
    Is there a reason puppet module install thinks the version of stdlib it found doesn't satisfy that version range. It sure seems like it does. I had the same problem when installing the puppetlabs-apache module, but it worked fine when I used ignore-dependencies.
  • j

    John Ratliff

    09/15/2022, 8:11 PM
    Copy code
    $ puppet module install --target-dir . puppet-grafana --version 11.0.0
    Notice: Preparing to install into /etc/puppetlabs/code/environments/jdratlif/modules ...
    Notice: Downloading from <https://forgeapi.puppet.com> ...
    Error: Could not install module 'puppet-grafana' (v11.0.0)
      The requested version cannot satisfy one or more of the following installed modules:
        puppetlabs-stdlib, installed: 7.1.0, expected: >= 4.20.0 < 9.0.0
    
      Use `puppet module install 'puppet-grafana' --ignore-dependencies` to install only this module
    Is there a reason puppet module install thinks the version of stdlib it found doesn't satisfy that version range. It sure seems like it does. I had the same problem when installing the puppetlabs-apache module, but it worked fine when I used ignore-dependencies.
  • b

    bastelfreak

    09/15/2022, 8:17 PM
    usually people use r10k to deploy modules and just ignore the whole version range
  • d

    David Sandilands

    09/15/2022, 8:20 PM
    @davidpinaz @bastelfreak I know one of the PE customers uses https://github.com/fervidus/puppet_ca_utils to setup mutual trust between CAs and that allows them to switch agents between multiple Server/CA setups.
    🌮 1
  • d

    David Sandilands

    09/15/2022, 8:20 PM
    @davidpinaz @bastelfreak I know one of the PE customers uses https://github.com/fervidus/puppet_ca_utils to setup mutual trust between CAs and that allows them to switch agents between multiple Server setups.
  • v

    vchepkov

    09/15/2022, 8:20 PM
    most likely some other existing module require higher version of stdlib.
  • d

    David Sandilands

    09/15/2022, 8:21 PM
    @davidpinaz @bastelfreak I know one of the PE customers uses https://github.com/fervidus/puppet_ca_utils to setup mutual trust between CAs and that allows them to switch agents between multiple Server/CA setups.
  • b

    bastelfreak

    09/15/2022, 8:21 PM
    @David Sandilands oh nice
    ➕ 1
  • s

    Slackbot

    09/15/2022, 9:31 PM
    This message was deleted.
    r
    n
    b
    • 4
    • 12
  • s

    sameer

    09/16/2022, 6:16 AM
    l would like to add the apache site conf on one of the server but the manifest file is created in such a way that if i add anything it would get added to all the servers pointing to it. I created the conf file in ..///modules/roles/files/mule/mule01/xyz.conf.......and the apache config is managed via the apache module (apache::vhost) in roles_am::muleserver........this is how one of the looks like apache::vhost { "${fqdn}-ssl": ensure => present, port => 443,
  • s

    sameer

    09/16/2022, 6:19 AM
    l would like to add the apache site conf on one of the server but the manifest file is created in such a way that if i add anything it would get added to all the servers pointing to it. I created the conf file in ..///modules/roles/files/mule/mule01/xyz.conf.......and the apache config is managed via the apache module (apache::vhost) in roles_am::muleserver........this is how one of the looks like apache::vhost { "${fqdn}-ssl": ensure => present, port => 443,
1...164165166...428Latest