Skip to content

Instantly share code, notes, and snippets.

@mathieue
Last active December 22, 2015 02:59
Show Gist options
  • Save mathieue/6406843 to your computer and use it in GitHub Desktop.
Save mathieue/6406843 to your computer and use it in GitHub Desktop.
graphite + statsd install with chef-solo
# 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
{
"run_list": [ "recipe[graphite],recipe[statsd]" ]
}
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