summaryrefslogtreecommitdiff
path: root/manifests/alias.pp
blob: 7a5dd567cac2aefb6d854817e86e1ae00984aaf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# 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, 
  $comment='',
  $target='/etc/sudoers'
) {
  sudoers { $name:
    type => 'alias',
    ensure => $ensure,
    sudo_alias => $sudo_alias,
    items => $items,
    comment => $comment,
    target => $target,
  }
}