/[adm]/puppet/modules/testvm/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/testvm/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1966 - (show annotations) (download)
Fri Aug 19 12:31:32 2011 UTC (10 years, 1 month ago) by misc
File size: 831 byte(s)
add proper requires and missing directory for testvm user
1 class testvm
2 {
3 $testvm_login = "testvm"
4 $testvmdir = "/home/testvm"
5
6 group {"$testvm_login":
7 ensure => present,
8 }
9
10 user {"$testvm_login":
11 ensure => present,
12 comment => "System user used to run test VMs",
13 managehome => true,
14 gid => $vmtest_login,
15 shell => "/bin/bash",
16 }
17
18 file { "$testvmdir/bin/":
19 ensure => directory,
20 require => User[$testvm_login],
21 }
22
23 file { "$testvmdir/bin/_vm":
24 ensure => present,
25 owner => root,
26 group => root,
27 mode => 644,
28 source => "puppet:///modules/testvm/_vm",
29 require => File["$testvmdir/bin"],
30 }
31
32 file { "$testvmdir/bin/vm-jonund":
33 ensure => present,
34 owner => root,
35 group => $testvm_login,
36 mode => 750,
37 source => "puppet:///modules/testvm/vm-jonund",
38 require => File["$testvmdir/bin"],
39 }
40 }

  ViewVC Help
Powered by ViewVC 1.1.28