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

Contents of /puppet/manifests/defaults.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2199 - (show annotations) (download)
Sun Jan 8 20:24:58 2012 UTC (12 years, 2 months ago) by misc
File size: 769 byte(s)
add defaults values for user created by puppet, to remove duplication
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 => 644,
17 }
18
19 Group {
20 ensure => present,
21 }
22
23 User {
24 ensure => present,
25 managehome => true,
26 shell => "/bin/bash",
27 }
28
29 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