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