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

    CVQuesty

    01/27/2023, 7:02 PM
    and β€œyes”…. I’m annoyed my own article is missing.
  • c

    CVQuesty

    01/27/2023, 7:02 PM
    πŸ˜›
  • v

    vchepkov

    01/27/2023, 8:58 PM
    weird issue, never seen one before
    Copy code
    The current total number of facts: 2071 exceeds the number of facts limit: 2048
    There is not even close when I check facts
    Copy code
    # facter -p |grep -c ^[a-z] 
    130
    What gives ?
    βœ… 1
  • n

    natemccurdy

    01/27/2023, 9:02 PM
    Did you run
    facter
    as root?
  • v

    vchepkov

    01/27/2023, 9:02 PM
    yep.
    #
    is there
  • n

    natemccurdy

    01/27/2023, 9:04 PM
    Try
    facter -p --show-legacy | grep -c '^[a-z]'
  • v

    vchepkov

    01/27/2023, 9:05 PM
    Copy code
    # facter -p --show-legacy | grep -c -i '^[a-z]'
    231
  • n

    natemccurdy

    01/27/2023, 9:05 PM
    Try
    facter -p --show-legacy | grep -c '^[a-z]'
  • v

    vchepkov

    01/27/2023, 9:09 PM
    Copy code
    # puppet facts --render-as json|jq 'keys[]'|wc -l
    131
  • v

    vchepkov

    01/27/2023, 9:10 PM
    but agent emits warning each run
  • n

    natemccurdy

    01/27/2023, 9:12 PM
    This ticket seems to imply that facts that are hashes of hashes causes the count of total facts to include each sub-hash: https://tickets.puppetlabs.com/browse/PUP-11685
  • v

    vchepkov

    01/27/2023, 9:13 PM
    Oh
  • v

    vchepkov

    01/27/2023, 9:14 PM
    yeah, it happens only on nodes running docker, probably very nested fact no one uses πŸ™‚
  • s

    Slackbot

    01/27/2023, 9:14 PM
    This message was deleted.
    w
    j
    • 3
    • 3
  • v

    vchepkov

    01/27/2023, 9:15 PM
    I wish I could blocklist an arbitrary fact, instead of some limited list
  • v

    vchepkov

    01/27/2023, 9:18 PM
    nothing excessive though
  • s

    Slackbot

    01/27/2023, 9:20 PM
    This message was deleted.
    d
    j
    • 3
    • 3
  • g

    Greg Bristol

    01/27/2023, 11:54 PM
    has anyone ever mocked a fact with onceover?
  • g

    Greg Bristol

    01/27/2023, 11:54 PM
    we have a bunch of custom facts that i'd like to conditionally set the values for and i cannot figure out how to do that
  • g

    Geromy Harper

    01/28/2023, 12:02 AM
    I'd also like to know if this is possible
  • n

    natemccurdy

    01/28/2023, 12:07 AM
    Are you referring to mocking facts using something other than by providing a fact set? https://github.com/dylanratcliffe/onceover#factsets
  • d

    David Sandilands

    01/28/2023, 12:10 AM
    My understanding is you can add your own fact-groups in facter.conf for facter 4 (assuming not external facts) and then block those groups. (A silly two step to block but still) https://www.puppet.com/docs/puppet/7/configuring_facter.html#configuring_facter-facter-conf-fact-groups
  • g

    Greg Bristol

    01/28/2023, 12:12 AM
    yes
  • g

    Greg Bristol

    01/28/2023, 12:13 AM
    i want to be able to add a fact dynamically based on the role name essentially
  • g

    Greg Bristol

    01/28/2023, 12:13 AM
    or based on
    $onceover_class
  • y

    Yury Bushmelev

    01/28/2023, 9:23 AM
    Raised it here: https://github.com/puppetlabs/pdk/discussions/1206 @David Sandilands FYI
  • s

    Slackbot

    01/28/2023, 2:37 PM
    This message was deleted.
    n
    c
    n
    • 4
    • 31
  • n

    natemccurdy

    01/28/2023, 5:23 PM
    This behavior is resource defaults is exactly why that file backup is default is usually defined in the global space of site.pp.
  • n

    natemccurdy

    01/28/2023, 5:23 PM
    This behavior is resource defaults is exactly why that file backup default is usually defined in the global space of site.pp.
  • n

    natemccurdy

    01/28/2023, 6:34 PM
    This behavior of resource defaults is exactly why that file backup default is usually defined in the global space of site.pp.
1...289290291...428Latest