aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/etc/crypttab/appliance2
-rw-r--r--files/etc/fstab/appliance3
-rw-r--r--manifests/appliance.pp19
-rw-r--r--manifests/init.pp1
4 files changed, 25 insertions, 0 deletions
diff --git a/files/etc/crypttab/appliance b/files/etc/crypttab/appliance
new file mode 100644
index 0000000..1e43d67
--- /dev/null
+++ b/files/etc/crypttab/appliance
@@ -0,0 +1,2 @@
+# <target name> <source device> <key file> <options>
+#cswap /dev/sda1 /dev/random swap,cipher=aes-cbc-essiv:sha256
diff --git a/files/etc/fstab/appliance b/files/etc/fstab/appliance
new file mode 100644
index 0000000..65be800
--- /dev/null
+++ b/files/etc/fstab/appliance
@@ -0,0 +1,3 @@
+#/dev/mapper/cswap none swap sw 0 0
+/dev/vg/root / ext3 defaults,errors=remount-ro 0 1
+/dev/vg/vservers /var/vservers ext3 defaults,errors=remount-ro 0 2
diff --git a/manifests/appliance.pp b/manifests/appliance.pp
new file mode 100644
index 0000000..d361196
--- /dev/null
+++ b/manifests/appliance.pp
@@ -0,0 +1,19 @@
+class nodo::appliance inherits nodo::physical {
+ # fstab
+ file { "/etc/fstab":
+ source => "puppet://$appliance/modules/nodo/etc/fstab/appliance",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
+
+ # crypttab
+ file { "/etc/crypttab":
+ source => "puppet://$appliance/modules/nodo/etc/crypttab/appliance",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
+}
diff --git a/manifests/init.pp b/manifests/init.pp
index 8721edd..ca4725f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -91,3 +91,4 @@ import "test.pp"
import "removable.pp"
import "laptop.pp"
import "plug.pp"
+import "appliance.pp"