Parent

Class/Module Index [+]

Quicksearch

Ironfan::Dsl::Ec2::ElasticLoadBalancer

Constants

BEAST_VULNERABLE_CIPHERS

SSL ciphers susceptible to the BEAST attack

Public Instance Methods

listeners_to_fog(cert_lookup) click to toggle source
# File lib/ironfan/dsl/ec2.rb, line 241
def listeners_to_fog(cert_lookup)
  port_mappings.map do |pm|
    result = {
      'Protocol'         => pm[0], # load_balancer_protocl
      'LoadBalancerPort' => pm[1], # load_balancer_port
      'InstanceProtocol' => pm[2], # internal_protocol
      'InstancePort'     => pm[3], # internal_port
    }
    result['SSLCertificateId'] = cert_lookup[pm[4]] if pm[4]
    result
  end
end
map_port(load_balancer_protocol = 'HTTP', load_balancer_port = 80, internal_protocol = 'HTTP', internal_port = 80, iam_server_certificate = nil) click to toggle source
# File lib/ironfan/dsl/ec2.rb, line 227
def map_port(load_balancer_protocol = 'HTTP', load_balancer_port = 80, internal_protocol = 'HTTP', internal_port = 80, iam_server_certificate = nil)
  port_mappings << [ load_balancer_protocol, load_balancer_port, internal_protocol, internal_port, iam_server_certificate ]
  port_mappings.compact!
  port_mappings.uniq!
end
ssl_policy_to_fog() click to toggle source
# File lib/ironfan/dsl/ec2.rb, line 233
def ssl_policy_to_fog
  result = Hash[ *disallowed_ciphers.collect { |c| [ c, false ] }.flatten ]
  return {
    :name       => Digest::MD5.hexdigest("#{disallowed_ciphers.sort.join('')}"),
    :attributes => result,
  }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.