aboutsummaryrefslogtreecommitdiffstats
path: root/modules/testvm/manifests/init.pp
blob: 93376e45f50b881bd871fa5f0ba603ba2eec825e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class testvm
{
    $testvm_login = "testvm"
    $testvmdir = "/home/testvm"

    group {"$testvm_login":
	ensure => present,
    }

    user {"$testvm_login":
	ensure => present,
	comment => "System user used to run test VMs",
	managehome => true,
	gid => $vmtest_login,
	shell => "/bin/bash",
    }

    file { "$testvmdir/bin/_vm":
	ensure => present,
        owner => root,
	group => root,
	mode => 644,
	source => "puppet:///modules/testvm/_vm",
    }

    file { "$testvmdir/bin/vm-jonund":
	ensure => present,
        owner => root,
	group => $testvm_login,
	mode => 750,
	source => "puppet:///modules/testvm/vm-jonund",
    }
}