Skip to content

Commit 4db8dbe

Browse files
authored
Merge pull request saz#306 from saz/add-types
add types in sudo::conf
2 parents b4bb8f0 + deccff1 commit 4db8dbe

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

REFERENCE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,47 +460,47 @@ The following parameters are available in the `sudo::conf` defined type:
460460

461461
##### <a name="-sudo--conf--ensure"></a>`ensure`
462462

463-
Data type: `Any`
463+
Data type: `Enum['present', 'absent']`
464464

465465
Ensure if present or absent
466466

467467
Default value: `present`
468468

469469
##### <a name="-sudo--conf--priority"></a>`priority`
470470

471-
Data type: `Any`
471+
Data type: `Integer[0]`
472472

473473
Prefix file name with $priority
474474

475475
Default value: `10`
476476

477477
##### <a name="-sudo--conf--content"></a>`content`
478478

479-
Data type: `Any`
479+
Data type: `Optional[Variant[Array[String[1]], String[1]]]`
480480

481481
Content of configuration snippet
482482

483483
Default value: `undef`
484484

485485
##### <a name="-sudo--conf--source"></a>`source`
486486

487-
Data type: `Any`
487+
Data type: `Optional[String[1]]`
488488

489489
Source of configuration snippet
490490

491491
Default value: `undef`
492492

493493
##### <a name="-sudo--conf--template"></a>`template`
494494

495-
Data type: `Any`
495+
Data type: `Optional[String[1]]`
496496

497497
Path of a template file
498498

499499
Default value: `undef`
500500

501501
##### <a name="-sudo--conf--sudo_config_dir"></a>`sudo_config_dir`
502502

503-
Data type: `Any`
503+
Data type: `Optional[String[1]]`
504504

505505
Where to place configuration snippets.
506506
Only set this, if your platform is not supported or
@@ -510,15 +510,15 @@ Default value: `undef`
510510

511511
##### <a name="-sudo--conf--sudo_file_name"></a>`sudo_file_name`
512512

513-
Data type: `Any`
513+
Data type: `Optional[String[1]]`
514514

515515
Set a custom file name for the snippet
516516

517517
Default value: `undef`
518518

519519
##### <a name="-sudo--conf--sudo_syntax_path"></a>`sudo_syntax_path`
520520

521-
Data type: `Any`
521+
Data type: `String[1]`
522522

523523
Path to use for executing the sudo syntax check
524524

manifests/conf.pp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
# }
3636
#
3737
define sudo::conf (
38-
$ensure = present,
39-
$priority = 10,
40-
$content = undef,
41-
$source = undef,
42-
$template = undef,
43-
$sudo_config_dir = undef,
44-
$sudo_file_name = undef,
45-
$sudo_syntax_path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
38+
Enum['present', 'absent'] $ensure = present,
39+
Integer[0] $priority = 10,
40+
Optional[Variant[Array[String[1]], String[1]]] $content = undef,
41+
Optional[String[1]] $source = undef,
42+
Optional[String[1]] $template = undef,
43+
Optional[String[1]] $sudo_config_dir = undef,
44+
Optional[String[1]] $sudo_file_name = undef,
45+
String[1] $sudo_syntax_path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
4646
) {
4747
include sudo
4848

0 commit comments

Comments
 (0)