/[adm]/puppet/manifests/defaults.pp
ViewVC logotype

Annotation of /puppet/manifests/defaults.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2241 - (hide annotations) (download)
Sat Jan 14 19:26:10 2012 UTC (9 years, 8 months ago) by misc
File size: 805 byte(s)
make service run by default, to simplify the manifests
1 misc 2134 # to not repeat the settings everywhere
2     Exec {
3     path => "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin/",
4     }
5 misc 2133
6 misc 2134 Package {
7     ensure => "present",
8     }
9 misc 2133
10 misc 2134 File {
11     ensure => "present",
12     owner => root,
13     group => root,
14 misc 2155 # on directory, this will be 755
15     # see http://docs.puppetlabs.com/references/2.7.0/type.html#file
16     mode => 644,
17 misc 2134 }
18    
19 misc 2199 Group {
20     ensure => present,
21     }
22    
23     User {
24     ensure => present,
25     managehome => true,
26     shell => "/bin/bash",
27     }
28    
29 misc 2241 Service {
30     ensure => running,
31     }
32    
33 misc 2155 define local_script($content,
34     $owner = "root",
35     $group = 'root',
36     $mode = '755') {
37     file { "/usr/local/bin/$name":
38     owner => $owner,
39     group => $group,
40     mode => $mode,
41     content => $content,
42     }
43     }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28