On Thursday, November 7, 2013 9:37:02 AM UTC-6, lth wrote:
Thanks but I still get a syntax error when doing
file{bar:
require = A:foo['baz']
}
Evidently you have not understood the advice for which you are giving
thanks, because it was to NOT DO THAT. Instead, do this:
file {
Hi,
be carefull when you include a module with the 'require' keyword instead
of 'include'
with require, the class becomes a dependency for everything that's in
that manifest.
See
http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html#declaring-a-class-with-require
for the
In module A:
define A::foo()
In module B:
require A
file{bar:
require = A::foo['baz']
}
A::foo{baz:}
However puppet doesn't seem to like the syntax around
require=A::foo['baz'].
Is there a way to do this?
Thanks in advance.
--
You received this message because you are subscribed
Try A:Foo instead of A::foo.
Trevor
On Wed, Nov 6, 2013 at 3:45 PM, LTH lthar...@vcu.edu wrote:
In module A:
define A::foo()
In module B:
require A
file{bar:
require = A::foo['baz']
}
A::foo{baz:}
However puppet doesn't seem to like the syntax around