From 328cad06f7f49d842b356a941f3c1d7c3eeb94cd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 14 Apr 2012 21:02:29 -0300 Subject: Adding kvm class --- manifests/init.pp | 1 + manifests/kvm.pp | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 manifests/kvm.pp (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 060d18f..6fdb71d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -119,3 +119,4 @@ import "plug.pp" import "appliance.pp" import "dns.pp" import "tor.pp" +import "kvm.pp" diff --git a/manifests/kvm.pp b/manifests/kvm.pp new file mode 100644 index 0000000..09af17f --- /dev/null +++ b/manifests/kvm.pp @@ -0,0 +1,21 @@ +class nodo::kvm inherits nodo::physical { + # fstab + file { "/etc/fstab": + source => "puppet://$server/modules/nodo/etc/fstab/kvm", + owner => "root", + group => "root", + mode => 0644, + ensure => present, + notify => Exec['update-initramfs'], + } + + # crypttab + file { "/etc/crypttab": + source => "puppet://$server/modules/nodo/etc/crypttab/kvm", + owner => "root", + group => "root", + mode => 0644, + ensure => present, + notify => Exec['update-initramfs'], + } +} -- cgit v1.2.3