Created
July 10, 2013 03:59
-
-
Save glidenote/5963376 to your computer and use it in GitHub Desktop.
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
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