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

    vchepkov

    06/17/2022, 3:48 PM
    it's an internal variable
  • c

    CVQuesty

    06/17/2022, 3:48 PM
    puppet_settings absolutely is a fact
  • c

    CVQuesty

    06/17/2022, 3:48 PM
    it’s in <moduledir>/lib/facter/puppet_settings.rb
  • j

    Jonathon Anderson

    06/17/2022, 3:48 PM
    puppet_settings
    is from simplib, not stdlib
  • v

    vchepkov

    06/17/2022, 3:48 PM
    no, it has 3 other facts
  • v

    vchepkov

    06/17/2022, 3:49 PM
    yep, I see it, never used it
  • v

    vchepkov

    06/17/2022, 3:49 PM
    https://github.com/simp/pupmod-simp-simplib/blob/master/lib/facter/simp_puppet_settings.rb
  • v

    vchepkov

    06/17/2022, 3:49 PM
    https://github.com/simp/pupmod-simp-simplib/blob/master/lib/facter/simp_puppet_settings.rb
  • c

    CVQuesty

    06/17/2022, 3:49 PM
    https://github.com/puppetlabs/puppetlabs-stdlib/blob/main/lib/facter/puppet_settings.rb
  • c

    CVQuesty

    06/17/2022, 3:49 PM
    https://github.com/puppetlabs/puppetlabs-stdlib/blob/main/lib/facter/puppet_settings.rb
  • v

    vchepkov

    06/17/2022, 3:50 PM
    right, no puppet_settings fact there
  • t

    tvaughan

    06/17/2022, 3:51 PM
    Yup... simplib drags them all in because they're all useful when you're managing puppet with puppet
  • v

    vchepkov

    06/17/2022, 3:51 PM
    I personally don't think that fact is useful. your code should dictate the settings, not other way around
  • c

    CVQuesty

    06/17/2022, 3:52 PM
    Now on this we can agree.
  • r

    rnelson0

    06/17/2022, 3:52 PM
    @CVQuesty what did I do now?!
  • c

    CVQuesty

    06/17/2022, 3:52 PM
    But I totally have that fact. It’s empty, but I have it and it responds when I call it with “facter” and I don’t have simp_puppet_settings either
  • t

    tvaughan

    06/17/2022, 3:52 PM
    Your file gets mighty big when you have to figure out which nodes are servers and agents dynamically
  • c

    CVQuesty

    06/17/2022, 3:53 PM
    ^^^
  • t

    tvaughan

    06/17/2022, 3:53 PM
    I mean, I guess you could add tags to DNS and read from there but....hrm
  • c

    CVQuesty

    06/17/2022, 3:53 PM
    Trevor must have a “simp” notification bot
  • t

    tvaughan

    06/17/2022, 3:53 PM
    Perchance....
  • c

    CVQuesty

    06/17/2022, 3:53 PM
    hehe… just type “simp” and here he comes.
  • c

    CVQuesty

    06/17/2022, 3:54 PM
    simp
  • c

    CVQuesty

    06/17/2022, 3:54 PM
    simp
  • c

    CVQuesty

    06/17/2022, 3:54 PM
    simp
  • v

    vchepkov

    06/17/2022, 3:54 PM
    adding server section to puppet.conf doesn't make puppet a server 🙂
  • t

    tvaughan

    06/17/2022, 3:54 PM
    Oh, and it lets you hook up your puppetdb to your certs properly without having to mess with things 😄
  • t

    tvaughan

    06/17/2022, 3:54 PM
    Having to rebootstrap all your nodes when your certs change is no fun, let puppet do it for you!
  • c

    CVQuesty

    06/17/2022, 3:54 PM
    Does it alert when I type “simple”?
  • c

    CVQuesty

    06/17/2022, 3:54 PM
    😄
1...727374...428Latest