On Wed, Mar 23, 2011 at 10:33 PM, Maxim Ivanov <ivanov.ma...@gmail.com> wrote: > Hi! How to create "exec" resource in ruby DSL? Found mention of > create_resource but had no luck in using it =(
node 'default' do create_resource(:exec, "/bin/touch /tmp/f", :creates=>"/tmp/f") end or hostclass 'demo' do create_resource(:exec, "/bin/touch /tmp/f", :creates=>"/tmp/f") end and you can add the class via include demo in any regular puppet manifest. HTH, 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.