jms1
12/10/2025, 7:28 PMpe_ini_setting { 'main strict_variables true' :
path => '/etc/puppetlabs/puppet/puppet.conf' ,
section => 'main' ,
setting => 'strict_variables' ,
value => true ,
}
when i try to run a unit test against it, the "expected to compile a catalog" test is failing with Unknown resource type: 'pe_node_group' ... is there a way to "mock up" the PE modules? (i'm assuming there's no way to access their source code repos, so they can't be added to .fixtures.yml)jms1
12/10/2025, 7:29 PMon_supported_os.each loop starts:
let(:pre_condition) do
<<-PRE_CONDITION
define pe_ini_setting {}
class pe_nginx {}
PRE_CONDITION
end
same errorbastelfreak
12/10/2025, 7:31 PMjms1
12/10/2025, 7:46 PMpe_ini_setting just a copy of ini_setting with a different name, to avoid namespace collisions with user-supplied code?bastelfreak
12/10/2025, 7:46 PMjms1
12/10/2025, 7:50 PMnotify => Service['pe-puppetserver']? will the agent block until the restart finishes, or will it cause an error if the server isn't available to accept the report at the end of the run?bastelfreak
12/10/2025, 7:50 PMrnelson0
12/10/2025, 7:55 PMcsharpsteen
12/10/2025, 7:55 PMpe_ini_setting and pe_node_group are both considered "internal API" modules. They haven't changed in a while, but also if the Eng. team needed to make a sudden change, they would be saddened to learn of use outside of the PE installer as they are not expecting that.rnelson0
12/10/2025, 7:55 PMcsharpsteen
12/10/2025, 8:05 PMpuppetlabs/inifile module should cover all use cases that pe_ini_setting would be used for and puppetlabs/node_manager covers pe_node_group.
Those are the external-facing modules for managing these resources.jms1
12/10/2025, 8:37 PMpuppetlabs/node_manager to the Puppetfile and installed it in the environment directory, then changed my pe_node_group declarations to just node_group ... when i run puppet agent -t it's failing with Unknown resource type: 'node_group' ... the node_manager docs mention an "update_classes job" but don't explain what that actually is or why somebody may want/need to run it ... is that something that needs to be done, and if so, why is this the first time i'm running into the problem? i've added modules to the environment "on the fly" without problems beforebastelfreak
12/10/2025, 8:37 PMjms1
12/10/2025, 8:41 PMpuppet module install --target-dir xxx --version '1.1.0' puppetlabs-node_managerbastelfreak
12/10/2025, 8:42 PMcsharpsteen
12/10/2025, 8:42 PM--target-dir xxx seems like it is installing somewhere outside of the normal modulepath.bastelfreak
12/10/2025, 8:42 PMjms1
12/10/2025, 8:43 PMbastelfreak
12/10/2025, 8:44 PMjms1
12/10/2025, 8:44 PMpuppet config print environmentpath points tobastelfreak
12/10/2025, 8:44 PMjms1
12/10/2025, 8:48 PMbastelfreak
12/10/2025, 8:49 PMjms1
12/10/2025, 8:49 PMnode_manager module.csharpsteen
12/10/2025, 8:49 PMenvironmentpath is a location to add environments, not modules. And, if Code Manager is active, that location is also it's exclusive domain and it will pave over any changes (or raise fatal errors if it bumps into content owned by root that it cannot remove as pe-puppet)bastelfreak
12/10/2025, 8:51 PMjms1
12/10/2025, 8:51 PMenvironmentpath points to my non-root user's $HOME/environments/ directory. i have a script which clones the control repo into a directory under that (i.e. $HOME/environments/production), then parses the Puppetfile it finds there and either clones or `puppet module install`s modules under $HOME/environments/production/modules/ as neededbastelfreak
12/10/2025, 8:51 PMbastelfreak
12/10/2025, 8:52 PMjms1
12/10/2025, 8:54 PMjms1
12/10/2025, 8:54 PMbastelfreak
12/10/2025, 8:54 PMbastelfreak
12/10/2025, 8:54 PMjms1
12/10/2025, 8:55 PMbastelfreak
12/10/2025, 8:55 PMcsharpsteen
12/10/2025, 8:55 PMjms1
12/10/2025, 8:55 PMjms1
12/10/2025, 8:59 PMrnelson0
12/10/2025, 9:13 PMjms1
12/10/2025, 9:44 PMrnelson0
12/10/2025, 10:05 PMjms1
12/10/2025, 10:12 PMpuppet agent -t, it fails with the "unknown resource type" error message ... sorry if that wasn't clearjms1
12/10/2025, 10:14 PMjms1
12/10/2025, 10:36 PMsystemctl restart pe-puppetserver, the node_group resources are working as expected ... so it's obvious that (1) i'm missing something when i rebuild an environment directory, and (2) the "clear cache" thing isn't it. i have a vague memory of r10k rebuilding something after installing all of the modules, i think i need to do a deep dive into it ... actually, i'm curious about what command line options r10k itself has, maybe i can have my script call that to do 95% of the work of building each new environmentjms1
12/10/2025, 10:36 PMrnelson0
12/11/2025, 1:28 PMcsharpsteen
12/11/2025, 2:54 PMrnelson0
12/11/2025, 3:12 PMrnelson0
12/11/2025, 3:13 PMcsharpsteen
12/11/2025, 3:20 PMjms1
12/11/2025, 4:02 PMrsync to copy the current module over that module in the current environment on the PE server. that takes about three seconds, as opposed to a minute and and a half when code manager is involved - and that's also not counting the whole "every single one line change shows up as a commit in the repo forever" (we've had issues with "squash commits" in the past, our policy is "merge commits only" now)