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