Sorry for going back to scripts,  I keep reading and reading that if
you think in terms of scripts you're only going to confuse yourself
been writing automation/admin scripts for way too long.  I think you
all have giving me a lot more to read up on so I will be doing that.

I'll do some more reading and come back to this when I get a little
further.  So I will be looking at classes/define/repeat to see what I
can come up with.

On Jan 10, 1:46 pm, Bruce Richardson <itsbr...@workshy.org> wrote:
> On Mon, Jan 10, 2011 at 11:19:03AM -0800, trey85stang wrote:
> > Bruce,  I think what you are saying is clicking now.
>
> > Now does puppet allow any variable substitution?
>
> I do urge you to stop thinking in terms of scripts.  It doesn't map well
> onto the way that Puppet works.  If you mean "How do I apply the same
> changes to multiple nodes, with different values for each host?", then
> one answer is to put the common actions into a class and set different
> variable values in each node declaration.  Alternatively, put them into
> a "define" and pass different parameters each time you call it.  You can
> also use defines to repeate the same actions/changes with multiple
> values within a single context (e.g. a node).  You should be able to
> find examples in the online documentation.
>
> --
> Bruce
>
> I must admit that the existence of Disneyland (which I know is real)
> proves that we are not living in Judea in AD 50. -- Philip K. Dick
>
>  signature.asc
> < 1KViewDownload

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