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

Contents of /puppet/modules/libvirtd/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 985 - (show annotations) (download)
Thu Feb 10 12:20:05 2011 UTC (12 years, 9 months ago) by misc
File size: 1050 byte(s)
add support for letting group based vm management
1 class libvirtd {
2 class base {
3 # make sure to use a recent enough version
4 # dnsmasq-base -> for nat network
5 # netcat-openbsd -> for ssh remote access
6 # iptables -> for dhcp, message error was quite puzzling
7 package { ["libvirt-utils","dnsmasq-base","netcat-openbsd","iptables"]:
8 }
9
10 service { libvirtd:
11 ensure => running,
12 path => "/etc/init.d/libvirtd",
13 }
14 }
15
16 class kvm inherits base {
17 # pull cyrus-sasl, should be checked
18 package { "qemu":
19
20 }
21
22 }
23
24 # see http://wiki.libvirt.org/page/SSHPolicyKitSetup
25 define group_access() {
26 # to pull polkit and create the directory
27 include libvirtd::base
28 file { "/etc/polkit-1/localauthority/50-local.d/50-$name-libvirt-remote-access.pkla":
29 owner => root,
30 group => root,
31 perms => 644,
32 ensure => present,
33 content => template("libvirtd/50-template-libvirt-remote-access.pkla"),
34 }
35 }
36 }

  ViewVC Help
Powered by ViewVC 1.1.28