PE missing referents for production modules

22 views
Skip to first unread message

Matthew Pounsett

unread,
May 3, 2016, 10:48:44 AM5/3/16
to Puppet Users

I'm setting up a test deployment of the latest PE.  I haven't run PE for a couple of years, and it looks like a few (perhaps a lot of) things have changed.

I have a completely fresh install of puppet-enterprise-2016.1.1-el-7-x86_64 on Centos 7.  I've added a module as /etc/puppetlabs/code/environments/production/modules/vim, and run a restart of the PE service (systemctl reload-or-restart pe-puppetserver.service).  

However, when I try to add my new 'vim' class to the All Nodes group and Commit the change, I'm getting a (rather large) missing-referents error.  

I've double-checked that the module file declares the class properly, and that the perms should allow the server process to read the modules.  The docs  don't seem to mention any other steps I need to follow.  Clearly I'm missing something newly added to the process though.  Anyone have any pointers?


Rob Nelson

unread,
May 3, 2016, 10:57:39 AM5/3/16
to puppet...@googlegroups.com
Doesthe module show up with 'puppet module list'? You may need to add '--environment=production' and/or '--modulepath=/etc/puppetlabs/code/environments/production/modules'.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6959bfcd-ff48-47bb-aa37-c2a7d38d8f8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lindsey Smith

unread,
May 3, 2016, 2:02:30 PM5/3/16
to puppet...@googlegroups.com
I believe that you need to create a child group of All Nodes first, and add the vim class to that group. There is an interaction between All Nodes and assignment of environment in other groups such that you can't add classes to All Nodes.

Matthew Pounsett

unread,
May 3, 2016, 7:48:31 PM5/3/16
to Puppet Users


On Tuesday, May 3, 2016 at 10:02:30 AM UTC-4, Lindsey Smith wrote:


On Mon, May 2, 2016 at 1:54 PM, Matthew Pounsett <matthew....@rightside.co> wrote:

I'm setting up a test deployment of the latest PE.  I haven't run PE for a couple of years, and it looks like a few (perhaps a lot of) things have changed.

I have a completely fresh install of puppet-enterprise-2016.1.1-el-7-x86_64 on Centos 7.  I've added a module as /etc/puppetlabs/code/environments/production/modules/vim, and run a restart of the PE service (systemctl reload-or-restart pe-puppetserver.service).  

However, when I try to add my new 'vim' class to the All Nodes group and Commit the change, I'm getting a (rather large) missing-referents error.  

I've double-checked that the module file declares the class properly, and that the perms should allow the server process to read the modules.  The docs  don't seem to mention any other steps I need to follow.  Clearly I'm missing something newly added to the process though.  Anyone have any pointers?

I believe that you need to create a child group of All Nodes first, and add the vim class to that group. There is an interaction between All Nodes and assignment of environment in other groups such that you can't add classes to All Nodes.

This appears to have been it: an issue with adding classes to the All Nodes group.   I found that adding a child group of All Nodes didn't have the anticipated effect of inheriting the list of affected nodes .. I still had to set my own regex match in order to pull nodes in.  But, it did the job.

Thanks!
Reply all
Reply to author
Forward
0 new messages