Last active
December 22, 2015 02:59
-
-
Save mathieue/6406843 to your computer and use it in GitHub Desktop.
graphite + statsd install with chef-solo
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
# install chef-solo one line ! | |
curl -L https://www.opscode.com/chef/install.sh | bash | |
# cookbooks have their rep: check the dir name == cookbook name | |
mkdir -p /opt/cookbooks | |
git clone https://github.com/hw-cookbooks/graphite | |
git clone https://github.com/opscode-cookbooks/apache2.git | |
git clone https://github.com/opscode-cookbooks/python.git | |
git clone https://github.com/opscode-cookbooks/runit.git | |
git clone https://github.com/opscode-cookbooks/memcached.git | |
git clone https://github.com/opscode-cookbooks/build-essential.git | |
git clone https://github.com/opscode-cookbooks/yum.git | |
git clone https://github.com/opscode-cookbooks/git | |
git clone https://github.com/opscode-cookbooks/dmg | |
git clone https://github.com/opscode-cookbooks/windows | |
git clone https://github.com/mdxp/nodejs-cookbook.git | |
git clone https://github.com/librato/statsd-cookbook.git | |
git clone https://github.com/opscode-cookbooks/chef_handler.git | |
git clone https://github.com/opscode-cookbooks/apt.git | |
cd /opt/cookbooks | |
mv nodejs-cookbook.git nodejs.git | |
mv statsd-cookbook.git statsd.git | |
# run magic !!! | |
cd .. | |
chef-solo -c solo.rb -j graphite.json |
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
{ | |
"run_list": [ "recipe[graphite],recipe[statsd]" ] | |
} |
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
file_cache_path "/root/chef-solo" | |
cookbook_path "/opt/cookbooks" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment