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
...