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