diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-02-11 10:39:53 +0100 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-02-11 10:39:53 +0100 |
commit | 71d1d8aac36ca6d5ce7b9f6b86a9891b45d3757c (patch) | |
tree | 2e41a14b459db16a8b2047fcae13ccefc2616c15 /provisioning/modules/pixelated/manifests/hackday_dev_env.pp | |
parent | dcec274dd5d727f113bbc64a95e9fc0773829ce3 (diff) |
(Re-)added auto setup of vagrant ssh.
- Issues #282, #252
Diffstat (limited to 'provisioning/modules/pixelated/manifests/hackday_dev_env.pp')
-rw-r--r-- | provisioning/modules/pixelated/manifests/hackday_dev_env.pp | 14 |
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'] + } +} |