aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-22 12:56:24 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-22 12:56:24 -0200
commit616d2575015a57407cd0a930b8cd16b0b29aecb6 (patch)
treec19024bf97fd737511a22acd0029fc48cff905c1 /manifests/subsystems
parentfb6d9071efc4ebc47d34ed0ab263e55d5ed143a6 (diff)
downloadpuppet-nodo-616d2575015a57407cd0a930b8cd16b0b29aecb6.tar.gz
puppet-nodo-616d2575015a57407cd0a930b8cd16b0b29aecb6.tar.bz2
Adding fstab and crypttab classes
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/crypttab.pp12
-rw-r--r--manifests/subsystems/fstab.pp12
2 files changed, 24 insertions, 0 deletions
diff --git a/manifests/subsystems/crypttab.pp b/manifests/subsystems/crypttab.pp
new file mode 100644
index 0000000..6447005
--- /dev/null
+++ b/manifests/subsystems/crypttab.pp
@@ -0,0 +1,12 @@
+class crypttab(
+ $type
+) {
+ file { "/etc/crypttab":
+ source => "puppet:///modules/nodo/etc/crypttab/${type}",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ notify => Exec['update-initramfs'],
+ }
+}
diff --git a/manifests/subsystems/fstab.pp b/manifests/subsystems/fstab.pp
new file mode 100644
index 0000000..40c8c30
--- /dev/null
+++ b/manifests/subsystems/fstab.pp
@@ -0,0 +1,12 @@
+class fstab(
+ $type
+) {
+ file { "/etc/fstab":
+ source => "puppet:///modules/nodo/etc/fstab/${type}",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ notify => Exec['update-initramfs'],
+ }
+}