Hello I have this fly::create_dir { "/usr/share/mysql-zrm/pkgs" : mode => 0755, owner => bin, group => bin } ==> creates the directory and parents .. it just does a mkdir -p with couple test so I have 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 but it fails with err: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at ''fly::create_dir''; expected ''}'' at /var/lib/puppet/fly/modules/fly-zrm/manifests/client.pp:26 on node db10 can someone help me? .. i do not know if this is even possible and I could different solution i tried to capitalized the FLY. Fly, Create combination .. thanks -- -ls -- 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.
On Thu, Sep 16, 2010 at 3:36 PM, Luc Suryo <lsuryo@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 > overSidestepping 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-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.
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 <nan@puppetlabs.com> wrote:> On Thu, Sep 16, 2010 at 3:36 PM, Luc Suryo <lsuryo@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-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.