aboutsummaryrefslogtreecommitdiff
path: root/manifests/kvm/manager.pp
blob: d30d1e4846764f2b1aff0b39a46c518112dd3544 (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
57
58
59
60
61
62
63
64
class virtual::kvm::manager {
  include virtual::kvm::packages
  include virtual::kvm::images
  include virtual::networking

  package { [
    'runit',
    'runit-systemd',
    'uml-utilities',
  ]:
    ensure  => present,
  }

  vcsrepo { '/usr/local/share/kvm-manager':
    ensure   => present,
    provider => git,
    source   => 'https://git.fluxo.info/kvm-manager',
    revision => 'b262c9597a3c5fd8c86ae63deda10f999048dfb8',
    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",
  }
}