Sha256: 9feab5ab2b59f520342acaf0400edfbf117bd5857a24763105043ecc86645b3d

Contents?: true

Size: 1.07 KB

Versions: 146

Compression:

Stored size: 1.07 KB

Contents

namespace :rubber do

  #desc <<-DESC
  #  Sets up the network load balancers
  #DESC
  #required_task :setup_load_balancers do
  #  setup_load_balancers()
  #end
  #
  #desc <<-DESC
  #  Describes the network load balancers
  #DESC
  #required_task :describe_load_balancers do
  #  lbs = cloud.describe_load_balancers()
  #  pp lbs
  #end

  def setup_load_balancers
    # OPTIONAL: Automatically provision and assign instances to a Cloud provided
    # load balancer.
    #load_balancers:
    #  my_lb_name:
    #    listeners:
    #      - protocol: http
    #        port: 80
    #        instance_port: 8080
    #      - protocol: tcp
    #        port: 443
    #        instance_port: 8080
    #    target_roles: [app]
    #
    #isolate_load_balancers: true



    # get remote lbs
    # for each local not in remote, add it
    #   get all zones for all instances for roles, and make sure in lb
    #   warn if lb not balanced (count of instances per zone is equal)
    # for each local that is in remote, sync listeners and zones
    # for each remote not in local, remove it
  end

end

Version data entries

146 entries across 146 versions & 7 rubygems

Version Path
rubber-1.14.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.14.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.13.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.13.1 lib/rubber/recipes/rubber/load_balancers.rb
axtro-rubber-1.2.3 lib/rubber/recipes/rubber/load_balancers.rb
axtro-rubber-1.2.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.13.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.12.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.12.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.12.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.11.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.10.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.10.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-jcarnegie-0.0.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.9.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.9.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.8.0 lib/rubber/recipes/rubber/load_balancers.rb
nogara-rubber-1.7.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.7.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-1.7.1 lib/rubber/recipes/rubber/load_balancers.rb