Jira (PUP-10711) Create numeric and port setting types and update existing port settings

9 views
Skip to first unread message

Gabriel Nagy (Jira)

unread,
Oct 9, 2020, 8:35:04 AM10/9/20
to puppe...@googlegroups.com
Gabriel Nagy created an issue
 
Puppet / Improvement PUP-10711
Create numeric and port setting types and update existing port settings
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2020/10/09 5:34 AM
Labels: platform_7
Priority: Normal Normal
Reporter: Gabriel Nagy

This came up when we wanted to have an interpolated integer as a default value for a setting. Currently it is not possible to do this, as the interpolation has to be wrapped in quotes, so the setting becomes a string instead.

Puppet has various setting types (array, boolean, enum, ttl, priority, etc.) which can have their own munge logic. We should create a numeric (or integer) setting type which converts passed values to valid numbers (even if they are passed as strings/symbols).

On top of this, we should have a port setting type which inherits from the numeric setting type. In short, it should call munge on its superclass and then check if the resulting number is valid (between 0 and 65535).

All port-related settings should be updated afterwards to use the new type (masterport, serverport, ca_port and report_port).

POC for this functionality (without the numeric setting type): https://github.com/puppetlabs/puppet/pull/8373

This is considered breaking in a way, as there isn't a consensus on whether the port-related settings should be strings or integers (currently both are accepted).

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Oct 14, 2020, 4:25:02 AM10/14/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Oct 14, 2020, 4:25:03 AM10/14/20
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
Oct 22, 2020, 10:33:03 AM10/22/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Oct 28, 2020, 5:10:04 AM10/28/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW - 2020-10-28 , NW - 2020-11-11

Claire Cadman (Jira)

unread,
Nov 9, 2020, 9:54:03 AM11/9/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages