https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • 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
    j
    • 4
    • 8
  • 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 ?
    j
    • 2
    • 1
  • 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
    ❤️ 1
  • y

    Yury Bushmelev

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

    Navester

    12/16/2025, 5:10 PM
    Hi All Do someone know how to install pdk in windows?
  • n

    Navester

    12/16/2025, 5:10 PM
    I found a curl command were it's looking for api key which I'm not sure
  • j

    Jason St-Cyr

    12/16/2025, 6:00 PM
    @Navester: Is the curl command you have for downloading from the artifacts URL? The API key in that case is likely asking for your Forge API key set on your account to authenticate to the Forge. Have you tried to download the Windows version from the download site? https://forge.puppet.com/resources/pdk Once you have package downloaded you should be able to double-click the package to run the installer. Installation instructions are here: https://help.puppet.com/pdk/current/topics/install_pdk_windows.htm
  • n

    Navester

    12/16/2025, 6:09 PM
    While I click download it asks for username and password .May I know which credential is required here . I remember I was able to install the same on my personal laptop long back without any credentials . Can you please here @Jason St-Cyr
  • j

    Jason St-Cyr

    12/16/2025, 6:13 PM
    @Navester: The docs I linked have the instructions you'll want for the username and password. Short version: Use either your license ID as the password (if you are a customer paying for the software) or use your Forge API key as the password if want to auth with your Forge account. This will be similar to how you would use curl, as well. The latest versions of PDK are now licensed so require either a paid license or an acceptance of the Forge EULA for free use.
  • n

    Navester

    12/17/2025, 1:44 AM
    Thanks Jason