aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-23 14:32:17 +0000
committerMichael Scherer <misc@mageia.org>2011-01-23 14:32:17 +0000
commitbce68e5fb29ec2d651c71e7c975f8abce664591e (patch)
tree2b65dc7c163fc83ceb5db7e2f49bba32c692acf6 /modules
parent7264ee21921c86cbb756e1ebc3e964e02a7b67c8 (diff)
downloadpuppet-bce68e5fb29ec2d651c71e7c975f8abce664591e.tar
puppet-bce68e5fb29ec2d651c71e7c975f8abce664591e.tar.gz
puppet-bce68e5fb29ec2d651c71e7c975f8abce664591e.tar.bz2
puppet-bce68e5fb29ec2d651c71e7c975f8abce664591e.tar.xz
puppet-bce68e5fb29ec2d651c71e7c975f8abce664591e.zip
- add libvirtd module, to have the minimal support for using
virt-manager
Diffstat (limited to 'modules')
-rw-r--r--modules/libvirtd/manifests/init.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/libvirtd/manifests/init.pp b/modules/libvirtd/manifests/init.pp
new file mode 100644
index 00000000..8271e1b1
--- /dev/null
+++ b/modules/libvirtd/manifests/init.pp
@@ -0,0 +1,23 @@
+class libvirtd {
+ class base {
+ # make sure to use a recent enough version
+ # dnsmasq-base -> for nat network
+ # netcat-openbsd -> for ssh remote access
+ # iptables -> for dhcp, message error was quite puzzling
+ package { ["libvirtd","dnsmasq-base","netcat-openbsd","iptables"]:
+ }
+
+ service { libvirtd:
+ ensure => running,
+ path => "/etc/init.d/libvirtd",
+ }
+ }
+
+ class kvm inherits base {
+ # pull cyrus-sasl, should be checked
+ package { "qemu":
+
+ }
+
+ }
+}