Issue #6583 has been updated by Chris Boulton.

This is something that interests me right now (along with support for arrays 
and strings with line breaks).

I'm implementing some type of basic array/hash support in to the dashboard at 
the moment, and in the interests of having it potentially accepted by Puppet 
Labs, are there any thoughts for a 1.0 implementation of this, including how 
the data should be stored?

Right now I've got an additional "type" field for parameters, where you can 
select either string, multi-line string, hash, array, or JSON. Change the type, 
appropriate sets of fields apply to manage the values. Hash/array support is 
limited to one level for now, which is why there's the additional JSON type.

I noticed on the backend, the parameter values are being serialized w/ YAML, so 
most of the "work" is "already done". Is it still preferable to be storing the 
values for hashes/arrays serialised with YAML, or would it be better to store 
in raw form, then with the ENC format appropriately?
----------------------------------------
Bug #6583: Dashboard should support ability to set variables as hashes in the 
ENC
https://projects.puppetlabs.com/issues/6583

Author: Dan Bode
Status: Accepted
Priority: Normal
Assignee: Dan Bode
Category: 
Target version: 
Keywords: 
Branch: 
Affected URL: 
Affected Dashboard version: 


param classes can accept hashes:

<pre>
classes:
  foo:
    users:
      dan:
        ensure: present
</pre>


Dashboard should be able to model this


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to