Helper class for development under Vagrant.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 29 Dec 2014 00:30:32 +0000 (01:30 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 29 Dec 2014 00:30:32 +0000 (01:30 +0100)
manifests/devel/hadoop.pp [new file with mode: 0644]

diff --git a/manifests/devel/hadoop.pp b/manifests/devel/hadoop.pp
new file mode 100644 (file)
index 0000000..56e4580
--- /dev/null
@@ -0,0 +1,19 @@
+# == Class site_hadoop::devel::hadoop
+# Local post-installation steps for Hadoop.
+class site_hadoop::devel::hadoop {
+  hadoop::kinit{'vagrant-kinit':
+    touchfile => 'vagrant-user-created',
+  }
+  ->
+  hadoop::mkdir{'/user/vagrant':
+    owner     => 'vagrant',
+    group     => 'hadoop',
+    mode      => '0750',
+    touchfile => 'vagrant-user-created',
+  }
+  ->
+  hadoop::kdestroy{'vagrant-kdestroy':
+    touchfile => 'vagrant-user-created',
+    touch     => true,
+  }
+}