On Wed, Jun 24, 2015 at 3:22 PM, Ayyanar <[email protected]> wrote:
> == My site.pp contains shell script executing. I need to run this file
> according to this order.
>
> class hadinstall {
>
> file { "/home/haas/a1.sh":
> mode => "0755",
> owner => 'haas',
> group => 'haas',
> source => 'puppet:///modules/scripts/01-hadoop-install.sh',
> }
>
> exec { "/home/haas/a1.sh":
> }
>
> }
>
> class haddir {
> file { "/home/haas/b1.sh":
> mode => "0755",
> owner => 'haas',
> group => 'haas',
> source => 'puppet:///modules/scripts/02-hadoop-directories.sh',
> }
>
> exec { "/home/haas/b1.sh":
> }
>
> }
>
> class hadconf {
> file { "/home/haas/hadoop-config.jar":
> mode => "0755",
> owner => 'haas',
> group => 'haas',
> source => 'puppet:///modules/scripts/hadoop-config.jar',
> }
>
> file { "/home/haas/c1-.sh":
> mode => "0755",
> owner => 'haas',
> group => 'haas',
> source =>
> 'puppet:///modules/scripts/03-hadoop-config-jar-extract.sh',
> }
>
> exec { "/home/haas/c1.sh":
> }
> }
>
>
> class hadconfextract {
> file { "/home/haas/d1.sh":
> mode => "0755",
> owner => 'haas',
> group => 'haas',
> source => 'puppet:///modules/scripts/04-hadoop-config.sh',
>
> exec { "/home/haas/d1.sh":
> }
>
> }
>
>
>
> But in agent executes file in different order. How to solve this.
>
>
Hi,
I think this link could help you:
https://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html
Regards,
--
Vlado Peshov
--
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/CADprurJEUmt%2BzNb-kry29PBqL8bpY-yX5myR8XK-61XWnR_sZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.