Nan Cheers for the response.
Yes this is just a parameter... What's the easiest way to work with them in the provider? Cheers Gavin On Nov 13, 2012 7:00 PM, "Nan Liu" <n...@puppetlabs.com> wrote: > On Tue, Nov 13, 2012 at 7:33 AM, fatmcgav <fatmc...@gmail.com> wrote: > >> One of the functions required is the ability to set 'options' against a >> given volume. >> What I want to do is create a provider that accepts a volume name and a >> list of volume options with their corresponding settings, and then iterate >> through the provided list making a webservice call for each option. >> >> So to give a better example of the provider in pastebin: >> netapp_volume_options { 'v_puppet_test12111508': >> options => ['convert_ucode=on', 'no_atime_update=on'], >> } >> > > Yeah this seems to make more sense as a hash: > > options => { 'convert_ucode' => 'on', 'no_atime_update' => 'on' } > > I'm assuming this is just parameter, if it's a property add the following > method to the type and you should get a reasonable output: > > def should_to_s(v) > v.inspect > end > > def is_to_s(v) > v.inspect > end > > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.