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

    Joel Wilson

    01/10/2023, 7:19 PM
    Is the filename for yumrepo based on the title or descr ?
  • j

    Joel Wilson

    01/10/2023, 7:21 PM
    I mean to be sure to absent it
  • j

    Joel Wilson

    01/10/2023, 7:21 PM
    In light of adding in a basically identical repo with a different name
  • l

    Lumiere

    01/10/2023, 7:21 PM
    I would personally update the class that installs it, to have a variable that does
    ensure => absent
    so you just include it everywhere and use hiera to disable it where needed as the middle step
    👍 1
  • j

    Joel Wilson

    01/10/2023, 7:25 PM
    facepalm
  • j

    Joel Wilson

    01/10/2023, 7:25 PM
    Yes.
  • j

    Joel Wilson

    01/10/2023, 7:31 PM
    Except now I have to remove the explicit includes in various locations.
  • j

    Joel Wilson

    01/10/2023, 7:33 PM
    I'd do them as collector overrides, but that's ordering dependent, too.
  • n

    natemccurdy

    01/10/2023, 7:42 PM
    Collector overrides won't work on the nodes where the yumrepo isn't managed.
  • j

    Joel Wilson

    01/10/2023, 7:48 PM
    I mean Lumiere's suggestion of including it everywhere. In my case
    absent
    would be the default and I'd do a Collector override to
    present
    in the places where it is currently included. My hiera enviroment doesn't currently make the original suggestion quite work for me.
  • j

    Joel Wilson

    01/10/2023, 7:49 PM
    And the beauty of Collectors is that they only trigger on the existence of the resource. They don't do a hard fail.
  • j

    Joel Wilson

    01/10/2023, 7:49 PM
    At any rate, I think I'm still stuck with my colleague's solution, which isn't terrible.
  • l

    Lumiere

    01/10/2023, 7:52 PM
    it's a thing to think about for later 😄
  • l

    Lumiere

    01/10/2023, 7:53 PM
    but that's pretty much how we do everything, we install most classes globally with a feature flag variable (ensure) to turn them off or on as needed
  • l

    Lumiere

    01/10/2023, 7:53 PM
    it also allows us to write uninstall code into the absent if we need to
  • j

    Joel Wilson

    01/10/2023, 7:57 PM
    We don't presently have even roles-profiles. I can get more hieradata-centric with a lot of this when I've moved my org in that direction
  • j

    Joel Wilson

    01/10/2023, 7:57 PM
    We've got this ENC config generator thingy.
  • b

    binford2k

    01/10/2023, 8:27 PM
    btw, registration is going fast for cfgmgmtcamp. Get your ticket while you can! https://cfgmgmtcamp.eu/ghent2023/
  • s

    Slackbot

    01/10/2023, 8:39 PM
    This message was deleted.
    r
    • 2
    • 1
  • l

    Les Shiner

    01/11/2023, 12:26 AM
    puppetserver ca generate --certname (name) --subject-alt-names (alt names) is returning the error
    Copy code
    Fatal error when running action 'generate'
      Error: Failed connecting to <https://puppet:8140/puppet-ca/v1/certificate_request/>
      Root cause: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140)
    /etc/hosts has
    Copy code
    xx.xx.xx.xx(IP Address) puppet
    I'm running this as a user, not as root.
  • l

    Les Shiner

    01/11/2023, 12:28 AM
    it's generating the public and private keys, but then throws that error
  • n

    natemccurdy

    01/11/2023, 12:33 AM
    Is the
    puppetserver
    service running on whatever xx.xx.xx.xx is?
  • n

    natemccurdy

    01/11/2023, 12:34 AM
    Is the
    puppetserver
    service running on whatever xx.xx.xx.xx is?
  • l

    Les Shiner

    01/11/2023, 12:36 AM
    yea
  • l

    Les Shiner

    01/11/2023, 12:36 AM
    localcacert = /home/puppetadmin/.puppetlabs/etc/puppet/ssl/certs/ca.pem
  • l

    Les Shiner

    01/11/2023, 12:36 AM
    that's unique
  • l

    Les Shiner

    01/11/2023, 12:36 AM
    that's because i'm running this all as a user isn't it, instead of root
  • n

    natemccurdy

    01/11/2023, 12:38 AM
    Yes, most likely.
  • l

    Les Shiner

    01/11/2023, 12:40 AM
    I'm using https://www.puppet.com/docs/puppet/7/ssl_regenerate_certificates.html
  • l

    Les Shiner

    01/11/2023, 12:40 AM
    which states to stop the puppetserver service, then run puppetserver ca generate, then start it
1...265266267...428Latest