Hey Guys I was wondering how can I control the order of execution of various modules on the puppet client. Suppose I have a module A which installs mysql and there is module B which executes mysql commands of importing DB, so how can I ensure that module A is executed before module B. Please help guys Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Scott Smith
2011-Jul-19 02:53 UTC
Re: [Puppet Users] Control the sequence of module execution
Don''t run mysql commands in Puppet. On Mon, Jul 18, 2011 at 7:32 PM, newguy <aimanparvaiz@gmail.com> wrote:> Hey Guys > I was wondering how can I control the order of execution of various > modules on the puppet client. > Suppose I have a module A which installs mysql and there is module B > which executes mysql commands of importing DB, so how can I ensure > that module A is executed before module B. > > Please help guys > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi,
You can use the following:
require statements
"require => Class[blah]"
Ordering in your classes
Resource[blah] -> resource[blat]
Stages
class {blah: stage => pre }
class {blat: stage => post}
But you mileage may vary depending on what you are doing.
Cheers,
Den
On 19/07/2011, at 12:53, Scott Smith <scott@ohlol.net> wrote:
> Don''t run mysql commands in Puppet.
>
> On Mon, Jul 18, 2011 at 7:32 PM, newguy <aimanparvaiz@gmail.com>
wrote:
> Hey Guys
> I was wondering how can I control the order of execution of various
> modules on the puppet client.
> Suppose I have a module A which installs mysql and there is module B
> which executes mysql commands of importing DB, so how can I ensure
> that module A is executed before module B.
>
> Please help guys
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.