diff options
Diffstat (limited to 'manifests/alias.pp')
-rw-r--r-- | manifests/alias.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/alias.pp b/manifests/alias.pp new file mode 100644 index 0000000..6127a23 --- /dev/null +++ b/manifests/alias.pp @@ -0,0 +1,19 @@ +# +# defined resource that wraps the functionality for creating +# aliases with the sudoers type +# * name - name of alias +# * type - type of sudo alias can be (Cmnd|Host|User|Runas)(_Alias)? +# * items - list of things to be aliased. +define sudo::alias( + $ensure=present, + $sudo_alias, $items, + $target='/etc/sudoers' +) { + sudoers { $name: + type => 'alias', + ensure => $ensure, + sudo_alias => $sudo_alias, + items => $items, + target => $target, + } +} |