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

Annotation of /puppet/manifests/defaults.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2199 - (hide annotations) (download)
Sun Jan 8 20:24:58 2012 UTC (12 years, 3 months ago) by misc
File size: 769 byte(s)
add defaults values for user created by puppet, to remove duplication
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 2155 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     }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30