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

Contents of /puppet/manifests/defaults.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2667 - (show annotations) (download)
Thu Mar 22 10:46:57 2012 UTC (9 years, 6 months ago) by misc
File size: 824 byte(s)
clean the file from puppet-lint warning
1 # to not repeat the settings everywhere
2 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 => '0644',
17 }
18
19 Group {
20 ensure => present,
21 }
22
23 User {
24 ensure => present,
25 managehome => true,
26 shell => '/bin/bash',
27 }
28
29 Service {
30 ensure => running,
31 }
32
33 define local_script($content,
34 $owner = 'root',
35 $group = 'root',
36 $mode = '0755') {
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