Thanks! Works

--
Kind regards
Luc Suryo

- " Remember.... No one travels faster than the speed of live "

On Sep 16, 2010, at 16:30, Nan Liu <n...@puppetlabs.com> wrote:

> On Thu, Sep 16, 2010 at 3:36 PM, Luc Suryo <lsu...@gmail.com> wrote:
>> fly::create_dir { "/usr/share/mysql-zrm/pkgs" : mode => 0755, owner => bin,
>> group => bin }
>> 
>>                  file {  "$client_package_file" :
>>                                 path =>
>> "/usr/share/mysql-zrm/pkgs/$client_package_file",
>>                                 source =>
>> "puppet:///fly-zrm/pkgs/$client_package_file",
>>                                 mode => 0444, owner => bin, group => bin,
>>                                 links => follow,
>>                                 notify => Exec[
>> "install-$client_package_name" ],
>>                                 require => fly::create_dir[
>> "/usr/share/mysql-zrm" ]
>>                         }
>> 
>> 
>> So i need to make sure create_dir is executed before the 'file' being copied
>> over
> 
> Sidestepping mkdir -p, you need to capitalize the first char,
> otherwise Puppet thinks you are declaring a new resource. Change
> require line to the following:
> 
> require=>Fly::Create_dir[ "/usr/share/mysql-zrm/pkgs" ],
> 
> Thanks,
> 
> Nan
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to