aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-08 21:29:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-08 21:29:36 -0300
commit1b620538116822f086ecf603beef52095d56c74a (patch)
tree4bedf65bf82b1cc64e087495838ffa24b29a3ec4
parent40f7f37354e275d7e9415c3838cdfab9a968c04c (diff)
downloadpuppet-nodo-1b620538116822f086ecf603beef52095d56c74a.tar.gz
puppet-nodo-1b620538116822f086ecf603beef52095d56c74a.tar.bz2
Adding nodo::appliance
-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"