puppet really doesnt want to install bower

asked 2015-01-08 11:21:19 -0600

dwdwdwdwdw gravatar image

Hi, After much fighting with the two main modules which are meant to install npm (neither of which work with ubuntu 1404) I have managed to overcome that hurdle and got it installed.

I am now trying to automate the global install of bower, both modules I tried were supposed to set up npm as a package provider so I tried this with both to no avail:

package { 'bower':
      ensure => present,
      provider => 'npm',
    }

Not a problem I decided, its a no-input install so I can just fall back on a trusty exec, but for some reason that does nothing, no error, in fact no mention of it in the output whatsoever:

exec { 'install-bower':
    cwd => '/',
    command => 'npm install -g bower'
}

I originally had this chained behind the npm install but since, I know that has installed correctly I tried removing the dependency chain and still nothing , here is the puppet apply output, as you can see not a mention:

# puppet apply manifests/site.pp
Warning: Could not retrieve fact fqdn
Notice: Compiled catalog for xxx in environment production in 4.47 seconds
Notice: /Stage[main]/Main/Exec[webftp_ssh_keys]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[webftp_dotfiles]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[root_ssh_keys]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[root_dotfiles]/returns: executed successfully
Notice: /Stage[main]/Main/File_line[link /root/.bash_git]/ensure: created
Notice: /Stage[main]/Ufw/Exec[ufw-default-deny]/returns: executed successfully
Notice: /Stage[main]/Apache/Apache::Vhost[default]/File[/var/www]/owner: owner changed 'userx' to 'root'
Notice: /Stage[main]/Apache/Apache::Vhost[default]/File[/var/www]/group: group changed 'www-data' to 'root'
Notice: /Stage[main]/Main/Exec[userx homedir]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[bind var/www to webftp]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[remove-allow-http-from anywhere]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[remove-allow-https-from anywhere]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[remove-allow-https-from anywhere]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Main/Exec[allow-ssh]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[allow-ssh]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Main/Exec[allow-http-from bs internal range 192.168.0.0/21]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[allow-http-from bs internal range 192.168.0.0/21]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Main/Exec[allow-https-from bs internal range 192.168.0.0/21]/returns: executed successfully
Notice: /Stage[main]/Main/Exec[allow-https-from bs internal range 192.168.0.0/21]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Main/Exec[enable-mcrypt]/returns: executed successfully
Notice: /Stage[main]/Main/Makesite::Laravel[demo.xxx.co.uk]/Makesite::Deploy[demo.xxx.co.uk]/Exec[/var/www/demo.xxx.co.uk/app/storage-775]/returns: executed successfully
Notice: /Stage[main]/Main/Makesite::Laravel[demo.xxx.co.uk]/Makesite::Deploy[demo.xxx.co.uk]/Exec[/var/www/demo.xxx.co.uk/public-775]/returns: executed successfully
Notice: /Stage[main]/Main/File_line[link /home/userx/.bash_git]/ensure: created
Notice: /Stage[main]/Apache/File[/etc/apache2/mods-enabled/php5.conf ...
(more)
edit retag flag offensive close merge delete