profile.pp 374 Bytes
Newer Older
mh's avatar
mh committed
1
2
3
4
define bash::profile(
    $source,
    $destination = '/root/.bash_profile',
    $uid = root,
mh's avatar
mh committed
5
    $gid = 0
mh's avatar
mh committed
6
7
8
){
  file {$name:
    path => $destination,
mh's avatar
mh committed
9
10
11
    source =>   [
      "puppet:///modules/site_bash/${::fqdn}/${source}",
      "puppet:///modules/site_bash/${source}",
12
      "puppet:///modules/bash/${source}"
mh's avatar
mh committed
13
14
    ],
    owner => $uid, group => $gid, mode => 600;
mh's avatar
mh committed
15
  }
mh's avatar
mh committed
16
}