> <% if has_variable?("dns_role") then %>
>   <% if dns_role == "master" then %>
>                 cp -f $startdir/zones/* /var/named/internal/
>   <% end %>
> <% end %>

  I'm certainly no ERB expert but my first thought is that your shell
command is not being seen as a system call during the template
processing.

  I would think you'd need the copy line to be enclosed in <% %>.
  This example template creates the file /var/tmp/test-$hostname when
the template is parsed

<% system("/usr/bin/touch /var/tmp/test-#{hostname}") %>

  Could that what your running into?
  HTH.  deet.

-- 
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