Last active
December 21, 2015 01:19
-
-
Save masutaka/6227256 to your computer and use it in GitHub Desktop.
A chef recipe of GrowthForecast
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
| requires 'GrowthForecast'; |
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
| directory '/home/masutaka/growthforecast' do | |
| owner 'masutaka' | |
| group 'masutaka' | |
| mode 0755 | |
| action :create | |
| end | |
| cookbook_file '/home/masutaka/growthforecast/cpanfile' do | |
| owner 'masutaka' | |
| group 'masutaka' | |
| mode 0644 | |
| end | |
| bash 'Install packages depending RRDTool' do | |
| code <<-EOC | |
| apt-get -y build-dep rrdtool | |
| EOC | |
| creates '/home/masutaka/growthforecast/local/bin/growthforecast.pl' | |
| end | |
| bash 'GrowthForcast install' do | |
| user 'masutaka' | |
| group 'masutaka' | |
| code <<-EOC | |
| export PATH=$HOME/.plenv/bin:$PATH | |
| eval "$(plenv init -)" | |
| cd $HOME/growthforecast | |
| plenv exec carton install | |
| EOC | |
| creates '/home/masutaka/growthforecast/local/bin/growthforecast.pl' | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://masutaka.net/chalow/2013-08-14-1.html