Skip to content

Instantly share code, notes, and snippets.

@glidenote
Created July 10, 2013 03:59
Show Gist options
  • Save glidenote/5963376 to your computer and use it in GitHub Desktop.
Save glidenote/5963376 to your computer and use it in GitHub Desktop.
class internal_api::rbenv {
rbenv::install { 'hogemoge-api': }
rbenv::compile {
'1.9.3-p448':
user => 'hogemoge-api',
global => true
}
Rbenv::Gem {
user => 'hogemoge-api',
ruby => '1.9.3-p448',
}
# bundlerはpuppet-rbenvで定義されてるから不要
rbenv::gem {
[
'sinatra',
'mysql2',
'sequel',
'unicorn',
]:
}
# ~/.rbenvrc を読み込むのに必要
file {
'/home/hogemoge-api/.bash_profile':
source => 'puppet:///dist/internal_api/home/hogemoge-api/.bash_profile',
owner => 'hogemoge-api',
mode => 644;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment