Skip to content

Conversation

@silug
Copy link
Contributor

@silug silug commented Jul 7, 2025

Pull Request (PR) description

Also add data types to class and define definitions.

This Pull Request (PR) fixes the following issues

N/A

@silug silug force-pushed the strings branch 2 times, most recently from 1ccaee6 to c021bc7 Compare July 7, 2025 23:28
@silug silug marked this pull request as ready for review July 7, 2025 23:29
Array[String[1]] $slaves,
Stdlib::Ensure::Package $ensure = present,
Optional[Stdlib::IP::Address::V4] $ipaddress = undef,
Optional[String[1]] $netmask = undef,
Copy link
Member

@jay7x jay7x Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be Stdlib::IP::Address::Nosubnet also, I guess.. though not 100% sure. For ipv4 the mask is just an IP address at least.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. That should not be IPv4-only.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I meant that $netmask can be validated against Stdlib::IP::Address::Nosubnet (at least for IPv4, need to recheck for IPv6, but I believe it's the same). Though, I can accept String[1] for now also.

Also add data types to `class` and `define` definitions.
@silug silug merged commit b78457f into voxpupuli:master Jul 8, 2025
5 checks passed
@silug silug deleted the strings branch July 8, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants