diff --git a/REFERENCE.md b/REFERENCE.md index 2353e9f..b46c217 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -460,7 +460,7 @@ The following parameters are available in the `sudo::conf` defined type: ##### `ensure` -Data type: `Any` +Data type: `Enum['present', 'absent']` Ensure if present or absent @@ -468,7 +468,7 @@ Default value: `present` ##### `priority` -Data type: `Any` +Data type: `Integer[0]` Prefix file name with $priority @@ -476,7 +476,7 @@ Default value: `10` ##### `content` -Data type: `Any` +Data type: `Optional[Variant[Array[String[1]], String[1]]]` Content of configuration snippet @@ -484,7 +484,7 @@ Default value: `undef` ##### `source` -Data type: `Any` +Data type: `Optional[String[1]]` Source of configuration snippet @@ -492,7 +492,7 @@ Default value: `undef` ##### `template` -Data type: `Any` +Data type: `Optional[String[1]]` Path of a template file @@ -500,7 +500,7 @@ Default value: `undef` ##### `sudo_config_dir` -Data type: `Any` +Data type: `Optional[String[1]]` Where to place configuration snippets. Only set this, if your platform is not supported or @@ -510,7 +510,7 @@ Default value: `undef` ##### `sudo_file_name` -Data type: `Any` +Data type: `Optional[String[1]]` Set a custom file name for the snippet @@ -518,7 +518,7 @@ Default value: `undef` ##### `sudo_syntax_path` -Data type: `Any` +Data type: `String[1]` Path to use for executing the sudo syntax check diff --git a/manifests/conf.pp b/manifests/conf.pp index 029d3e3..9f3248e 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -35,14 +35,14 @@ # } # define sudo::conf ( - $ensure = present, - $priority = 10, - $content = undef, - $source = undef, - $template = undef, - $sudo_config_dir = undef, - $sudo_file_name = undef, - $sudo_syntax_path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' + Enum['present', 'absent'] $ensure = present, + Integer[0] $priority = 10, + Optional[Variant[Array[String[1]], String[1]]] $content = undef, + Optional[String[1]] $source = undef, + Optional[String[1]] $template = undef, + Optional[String[1]] $sudo_config_dir = undef, + Optional[String[1]] $sudo_file_name = undef, + String[1] $sudo_syntax_path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' ) { include sudo