Re: [Puppet Users] require a defined type from another module

2013-11-08 Thread jcbollinger
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 {

Re: [Puppet Users] require a defined type from another module

2013-11-07 Thread Johan De Wit
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

[Puppet Users] require a defined type from another module

2013-11-06 Thread LTH
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

Re: [Puppet Users] require a defined type from another module

2013-11-06 Thread Trevor Vaughan
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