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-2.11.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.10.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.10.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.10.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.9.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.8.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.8.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.7.5 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.7.4 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.7.3 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.7.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.7.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.7.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.6.5 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.6.4 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.6.3 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.6.2 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.6.1 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.6.0 lib/rubber/recipes/rubber/load_balancers.rb
rubber-2.5.5 lib/rubber/recipes/rubber/load_balancers.rb