Hi

That was kind of pseudo code. In your example something like this:

setcode do 
 %x{hostname}.scan(regex goes here)
end

Den

On 25/08/2011, at 15:52, newguy <aimanparv...@gmail.com> wrote:

>>> setcode do
>>>                %x{hostname -s|cut -c 1-2}.chomp

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

Reply via email to