Skip to content

Instantly share code, notes, and snippets.

@karangb
Last active December 28, 2015 21:49
Show Gist options
  • Save karangb/7567117 to your computer and use it in GitHub Desktop.
Save karangb/7567117 to your computer and use it in GitHub Desktop.
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
exec { "apt-get update":
command => "/usr/bin/apt-get update"
}
$yeomanPackages = [ "git", "rubygems", "libjpeg-turbo-progs", "optipng", "phantomjs", "python-software-properties" ]
package { $yeomanPackages:
ensure => "installed",
require => Exec['apt-get update'],
}
include nodejs
package { 'bower':
ensure => present,
provider => 'npm',
require => Class["nodejs"],
}
Result (I have previously ran it before)
root@puppetify3:~# puppet apply site.pp --modulepath=modules/
Warning: Could not retrieve fact fqdn
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for puppetify3 in environment production in 0.36 seconds
Notice: /Stage[main]//Exec[apt-get update]/returns: executed successfully
Notice: Finished catalog run in 5.80 seconds
root@puppetify3:~# npm
-bash: npm: command not found
root@puppetify3:~# bower
-bash: bower: command not found
root@puppetify3:~#
@karangb
Copy link
Author

karangb commented Nov 20, 2013

Puppet executed - but bower was still not installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment