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

Diff of /puppet/manifests/defaults.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2134 by misc, Sat Jan 7 22:17:50 2012 UTC revision 2155 by misc, Sun Jan 8 12:51:23 2012 UTC
# Line 11  File { Line 11  File {
11      ensure => "present",      ensure => "present",
12      owner => root,      owner => root,
13      group => root,      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    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    }

Legend:
Removed from v.2134  
changed lines
  Added in v.2155

  ViewVC Help
Powered by ViewVC 1.1.28