From 86443abe71d218b125dc8f3ad887b71c83c94798 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 3 Apr 2010 00:15:27 -0300 Subject: Adding nodo::removable --- files/etc/crypttab/removable | 5 +++++ files/etc/fstab/removable | 4 ++++ manifests/init.pp | 1 + manifests/removable.pp | 11 +++++++++++ 4 files changed, 21 insertions(+) create mode 100644 files/etc/crypttab/removable create mode 100644 files/etc/fstab/removable create mode 100644 manifests/removable.pp 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 @@ +# +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", + } +} -- cgit v1.2.3