Bruce Richardson writes:
> On Thu, Nov 11, 2010 at 12:50:02PM -0800, Eric Snow wrote:
[...]
> If you were hoping to be able to create all of these users by iterating
> through a hash, or something similar, then Puppet really doesn't support
> that. Puppet's DSL is declaritive and can't be treat
On Fri, Nov 12, 2010 at 09:32:16AM +1100, Daniel Pittman wrote:
> Footnotes:
> [1] Like the English language, puppet isn't that pure, and you can work
> around this in a whole bunch of ways. Pure-ruby manifests in 2.6 might
> be a way to do that, for example.
Oh, I knew somebody was g
Eric Snow writes:
> How do you dynamically create classes?
You pretty much can't: puppet is aimed at being a deterministic system, and so
it wants to have a non-programmatic state to achieve.[1]
> For instance, I have a bunch of users to make. I have all their
> usernames. Each is the same as
On Thu, Nov 11, 2010 at 12:50:02PM -0800, Eric Snow wrote:
> How do you dynamically create classes?
You don't. 2.6 has parameterized classes but that's not quite what you
mean.
>
> For instance, I have a bunch of users to make. I have all their
> usernames. Each is the same as the others exce
How do you dynamically create classes?
For instance, I have a bunch of users to make. I have all their
usernames. Each is the same as the others except for the username and
one other value. I don't want to have to spell out a User for each,
but would rather set up them up dynamically, in a much