Jira (PUP-6521) Add the ability to describe Data Type for a Resource Param

3 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Jul 19, 2016, 8:35:06 AM7/19/16
to puppe...@googlegroups.com
Henrik Lindberg created an issue
 
Puppet / Bug PUP-6521
Add the ability to describe Data Type for a Resource Param
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2016/07/19 5:34 AM
Priority: Normal Normal
Reporter: Henrik Lindberg

It is of value to use the Puppet Type system to define the data type of a Param (or Property). This information can be used to validate given values both when compiling and when applying a catalog.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Joe Pinsonault (JIRA)

unread,
May 16, 2017, 3:11:03 PM5/16/17
to puppe...@googlegroups.com
Joe Pinsonault updated an issue
Change By: Joe Pinsonault
Labels: triaged
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Joe Pinsonault (JIRA)

unread,
May 16, 2017, 3:12:07 PM5/16/17
to puppe...@googlegroups.com

Eric Sorenson (JIRA)

unread,
Jun 14, 2018, 7:45:03 PM6/14/18
to puppe...@googlegroups.com
Eric Sorenson commented on Bug PUP-6521
 
Re: Add the ability to describe Data Type for a Resource Param

If I understand this correctly, I don't think it's needed or desirable.

Is this saying that a module author would need to define, for every parameter / property, a Puppet type in the ruby lib/puppet/type/foo.rb for native types, or in Puppet code (somewhere??) for defined types.

This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Jun 15, 2018, 3:54:02 AM6/15/18
to puppe...@googlegroups.com

The new Resource API is already doing this to a degree - the data type of parameters/properties can be described by types in the type system.
An author uses String, Enum, etc. and can add data types of their own if they need that - from what I have seen, those types can be defined in the resource data type itself (the type definitions are declarative, and only if something is really special would they have to have a backing implementation of the data type).

Maggie Dreyer (JIRA)

unread,
Jun 18, 2018, 11:38:02 AM6/18/18
to puppe...@googlegroups.com

David McTavish (Jira)

unread,
Dec 6, 2021, 11:35:02 AM12/6/21
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Labels: Language final_triage
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

David McTavish (Jira)

unread,
Dec 6, 2021, 1:35:03 PM12/6/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages