On Sun, Oct 21, 2012 at 10:04 AM, Jakov Sosic <jso...@srce.hr> wrote: > I'm having trouble to write a custom type that accepts array as property. > This is example of my custom type resource definition: > > customtype { 'blah': > myarray => ['a','b'], > } > > This is what I've got in provider: > > def myarray=(value) > require 'pp' > pp value > end > > > But pp prints only "a"... It would be really helpful if I could see example > of array in custom type... So any help is appreciated.
Puppet::Type.newtype(:customtype) do newproperty(:myarray, array_matching => :all) do end end 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.