aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-04-03 00:15:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-04-03 00:15:27 -0300
commit86443abe71d218b125dc8f3ad887b71c83c94798 (patch)
tree0b7abddaac201799827a1154e9cf062d0b446af5
parent26631255143bbbf90b57c4f9cd033a1209413f23 (diff)
downloadpuppet-nodo-86443abe71d218b125dc8f3ad887b71c83c94798.tar.gz
puppet-nodo-86443abe71d218b125dc8f3ad887b71c83c94798.tar.bz2
Adding nodo::removable
-rw-r--r--files/etc/crypttab/removable5
-rw-r--r--files/etc/fstab/removable4
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/removable.pp11
4 files changed, 21 insertions, 0 deletions
diff --git a/files/etc/crypttab/removable b/files/etc/crypttab/removable
new file mode 100644
index 0000000..aff01c6
--- /dev/null
+++ b/files/etc/crypttab/removable
@@ -0,0 +1,5 @@
+# <target name> <source device> <key file> <options>
+root /dev/mapper/vg-root none luks,cipher=aes-cbc-essiv:sha256
+#home /dev/mapper/vg-home none luks,cipher=aes-cbc-essiv:sha256
+#var /dev/mapper/vg-var none luks,cipher=aes-cbc-essiv:sha256
+#cswap /dev/sda1 /dev/random swap,cipher=aes-cbc-essiv:sha256
diff --git a/files/etc/fstab/removable b/files/etc/fstab/removable
new file mode 100644
index 0000000..831369e
--- /dev/null
+++ b/files/etc/fstab/removable
@@ -0,0 +1,4 @@
+/dev/mapper/root / ext3 noatime,defaults,errors=remount-ro 0 1
+#/dev/mapper/home /home ext3 noatime,defaults,errors=remount-ro 0 2
+#/dev/mapper/var /var ext3 noatime,defaults,errors=remount-ro 0 2
+#/dev/mapper/cswap none swap sw 0 0
diff --git a/manifests/init.pp b/manifests/init.pp
index 5e597a2..019b6e3 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -27,3 +27,4 @@ import "master.pp"
import "proxy.pp"
import "storage.pp"
import "test.pp"
+import "removable.pp"
diff --git a/manifests/removable.pp b/manifests/removable.pp
new file mode 100644
index 0000000..2dd994c
--- /dev/null
+++ b/manifests/removable.pp
@@ -0,0 +1,11 @@
+class nodo::removable inherits nodo::desktop {
+ # fstab
+ File { "/etc/fstab":
+ source => "puppet://$server/modules/nodo/etc/fstab/removable",
+ }
+
+ # crypttab
+ File { "/etc/crypttab":
+ source => "puppet://$server/modules/nodo/etc/crypttab/removable",
+ }
+}