Repository is archived
No commit activity in last 3 years
No release in over 3 years
A gem to extend knife-rackspace allowing cloud load balancer management.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.10.8
~> 0.1.0
 Project Readme

Setup¶ ↑

Add region to your knife configuration:

#knife.rb
knife[:rackspace_api_region] = "ord"

Commands¶ ↑

List:

bundle exec knife rackspace load balancer list

Show:

bundle exec knife rackspace load balancer show <load_balancer_id>
bundle exec knife rackspace load balancer show <load_balancer_id> <load_balancer_id> --resolve-node-names

Create:

bundle exec knife rackspace load balancer create "some.site.com" --port 80 --node-port 80 --add-nodes-by-name "app1,app2" --algorithm RANDOM

Delete:

bundle exec knife rackspace load balancer delete <load_balancer_id>

Add Node:

bundle exec knife rackspace load balancer add node --by-name "app1" --port 80 --only "<load_balancer_id>,<load_balancer_id>"
bundle exec knife rackspace load balancer add node --by-name "app1,app2" --auto-resolve-port --except "<load_balancer_id>"

Delete Node:

bundle exec knife rackspace load balancer delete node --by-search "chef_environment:staging AND name:staging-app" --all

Copyright © 2012 HowAboutWe. See LICENSE.txt for further details.