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

    bastelfreak

    11/21/2025, 9:00 PM
    I am quite sure it should run in foreground
  • j

    jms1

    11/21/2025, 9:04 PM
    it looks like it created a
    doc/
    directory, and looking at the files within that directory it looks like there are individual documentation files for each class, defined type, etc... but the
    index.html
    has "Puppet Class Listing A-Z" but only lists one class (which, coincidentally, looks like the last class it processed)
  • j

    jms1

    11/21/2025, 9:07 PM
    and actually, what i'm hoping for isn't a running "server" with the docs, but the collection of HTML/CSS/JS/etc. files that appears to be in that
    doc/
    directory, that i can upload to a directory on an internal web server, to act as static documentation for a specific "version" of the puppet code ... so to me, the broken indexes are a bigger problem than the "web server isn't running" thing.
  • o

    Oleksandr Lytvyn

    11/26/2025, 10:45 AM
    Hello, i have a question. I'm working in company that has on-premise (VMware) and AWS environments. RHEL 8 and RHEL 9 is used. Company has "Golden" image/template for on-premise RHEL8, where it has 1 bug. Pretty much like this: 1/ AWS RHEL8 (not affected) RHEL9 (not affected) 2/ On-premise VMware RHEL8 (affected ⚠️ ) RHEL9 (not affected) I kind of want to write next logic:
    Copy code
    if dig($facts, 'virtual') == 'vmware' and $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '8' {
        if Deferred('file', ['/etc/yum.repos.d/microsoft-prod.repo']).exist? {
          file_line { 'microsoft_repo_gpgcheck':
            ensure => present,
            path   => '/etc/yum.repos.d/microsoft-prod.repo',
            line   => 'gpgcheck=1',
            match  => '^\s*gpgcheck\s*=.*$',
          }
        }
      }
    Basically what makes me somewhat upset is case when in future this file will no longer be there, and from what i remember if file is absent but file_line resource will look for it it will pretty much make "puppet agent -t" fail with ERROR 500 because catalog won't be compiled. I started asking Microsoft Copilot and it gave me code above using "Deffered" to check if file exists on filesystem and only then try to apply "file_line". But Google Gemini says that it will not work and that is not how Deffered is used and pushing me towards using module from Forge with "deffered" in its name. Could someone advice, would code above work? Or what you advice in general for my use case?
  • b

    bastelfreak

    11/26/2025, 10:50 AM
    IMO: you should know which nodes need that repo, and then use puppet to manage the whole repo. for example with the puppet/yum module
    👍 1
    this 1
  • o

    Oleksandr Lytvyn

    11/26/2025, 10:52 AM
    Hmm, sounds like good idea, thanks, will look into it
  • b

    bastelfreak

    11/26/2025, 1:59 PM
    @josh can you take a quick look at https://github.com/voxpupuli/beaker-hostgenerator/pull/440 ?
  • 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