PE 3.3: Why are custom resource types not synced to agents?
I seems that a puppet agent installed using PE Package Management in PE 3.3 does not sync custom resource types from puppet modules. When trying to use a resource type from the orawls module on an agent I get this error:
# puppet resource wls_server Error: Could not run: Could not find template 'puppet:///modules/orawls/providers/wls_server/index.py.erb'
The puppet.conf file created during the agent installation looks like this:
[main] vardir = /var/opt/lib/pe-puppet logdir = /var/log/pe-puppet rundir = /var/run/pe-puppet basemodulepath = /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules user = pe-puppet group = pe-puppet archive_files = true [agent] report = true classfile = $vardir/classes.txt localconfig = $vardir/localconfig graph = true pluginsync = true environment = production server = puppet.example.com certname = agent6.example.com
Printing the server setting for the different sections gives:
# puppet config print server --section main puppet # puppet config print server --section agent puppet.example.com
If I move the server setting to the main section, then the wls_server resource can be used by the agent.
The script used to install the agent is served by the master from /opt/puppet/packages/public/3.3.1/el-6-x86_64.bash and contains this line:
/opt/puppet/bin/puppet config set server puppet.example.com --section agent
Why is server not set in the main section instead? Is this a bug or is the behavior I'm seeing a bug in the way custom resource types are synced to agents?