Best way to change settings on an individual node

43 views
Skip to first unread message

jacka...@gmail.com

unread,
Nov 2, 2017, 8:37:29 AM11/2/17
to Puppet Users
Hi,
    I'm a new puppet enterprise user (first post!) and I need to change some settings on an individual node.  The module is created and it works in my testing, but every method of applying the module to one machine feels like I'm doing it wrong. What is the best way to accomplish this?  Feel free to point me to some documentation, if I'm simply missing something. 

Thanks,

Jack

Eric Sorenson

unread,
Nov 2, 2017, 11:54:07 AM11/2/17
to Puppet Users
Hi Jack, for puppet enterprise there's a built-in workflow for assigning classes to nodes - the phrase you're looking for is called "node classification" in puppet-speak.  here's the relevant doc: https://puppet.com/docs/pe/2017.3/managing_nodes/grouping_and_classifying_nodes.html

hope this helps!
--eric0
Message has been deleted

jacka...@gmail.com

unread,
Nov 2, 2017, 12:44:32 PM11/2/17
to Puppet Users
Thanks Eric.  I've read that documentation and it always refers to multiple nodes.  It just feels like I'm doing it wrong.  If I have a small group of 4 web servers that all run different virtual hosts, the only way to use the node classification groups is to pin each node to it's own group and apply the classes to them.  I can do that, it just feels like there is a better way.  

Rob Nelson

unread,
Nov 2, 2017, 2:13:44 PM11/2/17
to puppet...@googlegroups.com
If the only difference is in the virtual hosts, then you should be able to apply the same classes to each and use different data only. Hiera, included with puppet, is a key/value pair lookup tool that can help here, so each node would receive their vhost data and only their vhosts. I think you should find plenty of hiera docs on puppet’s websites and others (I’m on my phone or I’d grab a link or three) and we are glad to help you here or on slack if you need more help with it.

--
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/2f5ccbd2-fccd-4fea-b8d2-c2f2cd93d03c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Rob Nelson

Jack Bishop

unread,
Nov 3, 2017, 8:02:05 AM11/3/17
to puppet...@googlegroups.com
After reading more hiera docs, I think that is the way to go. thanks Rob,

Jack

On Thu, Nov 2, 2017 at 2:13 PM, Rob Nelson <rnel...@gmail.com> wrote:
If the only difference is in the virtual hosts, then you should be able to apply the same classes to each and use different data only. Hiera, included with puppet, is a key/value pair lookup tool that can help here, so each node would receive their vhost data and only their vhosts. I think you should find plenty of hiera docs on puppet’s websites and others (I’m on my phone or I’d grab a link or three) and we are glad to help you here or on slack if you need more help with it.

On Thu, Nov 2, 2017 at 12:44 PM <jacka...@gmail.com> wrote:
Thanks Eric.  I've read that documentation and it always refers to multiple nodes.  It just feels like I'm doing it wrong.  If I have a small group of 4 web servers that all run different virtual hosts, the only way to use the node classification groups is to pin each node to it's own group and apply the classes to them.  I can do that, it just feels like there is a better way.  

On Thursday, November 2, 2017 at 11:54:07 AM UTC-4, Eric Sorenson wrote:
Hi Jack, for puppet enterprise there's a built-in workflow for assigning classes to nodes - the phrase you're looking for is called "node classification" in puppet-speak.  here's the relevant doc: https://puppet.com/docs/pe/2017.3/managing_nodes/grouping_and_classifying_nodes.html

hope this helps!
--eric0


On Thursday, November 2, 2017 at 5:37:29 AM UTC-7, jacka...@gmail.com wrote:
Hi,
    I'm a new puppet enterprise user (first post!) and I need to change some settings on an individual node.  The module is created and it works in my testing, but every method of applying the module to one machine feels like I'm doing it wrong. What is the best way to accomplish this?  Feel free to point me to some documentation, if I'm simply missing something. 

Thanks,

Jack

--
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+unsubscribe@googlegroups.com.
--
Rob Nelson

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/Tkj5Bv6eQuc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC76iT-jtwD9gWTh5LtZvvZE%3DADJO5bFeVtQy_SSGfWibnYY6w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages