class virtual::kvm::manager { include virtual::networking package { [ 'qemu-kvm', 'runit', 'runit-systemd', 'uml-utilities', 'qemu-kvm', 'socat', 'fakeroot', 'xorriso', ]: ensure => present, } # Provide a netboot image for VM installs package { "debian-installer-9-netboot-${::architecture}": ensure => present, } vcsrepo { '/usr/local/share/kvm-manager': ensure => present, provider => git, source => 'git://git.fluxo.info/kvm-manager.git', 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", } }