Last active
August 29, 2015 14:18
-
-
Save heskyji/c44d19739a2bd554fcee to your computer and use it in GitHub Desktop.
install gem using puppet package
This file contains hidden or 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
package { | |
'jekyll': | |
ensure => installed, | |
provider => gem, | |
require => [ | |
Anyenv::Env::Install["anyenv_deploy_rbenv_${ruby_version}"], | |
Anyenv::Env::Default["anyenv_deploy_rbenv_default_${ruby_version}"], | |
]; | |
'rouge': | |
ensure => installed, | |
provider => gem, | |
require => [ | |
Anyenv::Env::Install["anyenv_deploy_rbenv_${ruby_version}"], | |
Anyenv::Env::Default["anyenv_deploy_rbenv_default_${ruby_version}"], | |
]; | |
} |
This file contains hidden or 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 { | |
'gem install jekyll': | |
command => 'gem install jekyll', | |
creates => '/home/deploy/.anyenv/envs/rbenv/shims/jekyll', | |
user => 'deploy', | |
provider => shell, | |
environment => [ | |
"HOME=/home/deploy", | |
"RBENV_ROOT=/home/deploy/.anyenv/envs/rbenv", | |
], | |
path => [ | |
'/home/deploy/.anyenv/bin', | |
'/home/deploy/.anyenv/envs/rbenv/bin', | |
'/home/deploy/.anyenv/envs/rbenv/shims', | |
'/usr/local/bin', | |
'/usr/bin', | |
'/bin', | |
], | |
require => [ | |
Anyenv::Env::Install["anyenv_deploy_rbenv_${ruby_version}"], | |
Anyenv::Env::Default["anyenv_deploy_rbenv_default_${ruby_version}"], | |
]; | |
'gem install rouge': | |
command => 'gem install rouge', | |
creates => '/home/deploy/.anyenv/envs/rbenv/shims/rouge', | |
user => 'deploy', | |
provider => shell, | |
environment => [ | |
"HOME=/home/deploy", | |
"RBENV_ROOT=/home/deploy/.anyenv/envs/rbenv", | |
], | |
path => [ | |
'/home/deploy/.anyenv/bin', | |
'/home/deploy/.anyenv/envs/rbenv/bin', | |
'/home/deploy/.anyenv/envs/rbenv/shims', | |
'/usr/local/bin', | |
'/usr/bin', | |
'/bin', | |
], | |
require => [ | |
Anyenv::Env::Install["anyenv_deploy_rbenv_${ruby_version}"], | |
Anyenv::Env::Default["anyenv_deploy_rbenv_default_${ruby_version}"], | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this, a bit more brief...