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

    Neeloj

    12/01/2025, 10:23 AM
    Hi all, I use something simmilart to this blog to renew agent certificates under puppet http://www.watzmann.net/blog/2014/06/puppet-autosign-policy.html, it works until Puppet7, after I upgrade to puppet8 it doesnt work anymore,
    Copy code
    puppet config print --section master autosign
    /usr/local/bin/autosign-psk
    how can I verify why its nor working ? In logs puppetserver.log I dont see any errors about that.
  • b

    bastelfreak

    12/01/2025, 10:24 AM
    What isn't working?
  • b

    bastelfreak

    12/01/2025, 10:25 AM
    The command itself? The script?
  • b

    bastelfreak

    12/01/2025, 10:25 AM
    And the master section is deprecated, server is the successor
    n
    • 2
    • 16
  • g

    govind

    12/03/2025, 6:25 AM
    Hi team need small info
  • g

    govind

    12/03/2025, 6:26 AM
    Is there any way can I get all used resources from the master server
  • g

    govind

    12/03/2025, 6:27 AM
    How can I get What all resources used in the code?
  • g

    govind

    12/03/2025, 6:35 AM
    How can we get a complete list of puppet managed resources? From master server
  • t

    tuxmea

    12/03/2025, 7:04 AM
    you can check for puppet resources in puppetdb
  • g

    govind

    12/03/2025, 7:28 AM
    Can you please share commands
  • b

    bastelfreak

    12/03/2025, 7:28 AM
    why do you need those information?
  • g

    govind

    12/03/2025, 7:29 AM
    I need to check what all resources we are using in our environment
  • b

    bastelfreak

    12/03/2025, 7:29 AM
    do you want to know which resources are managed on the puppetserver, or do you want to query all managed resources on all nodes, but run the query on the puppetserver?
  • g

    govind

    12/03/2025, 7:30 AM
    I need all the resources we are using in the existing puppet code
  • g

    govind

    12/03/2025, 7:31 AM
    I need to check all managed resources on all nodes , but run the query on the master server
  • g

    govind

    12/03/2025, 7:32 AM
    When I ran puppet resource --types getting Same resources on master as well node
  • g

    govind

    12/03/2025, 7:35 AM
    Till now what all resources we used to write the code want to know
  • b

    bastelfreak

    12/03/2025, 7:49 AM
    puppet resource --types
    only gives you a list of all types that Puppet can manage
  • b

    bastelfreak

    12/03/2025, 7:49 AM
    each agent writes a resources.txt with all managed resources. You can also query the PuppetDB API to get a list of all managed resources from the last catalogs
  • g

    govind

    12/03/2025, 8:01 AM
    Can you please share puppetdb api command
  • b

    bastelfreak

    12/03/2025, 8:02 AM
    https://help.puppet.com/pdb/8/topics/resources.htm this is the API documentation
  • b

    bastelfreak

    12/03/2025, 1:16 PM
    @josh could you take a look at https://github.com/voxpupuli/beaker-hostgenerator/pull/440 please?
  • j

    jms1

    12/03/2025, 3:26 PM
    quick question: when the compiler sends the catalog to the agent, is the
    resources[]
    list within the catalog in the exact order that the agent will check/enforce the resources? or does the agent go through what it receives, resolve the dependences, and convert it from an "un-ordered list" to an "ordered list"? ... i've always assumed it was the latter (i.e. agent resolves dependencies) but i'm being asked for a definitive answer now.
    c
    n
    • 3
    • 7
  • v

    vchepkov

    12/09/2025, 4:54 PM
    It appears that puppet agent service changes ownership of the cache directory from root to puppet. Any way to prevent that? Didn't find anything obvious in puppet config
    a
    c
    • 3
    • 6
  • y

    Yorokobi

    12/09/2025, 7:37 PM
    How long does it take for a PDK release and its release notes to sync up? I see 3.6.0 is available but docs don't have it yet.
    k
    j
    • 3
    • 3
  • j

    jms1

    12/09/2025, 9:47 PM
    question ... the team that manages our production machines (i.e. at client sites) came to me earlier with an issue where the agent is taking almost five hours to finish (where the normal time is 45-120 seconds, depending on hardware) ... they sent me the output of
    puppet agent -t --debug
    , and it turns out the problem is one
    file
    resource with
    ensure => directory
    and
    recurse => true
    , where that directory tree on the target server contains about 450K individual files (this is an expected condition, but it's something that our QA people aren't testing) ... the debug logs show that the agent is looking up the expected SELinux (user, role, type, range) for EVERY SINGLE FILE, apparently so it can check/fix every single file
    b
    k
    a
    • 4
    • 18
  • n

    Navester

    12/11/2025, 5:11 AM
    Hi Team, I looking for a puppet solution which collects the diskspace of the respective server and if there is enough diskspace (let's say free 10gb) then download binaries and apply fixpack . Tried to do the same using custom facts but when puppet runs for the first time it's not applied because I think facts gets loaded or refreshed after second puppet run. Any suggestions please ?
  • y

    Yury Bushmelev

    12/11/2025, 5:19 AM
    You should be able to see the disk space with just default facts IIRC (not 100% sure about windows though)
  • y

    Yury Bushmelev

    12/11/2025, 5:20 AM
    Another option is to write a Ruby fact. Those are pluginsynced before first run
  • y

    Yury Bushmelev

    12/11/2025, 5:21 AM
    But I’d say this is a job for Bolt