Sha256: a932774b8bd85bae1353a7e2558e6e55bd07eba59776c620e672aa89d924d713

Contents?: true

Size: 734 Bytes

Versions: 9

Compression:

Stored size: 734 Bytes

Contents

module Bosh::Bootstrap::NetworkProviders
  class AWS
    attr_reader :provider_client

    def initialize(provider_client)
      @provider_client = provider_client
    end

    def perform
      security_groups.each do |name, ports|
        provider_client.create_security_group(name.to_s, name.to_s, ports: ports)
      end
    end

    protected
    def security_groups
      {
        ssh: 22,
        dns_server: { protocol: "udp", ports: (53..53) },
        bosh_nats_server: 4222,
        bosh_agent_https: 6868,
        bosh_blobstore: 25250,
        bosh_director: 25555,
        bosh_registry: 25777
      }
    end
  end
end
Bosh::Bootstrap::NetworkProviders.register_provider("aws", Bosh::Bootstrap::NetworkProviders::AWS)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bosh-bootstrap-0.12.0 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.15 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.14 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.13 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.12 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.11 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.9 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.8 lib/bosh-bootstrap/network_providers/aws.rb
bosh-bootstrap-0.11.7 lib/bosh-bootstrap/network_providers/aws.rb