1 |
# to not repeat the setting everywhere |
# to not repeat the settings everywhere |
2 |
Exec { path => "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin/" } |
Exec { |
3 |
|
path => "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin/", |
4 |
|
} |
5 |
|
|
6 |
|
Package { |
7 |
|
ensure => "present", |
8 |
|
} |
9 |
|
|
10 |
|
File { |
11 |
|
ensure => "present", |
12 |
|
owner => root, |
13 |
|
group => root, |
14 |
|
# on directory, this will be 755 |
15 |
|
# see http://docs.puppetlabs.com/references/2.7.0/type.html#file |
16 |
|
mode => 644, |
17 |
|
} |
18 |
|
|
19 |
|
Group { |
20 |
|
ensure => present, |
21 |
|
} |
22 |
|
|
23 |
|
User { |
24 |
|
ensure => present, |
25 |
|
managehome => true, |
26 |
|
shell => "/bin/bash", |
27 |
|
} |
28 |
|
|
29 |
|
define local_script($content, |
30 |
|
$owner = "root", |
31 |
|
$group = 'root', |
32 |
|
$mode = '755') { |
33 |
|
file { "/usr/local/bin/$name": |
34 |
|
owner => $owner, |
35 |
|
group => $group, |
36 |
|
mode => $mode, |
37 |
|
content => $content, |
38 |
|
} |
39 |
|
} |