Knife EC2 Extension – Install and Use
Install $ apt-get install -y libxslt-dev libxml2-dev $ gem install knife-ec2 $ gem install net-ssh-multi Get Your AWS Keys Login to your AWS account at aws.amazon.com Go to My Account/Console ->...
View ArticleKeys and Values from Hashes in Ruby Templates
Reference: http://ruby-doc.org/stdlib-1.9.3/libdoc/erb/rdoc/ERB.html ERB recognizes certain tags in the provided template and converts them based on the rules below: <% Ruby code -- inline with...
View ArticleHash Keys and Values in General Ruby
Create a new Hash node = Hash.new Create a new Hash of Hash node[:one] = Hash.new Insert Values into your Hash of Hash node[:one][:object] = "number1" node[:one][:block] = "number2" Print Key and Value...
View ArticleMultiple AWS Accounts with Knife Admin
I Recently stumbled across a predicament of multiple aws accounts. This is a minor predicament but a predicament nonethless. I have a situation where i have 1. A personal AWS account 2. A work AWS...
View ArticleEssential Knife Plugins for chef
Knife-Spork: This plugin helps you control versioning of your cookbooks and also prevents you from accidently commiting things you don’t want to. $ gem install knife-spork...
View ArticleClustered AMQP Rabbit-MQ
RabbitMQ already has excellent documentation at: http://www.rabbitmq.com/clustering.html But this will be a bit more chef specific server01 = existing chef-server server02 = new rabbitmq server to be...
View ArticleDebugging knife configure -i
If you ever see something like this root@chefserver01:/etc/chef# knife configure -i -V Overwrite /root/.chef/knife.rb? (Y/N) y Please enter the chef server URL: [http://chefserver01:4000] Please enter...
View ArticleAdding EBS Volumes with Opscode’s AWS cookbook
1. Download opscode’s aws cookbook and put it into your own cookbook repo $ git clone https://github.com/opscode/cookbooks.git opscode-cookbooks $ cp -r opscode-cookbooks/aws my-cookbooks/ $ cd...
View ArticleChef – Nagios Server quickstart
Clone the opscode cookbook $ git clone git@github.com:opscode-cookbooks/nagios.git Create some berkshelf dependency stuff to make your life easier ( I’m going to assume you have berkshelf installed, if...
View ArticleChef – berkshelf lesson for dummies like me Ermahgerd!
I feel like some of the explanations on berkshelf on the internet are confusing. So i felt like doing a small write up myself berkshelf is pretty much a replacement for the “knife cookbook” command....
View Article