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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 357 - (hide annotations) (download)
Sun Nov 21 20:54:45 2010 UTC (13 years, 3 months ago) by boklm
File size: 635 byte(s)
add testvm module, used to run test VMs
1 boklm 357 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/_vm":
19     ensure => present,
20     owner => root,
21     group => root,
22     mode => 644,
23     source => "puppet:///modules/testvm/_vm",
24     }
25    
26     file { "$testvmdir/bin/vm-jonund":
27     ensure => present,
28     owner => root,
29     group => $testvm_login,
30     mode => 750,
31     source => "puppet:///modules/testvm/vm-jonund",
32     }
33     }

  ViewVC Help
Powered by ViewVC 1.1.30