[Puppet Users] Re: execute more commands (beginner talking)

Gourav Shah
Wed, 21 Oct 2009 16:31:15 -0000

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"