Permalink
Browse files

added comments to all types

  • Loading branch information...
1 parent 53accdf commit 3b196c0d2053b03007a7a9dd3ef0bf2e2a4f8000 Dan Bode committed Jun 2, 2010
Showing with 10 additions and 1 deletion.
  1. +2 −0 manifests/alias.pp
  2. +6 −1 manifests/defaults.pp
  3. +2 −0 manifests/spec.pp
View
@@ -7,13 +7,15 @@
define sudo::alias(
$ensure=present,
$sudo_alias, $items,
+ $comment='',
$target='/etc/sudoers'
) {
sudoers { $name:
type => 'alias',
ensure => $ensure,
sudo_alias => $sudo_alias,
items => $items,
+ comment => $comment,
target => $target,
}
}
@@ -1,11 +1,16 @@
#
# define that wraps sudoers functionality of sudores
#
-define sudo::defaults( $ensure='present', $parameters, $target='/etc/sudoers') {
+define sudo::defaults(
+ $ensure='present',
+ $parameters, $target='/etc/sudoers',
+ $comment=''
+ ) {
sudoers { $name:
type => 'default',
ensure => $ensure,
parameters => $parameters,
+ comment => $comment,
target => $target,
}
}
View
@@ -8,6 +8,7 @@
define sudo::spec(
$ensure=present,
$users, $hosts, $commands,
+ $comment='',
$target='/etc/sudoers'
) {
sudoers { $name:
@@ -16,6 +17,7 @@
users => $users,
hosts => $hosts,
commands => $commands,
+ comment => $comment,
target => $target,
}
}

0 comments on commit 3b196c0

Please sign in to comment.