On Tue, Nov 13, 2012 at 7:33 AM, fatmcgav <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.