user_alias.pp 370 Bytes
Newer Older
1
define sudo::user_alias (
LeLutin's avatar
LeLutin committed
2 3 4 5
  $members,
  $ensure = 'present'
) {
  # this is 00-prefixed so that it's defined before the other definitions
Antoine Beaupré's avatar
Antoine Beaupré committed
6
  file { "${sudo::dir}/00-user_alias-${title}":
LeLutin's avatar
LeLutin committed
7 8 9 10 11 12
    ensure  => $ensure,
    owner   => 'root',
    group   => 0,
    mode    => '0440',
    content => "# THIS FILE IS MANAGED BY PUPPET !\n\nUser_Alias ${name} = ${members}\n",
  }
13
}