Re: [Puppet Users] Re: Problems with require inside a definition

2010-08-10 Thread Jason Koppe
Thanks, that works as expected. On Sun, Aug 8, 2010 at 4:58 PM, Peter Meier peter.me...@immerda.ch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/07/2010 01:31 AM, Jason Koppe wrote: I ended up getting this syntax to work: just minor note: 4 $id, 5

Re: [Puppet Users] Re: Problems with require inside a definition

2010-08-10 Thread Jason Koppe
Yes, that's part of the reason. I was working on my module at an obscene hour and that probably factors in to my extra require dance. On Tue, Aug 10, 2010 at 10:39 AM, Nigel Kersten nig...@google.com wrote: Argh. Everyone is doing this require dance because of the docs on definitions right?

Re: [Puppet Users] Re: Problems with require inside a definition

2010-08-08 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/07/2010 01:31 AM, Jason Koppe wrote: I ended up getting this syntax to work: just minor note: 4 $id, 5 $runlevels = '123456', 6 $action = 'respawn', 7 $process 8

Re: [Puppet Users] Re: Problems with require inside a definition

2010-08-06 Thread Jason Koppe
I'm having similar problems, should it be: class inittab { define conf ( $id, $runlevels = '123456', $action = 'respawn', $process ) { $require { $require }

Re: [Puppet Users] Re: Problems with require inside a definition

2010-08-06 Thread Jason Koppe
If you just mean this: 1 # generic class to allow /etc/inittab management 2 class inittab { 3 define conf ( 4 $id, 5 $runlevels = '123456', 6 $action = 'respawn', 7 $process 8 ) { 9

Re: [Puppet Users] Re: Problems with require inside a definition

2010-08-06 Thread Jason Koppe
I ended up getting this syntax to work: Here is the class calling the define: 2 class supervisor { ... 13 exec{install supervisor: ... 32 33 # running 'init a' will start supervisord -- should be called at the end of /etc/init.d/Indeed to start tomcats after slaving/caching

[Puppet Users] Re: Problems with require inside a definition

2010-07-12 Thread Tim
Thanks, that fixed it. On Jul 9, 5:10 pm, Alan Barrett a...@cequrux.com wrote: On Fri, 09 Jul 2010, Tim wrote: # Generic config file define config-file ($fullpath, $source) {         if $require {                 require $require         }         file { $fullpath:         source =