On Tue, Oct 5, 2010 at 12:16 AM, ncantor <ncan...@gmail.com> wrote:
> For some reason, puppet is attempting to install ruby-enterprise on
> all my puppet clients.

You told puppet to do so.  =)  I don't mean to be a jerk, but this
really is the simple answer.

> The only reason I can find for this behaviour
> is that I've defined a package to install ruby-enterprise. However, by
> default, the package isn't called by anything.

Unless you put the declaration inside of a defined resource type, or a
class, then it will be included in the configuration catalog of all
nodes.  In this case, the package has been declared at top scope.

> In order to get the package to only install on the systems that I
> wanted to have it, I had to move it from a general package definition
> to be inside a class. Is this normal behaviour?

Yep, a class is a collection and intended to bundle together a set of
resources into something you can easily add or remove from nodes.
This is generally called node classification as in "I've classified
this node as a web server." or "This node is classified as a
ruby-enterprise node."

Nodes may have many classes.

Hope this helps,
-- 
Jeff McCune
http://www.puppetlabs.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to