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

Annotation of /puppet/manifests/defaults.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2155 - (hide annotations) (download)
Sun Jan 8 12:51:23 2012 UTC (9 years, 6 months ago) by misc
File size: 652 byte(s)
add a define for local_script, and set explicitely the default value for
File ( 644 on file, 755 on directory )
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 2155 define local_script($content,
20     $owner = "root",
21     $group = 'root',
22     $mode = '755') {
23     file { "/usr/local/bin/$name":
24     owner => $owner,
25     group => $group,
26     mode => $mode,
27     content => $content,
28     }
29     }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28