Hi,
no this cannot work, you're mixing two syntaxes.
In theory, this may work:
class { "foo::bar": }
Class["foo:baz"] -> Class["foo::bar"]
But I'm with John: class { "name": } declarations should only be used if
absolutely necessary, which it's not! Do this:
include foo::bar
Class["foo:baz"] -> Class["foo::bar"]
I think what you had in mind was the following. It might work in theory,
but the above version is preferable.
class { "foo::bar": require => Class["foo::baz"] }
Again, don't do this.
HTH,
Felix
On 11/16/2013 12:50 AM, Jon McKenzie wrote:
> Anyways, would writing something like this work?
>
> class { "foo::bar":
> Class["foo:baz"] -> Class["foo::bar"]
> }
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/528A26A0.1010506%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/groups/opt_out.