Last active
December 28, 2015 21:49
-
-
Save karangb/7567117 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Puppet executed - but bower was still not installed.