Bootstrap YET infrastructure using Opscode Chef - part 2 - load balancing

In our first Boostrap YET article, we’ve seen how we could easily instantiate a new node at HP Cloud using knife hp and some Chef Cookbooks, Roles, … Today we’ll see how we can add Load Balancing into the picture using the HAProxy cookbook. Add HA Proxy cookbook to your chef-repo To install the community version of haproxy cookbook (it’s not the latest one): % knife cookbook site install haproxy NOTE: You could use Librarian-chef or Berkshelf to manage your cookbooks dependencies in a cleaner way. ...

December 19, 2012 · 2 min · planetrobbie

Bootstrap YET infrastructure using Opscode Chef - part 1

In this article, we will details all the required steps to build up an environment to host the previous incarnation of this blog on Nginx using Chef on HP Cloud. Twelve years later the world has changed and this blog is now hosted on a bare metal machine in Germany. Chef Repo cloning First of all, if you don’t already have a Chef Repository available on your Chef Workstation, you can clone one easily : ...

December 1, 2012 · 6 min · planetrobbie

HP Cloud cheatsheet

HP recently launched their public cloud computing services based on OpenStack. In this article we will details some tips & tricks to efficiently use their services with Opscode Chef. Install Chef and Knife Plugin for HP Cloud $ gem install chef $ gem install knife-hp gather information regarding your HP Cloud Account: Access Key ID, Secret Key, Tenant ID and Availability Zone (az1, az2 or az3) $ vi chef-repo/.chef/knife.rb #add the following lines knife[:hp_account_id] = "Your HP Cloud Access Key ID" knife[:hp_secret_key] = "Your HP Cloud Secret Key" knife[:hp_tenant_id] = "Your HP Cloud Tenant ID" knife[:hp_auth_uri] = "https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens" knife[:hp_avl_zone] = "az1" #do not pass any Availability Zone if working with az3 or it won't work $ knife hp image list -VV [to test credentials] Install HP Fog, HP CLI & Setup account $ curl -sL https://docs.hpcloud.com/file/hpfog-0.0.17.gem >hpfog-0.0.17.gem $ gem install hpfog-0.0.17.gem $ curl -sL https://docs.hpcloud.com/file/hpcloud-1.2.0.gem >hpcloud-1.2.0.gem $ gem install hpcloud-1.2.0.gem $ hpcloud account:setup Create SSH key pairs $ ssh-keygen # generate .ssh/id_rsa and .ssh/id_rsa.pub [back them up !!!] Add keypair to HP Cloud paste public key to HP Cloud ...

November 14, 2012 · 2 min · planetrobbie