I'm trying to set up a VM to use python-nvd3 and using puppet to provision the machine. I've got node.js/npm to go in ok but then I get an error trying to install packages using bower:
package { 'bower':
provider => npm
}
exec { 'install d3':
command => '/usr/local/bin/bower install d3#3.3.8',
require => Package["bower"]
}
exec { 'install nvd3':
command => '/usr/local/bin/bower install nvd3#1.1.12-beta',
require => Package["bower"]
}
err: /Stage[main]/Infinite_interns::Box::Tm351d001r/Exec[install d3]/returns: change from notrun to 0 failed: /usr/local/bin/bower install d3#3.3.8 returned 1 instead of one of [0] at /vagrant/modules/infinite_interns/manifests/box/tm351d001r.pp:39
If I ssh in to the VM, and try to run a bower
command I get a y/n prompt to ask if I want to allow error logging. In this case I don't want to and I don't want my provisioner to fall over because it can't answer the question (if this is the problem that's causing the above puppet error).
bower install
now works (it does), the puppet error above still appears.