I have this:
class aptsetup {
file { "/etc/apt/sources.list":
owner => root,
group => root,
mode => 644,
source => "puppet://asus-vista-box.lokku.net/files/etc/
apt/sources.list"
}
}
exec { subscribe-echo:
command => "/usr/bin/apt-get -q -q update",
logoutput => false,
refreshonly => true,
subscribe => file["/etc/apt/sources.list"]
}
I''d like to execute enother command after "/usr/bin/apt-get -q -q
update" for example "touch /home/test"
In wich way you suggest to do that?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Roy Nielsen
2009-Oct-21 15:21 UTC
[Puppet Users] Re: execute more commands (beginner talking)
Hello Reno,
Try this:
exec { touch-file:
command => "touch /home/test",
require => Exec[subscribe-echo]
}
- or -
file { touch-file:
contents => " ",
path => "/home/test",
require => Exec[subscribe-echo]
}
Regards,
-Roy
Reno wrote:> I have this:
>
> class aptsetup {
>
> file { "/etc/apt/sources.list":
> owner => root,
> group => root,
> mode => 644,
> source =>
"puppet://asus-vista-box.lokku.net/files/etc/
> apt/sources.list"
> }
>
> }
>
> exec { subscribe-echo:
> command => "/usr/bin/apt-get -q -q update",
> logoutput => false,
> refreshonly => true,
> subscribe => file["/etc/apt/sources.list"]
> }
>
> I''d like to execute enother command after "/usr/bin/apt-get
-q -q
> update" for example "touch /home/test"
>
> In wich way you suggest to do that?
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
hello, what is the meaning of that: require => Exec[subscribe-echo] On Oct 21, 4:21 pm, Roy Nielsen <r...@lanl.gov> wrote:> Hello Reno, > > Try this: > > exec { touch-file: > command => "touch /home/test", > require => Exec[subscribe-echo] > } > > - or - > > file { touch-file: > contents => " ", > path => "/home/test", > require => Exec[subscribe-echo] > } > > Regards, > -Roy > > Reno wrote: > > I have this: > > > class aptsetup { > > > file { "/etc/apt/sources.list": > > owner => root, > > group => root, > > mode => 644, > > source => "puppet://asus-vista-box.lokku.net/files/etc/ > > apt/sources.list" > > } > > > } > > > exec { subscribe-echo: > > command => "/usr/bin/apt-get -q -q update", > > logoutput => false, > > refreshonly => true, > > subscribe => file["/etc/apt/sources.list"] > > } > > > I''d like to execute enother command after "/usr/bin/apt-get -q -q > > update" for example "touch /home/test" > > > In wich way you suggest to do that?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeff Adams
2009-Oct-21 15:24 UTC
[Puppet Users] Re: execute more commands (beginner talking)
Something like the following should work:
exec { subscribe-echo:
command => "/usr/bin/apt-get -q -q update &&
touch
/home/test ",
logoutput => false,
refreshonly => true,
subscribe => file["/etc/apt/sources.list"]
}
- Jeff
On 10/21/2009 10:09 AM, Reno wrote:> exec { subscribe-echo:
> command => "/usr/bin/apt-get -q -q
update",
> logoutput => false,
> refreshonly => true,
> subscribe => file["/etc/apt/sources.list"]
> }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Roy Nielsen
2009-Oct-21 15:30 UTC
[Puppet Users] Re: execute more commands (beginner talking)
Hello Reno, "require" is a metaparameter -- see: http://reductivelabs.com/trac/puppet/wiki/MetaparameterReference#require I believe the string proceeding the brackets is a "capitalized type" from: http://reductivelabs.com/trac/puppet/wiki/TypeReference and the string inside the brackets is the "name" of another resource in the class. Regards, -Roy Reno wrote:> hello, > > what is the meaning of that: > > > require => Exec[subscribe-echo] > > > On Oct 21, 4:21 pm, Roy Nielsen <r...@lanl.gov> wrote: > >> Hello Reno, >> >> Try this: >> >> exec { touch-file: >> command => "touch /home/test", >> require => Exec[subscribe-echo] >> } >> >> - or - >> >> file { touch-file: >> contents => " ", >> path => "/home/test", >> require => Exec[subscribe-echo] >> } >> >> Regards, >> -Roy >> >> Reno wrote: >> >>> I have this: >>> >>> class aptsetup { >>> >>> file { "/etc/apt/sources.list": >>> owner => root, >>> group => root, >>> mode => 644, >>> source => "puppet://asus-vista-box.lokku.net/files/etc/ >>> apt/sources.list" >>> } >>> >>> } >>> >>> exec { subscribe-echo: >>> command => "/usr/bin/apt-get -q -q update", >>> logoutput => false, >>> refreshonly => true, >>> subscribe => file["/etc/apt/sources.list"] >>> } >>> >>> I''d like to execute enother command after "/usr/bin/apt-get -q -q >>> update" for example "touch /home/test" >>> >>> In wich way you suggest to do that? >>> > > >--~--~---------~--~----~------------~-------~--~----~ 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 and thanks for the help
I use a more simple ( to me ) but effective solution:
exec { "touch /home/ciao":
cwd => "/home",
path => "/usr/bin:/usr/sbin:/bin"
}
On Oct 21, 4:30 pm, Roy Nielsen <r...@lanl.gov>
wrote:> Hello Reno,
>
> "require" is a metaparameter -- see:
>
> http://reductivelabs.com/trac/puppet/wiki/MetaparameterReference#require
>
> I believe the string proceeding the brackets is a "capitalized
type" from:
>
> http://reductivelabs.com/trac/puppet/wiki/TypeReference
>
> and the string inside the brackets is the "name" of another
resource in
> the class.
>
> Regards,
> -Roy
>
> Reno wrote:
> > hello,
>
> > what is the meaning of that:
>
> > require => Exec[subscribe-echo]
>
> > On Oct 21, 4:21 pm, Roy Nielsen <r...@lanl.gov> wrote:
>
> >> Hello Reno,
>
> >> Try this:
>
> >> exec { touch-file:
> >> command => "touch /home/test",
> >> require => Exec[subscribe-echo]
> >> }
>
> >> - or -
>
> >> file { touch-file:
> >> contents => " ",
> >> path => "/home/test",
> >> require => Exec[subscribe-echo]
> >> }
>
> >> Regards,
> >> -Roy
>
> >> Reno wrote:
>
> >>> I have this:
>
> >>> class aptsetup {
>
> >>> file { "/etc/apt/sources.list":
> >>> owner => root,
> >>> group => root,
> >>> mode => 644,
> >>> source =>
"puppet://asus-vista-box.lokku.net/files/etc/
> >>> apt/sources.list"
> >>> }
>
> >>> }
>
> >>> exec { subscribe-echo:
> >>> command => "/usr/bin/apt-get -q -q
update",
> >>> logoutput => false,
> >>> refreshonly => true,
> >>> subscribe =>
file["/etc/apt/sources.list"]
> >>> }
>
> >>> I''d like to execute enother command after
"/usr/bin/apt-get -q -q
> >>> update" for example "touch /home/test"
>
> >>> In wich way you suggest to do that?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Brice Figureau
2009-Oct-21 15:56 UTC
[Puppet Users] Re: execute more commands (beginner talking)
On Wed, 2009-10-21 at 08:53 -0700, Reno wrote:> hi and thanks for the help > > I use a more simple ( to me ) but effective solution: > > > exec { "touch /home/ciao": > cwd => "/home", > path => "/usr/bin:/usr/sbin:/bin" > }You can''t guarantee this exec won''t run _before_ your other exec if you don''t add strict ordering metaparameters (require/before). -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes I agree,
for example what you will do if I want to run the touch command only
if /usr/bin/apt-get -q -q update has run without error?
exec { subscribe-echo:
command => "/usr/bin/apt-get -q -q update",
logoutput => false,
refreshonly => true,
subscribe => file["/etc/apt/sources.list"]
}
exec { "touch /home/ciao":
cwd => "/home",
path => "/usr/bin:/usr/sbin:/bin"
}
On Oct 21, 4:56 pm, Brice Figureau <brice-pup...@daysofwonder.com>
wrote:> On Wed, 2009-10-21 at 08:53 -0700, Reno wrote:
> > hi and thanks for the help
>
> > I use a more simple ( to me ) but effective solution:
>
> > exec { "touch /home/ciao":
> > cwd => "/home",
> > path => "/usr/bin:/usr/sbin:/bin"
> > }
>
> You can''t guarantee this exec won''t run _before_ your
other exec if you
> don''t add strict ordering metaparameters (require/before).
> --
> Brice Figureau
> Follow the latest Puppet Community evolutions onwww.planetpuppet.org!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Gourav Shah
2009-Oct-21 16:31 UTC
[Puppet Users] Re: execute more commands (beginner talking)
On Wed, Oct 21, 2009 at 9:53 PM, Reno <renato.tuveri@gmail.com> wrote:> > Yes I agree, > > for example what you will do if I want to run the touch command only > if /usr/bin/apt-get -q -q update has run without error? > >thats what require is for use require => Exec[subscribe-echo] exec { subscribe-echo:> command => "/usr/bin/apt-get -q -q update", > logoutput => false, > refreshonly => true, > subscribe => file["/etc/apt/sources.list"] > } > > exec { "touch /home/ciao": > cwd => "/home", > path => "/usr/bin:/usr/sbin:/bin" > } > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Roy Nielsen
2009-Oct-21 16:45 UTC
[Puppet Users] Re: execute more commands (beginner talking)
Use the onlyif parameter of the exec type:
exec { "touch /home/ciao:"
cwd => "/home",
path => "/usr/bin:/usr/sbin:/bin",
onlyif => "/usr/bin/apt-get -q -q update"
}
Note: the onlyif parameter only works this way with the
"exec" type (works a bit differently for the augeas type)
The unless parameter only works with exec at this point.
Regards,
-Roy
Reno wrote:> Yes I agree,
>
> for example what you will do if I want to run the touch command only
> if /usr/bin/apt-get -q -q update has run without error?
>
> exec { subscribe-echo:
> command => "/usr/bin/apt-get -q -q update",
> logoutput => false,
> refreshonly => true,
> subscribe => file["/etc/apt/sources.list"]
> }
>
> exec { "touch /home/ciao":
> cwd => "/home",
> path => "/usr/bin:/usr/sbin:/bin"
> }
>
>
>
>
> On Oct 21, 4:56 pm, Brice Figureau <brice-pup...@daysofwonder.com>
> wrote:
>> On Wed, 2009-10-21 at 08:53 -0700, Reno wrote:
>>> hi and thanks for the help
>>> I use a more simple ( to me ) but effective solution:
>>> exec { "touch /home/ciao":
>>> cwd => "/home",
>>> path => "/usr/bin:/usr/sbin:/bin"
>>> }
>> You can''t guarantee this exec won''t run _before_ your
other exec if you
>> don''t add strict ordering metaparameters (require/before).
>> --
>> Brice Figureau
>> Follow the latest Puppet Community evolutions onwww.planetpuppet.org!
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
err: Could not retrieve catalog: Could not parse for environment production: Syntax error at ''cwd''; expected ''}'' at /etc/puppet/ manifests/classes/source.list.pp:24 On Oct 21, 5:45 pm, Roy Nielsen <r...@lanl.gov> wrote:> Use the onlyif parameter of the exec type: > > exec { "touch /home/ciao:" > cwd => "/home", > path => "/usr/bin:/usr/sbin:/bin", > onlyif => "/usr/bin/apt-get -q -q update" > > } > > Note: the onlyif parameter only works this way with the > "exec" type (works a bit differently for the augeas type) > The unless parameter only works with exec at this point. > > Regards, > -Roy > > Reno wrote: > > Yes I agree, > > > for example what you will do if I want to run the touch command only > > if /usr/bin/apt-get -q -q update has run without error? > > > exec { subscribe-echo: > > command => "/usr/bin/apt-get -q -q update", > > logoutput => false, > > refreshonly => true, > > subscribe => file["/etc/apt/sources.list"] > > } > > > exec { "touch /home/ciao": > > cwd => "/home", > > path => "/usr/bin:/usr/sbin:/bin" > > } > > > On Oct 21, 4:56 pm, Brice Figureau <brice-pup...@daysofwonder.com> > > wrote: > >> On Wed, 2009-10-21 at 08:53 -0700, Reno wrote: > >>> hi and thanks for the help > >>> I use a more simple ( to me ) but effective solution: > >>> exec { "touch /home/ciao": > >>> cwd => "/home", > >>> path => "/usr/bin:/usr/sbin:/bin" > >>> } > >> You can''t guarantee this exec won''t run _before_ your other exec if you > >> don''t add strict ordering metaparameters (require/before). > >> -- > >> Brice Figureau > >> Follow the latest Puppet Community evolutions onwww.planetpuppet.org!--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Roy Nielsen
2009-Oct-21 17:02 UTC
[Puppet Users] Re: execute more commands (beginner talking)
oops, quote in the wrong place, try:
exec { "touch /home/ciao":
cwd => "/home",
path => "/usr/bin:/usr/sbin:/bin",
onlyif => "/usr/bin/apt-get -q -q update"
}
Reno wrote:> err: Could not retrieve catalog: Could not parse for environment
> production: Syntax error at ''cwd''; expected
''}'' at /etc/puppet/
> manifests/classes/source.list.pp:24
>
>
> On Oct 21, 5:45 pm, Roy Nielsen <r...@lanl.gov> wrote:
>> Use the onlyif parameter of the exec type:
>>
>> exec { "touch /home/ciao:"
>> cwd => "/home",
>> path => "/usr/bin:/usr/sbin:/bin",
>> onlyif => "/usr/bin/apt-get -q -q update"
>>
>> }
>>
>> Note: the onlyif parameter only works this way with the
>> "exec" type (works a bit differently for the augeas type)
>> The unless parameter only works with exec at this point.
>>
>> Regards,
>> -Roy
>>
>> Reno wrote:
>>> Yes I agree,
>>> for example what you will do if I want to run the touch command
only
>>> if /usr/bin/apt-get -q -q update has run without error?
>>> exec { subscribe-echo:
>>> command => "/usr/bin/apt-get -q -q
update",
>>> logoutput => false,
>>> refreshonly => true,
>>> subscribe =>
file["/etc/apt/sources.list"]
>>> }
>>> exec { "touch /home/ciao":
>>> cwd => "/home",
>>> path => "/usr/bin:/usr/sbin:/bin"
>>> }
>>> On Oct 21, 4:56 pm, Brice Figureau
<brice-pup...@daysofwonder.com>
>>> wrote:
>>>> On Wed, 2009-10-21 at 08:53 -0700, Reno wrote:
>>>>> hi and thanks for the help
>>>>> I use a more simple ( to me ) but effective solution:
>>>>> exec { "touch /home/ciao":
>>>>> cwd => "/home",
>>>>> path => "/usr/bin:/usr/sbin:/bin"
>>>>> }
>>>> You can''t guarantee this exec won''t run
_before_ your other exec if you
>>>> don''t add strict ordering metaparameters
(require/before).
>>>> --
>>>> Brice Figureau
>>>> Follow the latest Puppet Community evolutions
onwww.planetpuppet.org!
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
opssss sorry I didn''t see too! :-) Btw onlyif => "/usr/bin/apt-get -q -q update" say to do that just after the apt-get command is lunched but what if I want the contrary ... to run the command only if the apt-get fail to run? On Oct 21, 6:02 pm, Roy Nielsen <r...@lanl.gov> wrote:> oops, quote in the wrong place, try: > > exec { "touch /home/ciao": > cwd => "/home", > path => "/usr/bin:/usr/sbin:/bin", > onlyif => "/usr/bin/apt-get -q -q update" > > } > Reno wrote: > > err: Could not retrieve catalog: Could not parse for environment > > production: Syntax error at ''cwd''; expected ''}'' at /etc/puppet/ > > manifests/classes/source.list.pp:24 > > > On Oct 21, 5:45 pm, Roy Nielsen <r...@lanl.gov> wrote: > >> Use the onlyif parameter of the exec type: > > >> exec { "touch /home/ciao:" > >> cwd => "/home", > >> path => "/usr/bin:/usr/sbin:/bin", > >> onlyif => "/usr/bin/apt-get -q -q update" > > >> } > > >> Note: the onlyif parameter only works this way with the > >> "exec" type (works a bit differently for the augeas type) > >> The unless parameter only works with exec at this point. > > >> Regards, > >> -Roy > > >> Reno wrote: > >>> Yes I agree, > >>> for example what you will do if I want to run the touch command only > >>> if /usr/bin/apt-get -q -q update has run without error? > >>> exec { subscribe-echo: > >>> command => "/usr/bin/apt-get -q -q update", > >>> logoutput => false, > >>> refreshonly => true, > >>> subscribe => file["/etc/apt/sources.list"] > >>> } > >>> exec { "touch /home/ciao": > >>> cwd => "/home", > >>> path => "/usr/bin:/usr/sbin:/bin" > >>> } > >>> On Oct 21, 4:56 pm, Brice Figureau <brice-pup...@daysofwonder.com> > >>> wrote: > >>>> On Wed, 2009-10-21 at 08:53 -0700, Reno wrote: > >>>>> hi and thanks for the help > >>>>> I use a more simple ( to me ) but effective solution: > >>>>> exec { "touch /home/ciao": > >>>>> cwd => "/home", > >>>>> path => "/usr/bin:/usr/sbin:/bin" > >>>>> } > >>>> You can''t guarantee this exec won''t run _before_ your other exec if you > >>>> don''t add strict ordering metaparameters (require/before). > >>>> -- > >>>> Brice Figureau > >>>> Follow the latest Puppet Community evolutions onwww.planetpuppet.org!--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Roy Nielsen
2009-Oct-21 18:16 UTC
[Puppet Users] Re: execute more commands (beginner talking)
Hello Reno - Use the "unless" exec parameter http://reductivelabs.com/trac/puppet/wiki/TypeReference#unless With unless, (from the page): "If this parameter is set, then this exec will run unless the command returns 0." Regards, -Roy Reno wrote:> opssss sorry I didn''t see too! :-) > > Btw > > onlyif => "/usr/bin/apt-get -q -q update" > > say to do that just after the apt-get command is lunched but what if > I want the contrary ... to run the command only if the apt-get fail to > run? > > > > On Oct 21, 6:02 pm, Roy Nielsen <r...@lanl.gov> wrote: > >> oops, quote in the wrong place, try: >> >> exec { "touch /home/ciao": >> cwd => "/home", >> path => "/usr/bin:/usr/sbin:/bin", >> onlyif => "/usr/bin/apt-get -q -q update" >> >> } >> Reno wrote: >> >>> err: Could not retrieve catalog: Could not parse for environment >>> production: Syntax error at ''cwd''; expected ''}'' at /etc/puppet/ >>> manifests/classes/source.list.pp:24 >>> >>> On Oct 21, 5:45 pm, Roy Nielsen <r...@lanl.gov> wrote: >>> >>>> Use the onlyif parameter of the exec type: >>>> >>>> exec { "touch /home/ciao:" >>>> cwd => "/home", >>>> path => "/usr/bin:/usr/sbin:/bin", >>>> onlyif => "/usr/bin/apt-get -q -q update" >>>> >>>> } >>>> >>>> Note: the onlyif parameter only works this way with the >>>> "exec" type (works a bit differently for the augeas type) >>>> The unless parameter only works with exec at this point. >>>> >>>> Regards, >>>> -Roy >>>> >>>> Reno wrote: >>>> >>>>> Yes I agree, >>>>> for example what you will do if I want to run the touch command only >>>>> if /usr/bin/apt-get -q -q update has run without error? >>>>> exec { subscribe-echo: >>>>> command => "/usr/bin/apt-get -q -q update", >>>>> logoutput => false, >>>>> refreshonly => true, >>>>> subscribe => file["/etc/apt/sources.list"] >>>>> } >>>>> exec { "touch /home/ciao": >>>>> cwd => "/home", >>>>> path => "/usr/bin:/usr/sbin:/bin" >>>>> } >>>>> On Oct 21, 4:56 pm, Brice Figureau <brice-pup...@daysofwonder.com> >>>>> wrote: >>>>> >>>>>> On Wed, 2009-10-21 at 08:53 -0700, Reno wrote: >>>>>> >>>>>>> hi and thanks for the help >>>>>>> I use a more simple ( to me ) but effective solution: >>>>>>> exec { "touch /home/ciao": >>>>>>> cwd => "/home", >>>>>>> path => "/usr/bin:/usr/sbin:/bin" >>>>>>> } >>>>>>> >>>>>> You can''t guarantee this exec won''t run _before_ your other exec if you >>>>>> don''t add strict ordering metaparameters (require/before). >>>>>> -- >>>>>> Brice Figureau >>>>>> Follow the latest Puppet Community evolutions onwww.planetpuppet.org! >>>>>> > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---