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

    natemccurdy

    08/10/2022, 5:24 PM
    but also I think Facter knows about the extension and won’t try to run in on linux… maybe?
  • b

    bastelfreak

    08/10/2022, 5:28 PM
    dont deploy external facts to nodes that dint require them :)
  • s

    Slackbot

    08/10/2022, 6:01 PM
    This message was deleted.
    b
    n
    +2
    • 5
    • 12
  • s

    Slackbot

    08/10/2022, 6:29 PM
    This message was deleted.
    j
    b
    • 3
    • 2
  • n

    natemccurdy

    08/10/2022, 6:34 PM
    The former uses the system’s DNS resolver. The latter uses /etc/hosts and implements its own weird caching, which has a lot of problems, especially around not honoring TTL’s and the like.
  • f

    Franktamil

    08/10/2022, 7:06 PM
    Hello Team! Any documentation help to migrate from Puppet Enterprise to Open source puppet..? Even new open source puppet server setup and add tools to daily operations and management.. Thanks!
  • s

    Slackbot

    08/10/2022, 7:08 PM
    This message was deleted.
    f
    b
    +5
    • 8
    • 10
  • j

    Jason Grammenos

    08/10/2022, 7:57 PM
    https://github.com/voxpupuli/puppetboard, along with puppetdb can give you some level of dashboarding. but i am not sure how it compares to PE
  • s

    Slackbot

    08/10/2022, 10:06 PM
    This message was deleted.
    🙏 1
    j
    b
    b
    • 4
    • 15
  • b

    binford2k

    08/10/2022, 10:06 PM
    @jhoblitt I think it was you asking for a way to get all classes installed in environments. You might take a look at https://github.com/puppetlabs/dropsonde/pull/26, I’m using that list to identify unused modules.
  • j

    jhoblitt

    08/10/2022, 10:26 PM
    @binford2k ++
  • b

    binford2k

    08/10/2022, 10:38 PM
    in that regards, https://github.com/puppetlabs/r10k/pull/1314
  • c

    Corporate Gadfly

    08/11/2022, 1:01 AM
    Bump for the pull request. TIA.
  • b

    bastelfreak

    08/11/2022, 6:46 AM
    for detecting dead code, https://github.com/voxpupuli/puppet-ghostbuster is also nice
  • s

    Slackbot

    08/11/2022, 2:08 PM
    This message was deleted.
    y
    k
    l
    • 4
    • 8
  • y

    Yorokobi

    08/11/2022, 2:13 PM
    Are other branches checked out into their own environment/ directory on the Puppet server?
  • y

    Yorokobi

    08/11/2022, 2:20 PM
    Trying to test a branch that you clone/check out directly onto an agent might be problematic, especially if you're pulling modules from Puppet forge.
  • m

    ma_garvo

    08/11/2022, 3:29 PM
    message has been deleted
  • j

    Joel Wilson

    08/11/2022, 3:50 PM
    I messed up my puppet master’s
    auth.conf
    so it’s rejecting
    /puppet/v3/catalog
    requests. It happened to touch that file during a puppet run, so I’m trying to find if there’s a bucketed of the original. Where would I look for that?
  • j

    Joel Wilson

    08/11/2022, 4:02 PM
    Oh. I think it’s because I turned on
    allow-header-cert-info
  • j

    Joel Wilson

    08/11/2022, 4:12 PM
    I’m getting this on a server it was working on. The class I’m using to manage puppetservers did bad touch and broke it somehow. The gem is still installed with
    puppetserver gem
    , but broken somehow
  • s

    Slackbot

    08/11/2022, 4:26 PM
    This message was deleted.
    v
    h
    • 3
    • 3
  • h

    hbui

    08/11/2022, 4:26 PM
    In my current puppet environment, we've made use of https://github.com/kumina/fact-pci_devices which creates raidcontroller<digit>_driver style facts based on lspci output. I need a way to load packages if any one of those facts matches megaraid. Currently, we have systems that would match where the digit is anywhere from 0 to 6. Is there a nice way to do a glob in the name of a fact in puppet code: bash like psuedo code:
    Copy code
    for i in raidcontroller*_device; do
      if $i ~ 'megaraid.*"; then
        ensure_package('storcli')
      fi
    done
    we'd also have an
    if defined($i)
    or similar
  • b

    bastelfreak

    08/11/2022, 4:29 PM
    I would rewrite it as a structured fact
  • y

    Yorokobi

    08/11/2022, 4:31 PM
    Kinda looks like it builds a hash, which you should be able to iterate over.
  • h

    hbui

    08/11/2022, 4:33 PM
    they are all top level facts, so we'd likely need to rewrite so that we could iterate over sub items of a hash
  • v

    vchepkov

    08/11/2022, 4:33 PM
    considering storcli is so small it's easier to install it just based on some dmi information
  • j

    Joel Wilson

    08/11/2022, 4:33 PM
    I think you can get a key list from $::facts and then filter out for the keys you want to examine
  • h

    hbui

    08/11/2022, 4:34 PM
    do you have examples of that technique Joel?
  • j

    Joel Wilson

    08/11/2022, 4:35 PM
    Not presently.
1...128129130...428Latest