Skip to content

Commit 5dfc454

Browse files
committed
Add Stdlib::Ensure::Package type
Like the ones for file, service. Valid values taken from https://puppet.com/docs/puppet/7/types/package.html#package-attribute-ensure
1 parent 199e514 commit 5dfc454

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/ensure/package.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# @summary Validate the value of the ensure parameter for a package
2+
type Stdlib::Ensure::Package = Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], Pattern[/\./]]

0 commit comments

Comments
 (0)