summaryrefslogtreecommitdiff
path: root/provisioning/modules/pixelated/manifests/hackday_dev_env.pp
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning/modules/pixelated/manifests/hackday_dev_env.pp')
-rw-r--r--provisioning/modules/pixelated/manifests/hackday_dev_env.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/provisioning/modules/pixelated/manifests/hackday_dev_env.pp b/provisioning/modules/pixelated/manifests/hackday_dev_env.pp
new file mode 100644
index 00000000..78de0bba
--- /dev/null
+++ b/provisioning/modules/pixelated/manifests/hackday_dev_env.pp
@@ -0,0 +1,14 @@
+#
+class pixelated::hackday_dev_env {
+ file { '/home/vagrant/.activate_custom_node_modules.sh':
+ owner => 'vagrant',
+ mode => '0600',
+ source => 'puppet:///modules/pixelated/activate_custom_node_modules.sh',
+ }
+ exec { 'add_custom_node_modules_to_bashrc':
+ command => "/bin/bash -c 'echo \"source /home/vagrant/.activate_custom_node_modules.sh\" >> /home/vagrant/.bashrc'",
+ unless => "/bin/grep \"source /home/vagrant/.activate_custom_node_modules.sh\" /home/vagrant/.bashrc",
+ user => 'vagrant',
+ require => File['/home/vagrant/.activate_custom_node_modules.sh']
+ }
+}