Re: [Puppet Users] PE missing referents for production modules

2016-05-03 Thread Matthew Pounsett


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  > 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!

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3888e611-bf2e-4b50-970d-fccdfa965b35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PE missing referents for production modules

2016-05-03 Thread Lindsey Smith
On Mon, May 2, 2016 at 1:54 PM, Matthew Pounsett <
matthew.pouns...@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.



>
>
> --
> 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+unsubscr...@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.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAPyei8X%3D1uTw8-eN1cwe6SN7yh3LMKBx6O%3DZk%2BviV62i3iRV2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PE missing referents for production modules

2016-05-03 Thread Rob Nelson
Doesthe module show up with 'puppet module list'? You may need to add
'--environment=production' and/or
'--modulepath=/etc/puppetlabs/code/environments/production/modules'.


Rob Nelson
rnels...@gmail.com

On Mon, May 2, 2016 at 4:54 PM, Matthew Pounsett <
matthew.pouns...@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?
>
>
> --
> 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+unsubscr...@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.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC76iT9FTOJ%2BFyGMOrOSFDrs97QD9oSZpV2ujh5vcefkQHuMKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.