summaryrefslogtreecommitdiff
path: root/provisioning/modules/pixelated/manifests/hackday_dev_env.pp
blob: 78de0bba8896ad7a27c4d63a43cdec7b9c3f016d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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']
  }
}