aboutsummaryrefslogtreecommitdiff
path: root/manifests/kvm/manager.pp
blob: 8b2b75e3eb0b6b5e5f385d2e773b528da8c4d003 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
class virtual::kvm::manager {
  package { [ 'qemu-kvm', 'runit', 'uml-utilities', 'qemu-kvm', 'socat', 'bridge-utils', 'fakeroot', 'xorriso' ]:
    ensure  => present,
  }

  vcsrepo { '/usr/local/share/kvm-manager':
    ensure   => present,
    provider => git,
    source   => 'git://git.fluxo.info/kvm-manager.git',
    revision => 'd8bd926096ecf6d8c38453b6752088b8a10ca3b7',
    owner    => 'root',
    group    => 'root',
  }

  file { '/usr/local/sbin/di-maker':
    ensure  => '/usr/local/share/kvm-manager/di-maker',
    owner   => 'root',
    group   => 'root',
    require => Vcsrepo['/usr/local/share/kvm-manager'],
  }

  file { '/usr/local/sbin/kvm-manager':
    ensure  => '/usr/local/share/kvm-manager/kvm-manager',
    owner   => 'root',
    group   => 'root',
    require => Vcsrepo['/usr/local/share/kvm-manager'],
  }

  file { '/usr/local/sbin/kvm-creator':
    ensure  => '/usr/local/share/kvm-manager/kvm-creator',
    owner   => 'root',
    group   => 'root',
    require => Vcsrepo['/usr/local/share/kvm-manager'],
  }

  file { '/usr/local/sbin/kvm-status':
    ensure  => '/usr/local/share/kvm-manager/kvm-status',
    owner   => 'root',
    group   => 'root',
    require => Vcsrepo['/usr/local/share/kvm-manager'],
  }

  file { '/etc/screenrc.kvm-manager':
    ensure  => '/usr/local/share/kvm-manager/screenrc.kvm-manager',
    owner   => 'root',
    group   => 'root',
    require => Vcsrepo['/usr/local/share/kvm-manager'],
  }

  file { '/dev/kvm':
    ensure  => present,
    owner   => "root",
    group   => "kvm",
    mode    => "660",
  }
}