bastelfreak
11/21/2025, 9:00 PMjms1
11/21/2025, 9:04 PMdoc/ 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)jms1
11/21/2025, 9:07 PMdoc/ 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.Oleksandr Lytvyn
11/26/2025, 10:45 AMif 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?bastelfreak
11/26/2025, 10:50 AMOleksandr Lytvyn
11/26/2025, 10:52 AMbastelfreak
11/26/2025, 1:59 PMNeeloj
12/01/2025, 10:23 AMpuppet 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.bastelfreak
12/01/2025, 10:24 AMbastelfreak
12/01/2025, 10:25 AMbastelfreak
12/01/2025, 10:25 AMgovind
12/03/2025, 6:25 AMgovind
12/03/2025, 6:26 AMgovind
12/03/2025, 6:27 AMgovind
12/03/2025, 6:35 AMtuxmea
12/03/2025, 7:04 AMgovind
12/03/2025, 7:28 AMbastelfreak
12/03/2025, 7:28 AMgovind
12/03/2025, 7:29 AMbastelfreak
12/03/2025, 7:29 AMgovind
12/03/2025, 7:30 AMgovind
12/03/2025, 7:31 AMgovind
12/03/2025, 7:32 AMgovind
12/03/2025, 7:35 AMbastelfreak
12/03/2025, 7:49 AMpuppet resource --types only gives you a list of all types that Puppet can managebastelfreak
12/03/2025, 7:49 AMgovind
12/03/2025, 8:01 AMbastelfreak
12/03/2025, 8:02 AMbastelfreak
12/03/2025, 1:16 PMjms1
12/03/2025, 3:26 PMresources[] 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.