Sha256: 9a0fce8d81eabc7493072b756c1656afeae53d16e3f40a8832152075fbf6ed9e

Contents?: true

Size: 635 Bytes

Versions: 4

Compression:

Stored size: 635 Bytes

Contents

module Bosh::Bootstrap::NetworkProviders
  class OpenStack
    attr_reader :cyoi_provider_client

    def initialize(cyoi_provider_client)
      @cyoi_provider_client = cyoi_provider_client
    end

    def perform(settings)
      cyoi_provider_client.create_security_group("ssh", "ssh", 22)
      cyoi_provider_client.create_security_group("dns_server", "dns_server", protocol: "udp", ports: (53..53) )
      cyoi_provider_client.create_security_group("bosh", "bosh", [4222, 6868, 25250, 25555, 25777] )
    end

  end
end
Bosh::Bootstrap::NetworkProviders.register_provider("openstack", Bosh::Bootstrap::NetworkProviders::OpenStack)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bosh-bootstrap-0.14.3 lib/bosh-bootstrap/network_providers/openstack.rb
bosh-bootstrap-0.14.2 lib/bosh-bootstrap/network_providers/openstack.rb
bosh-bootstrap-0.14.1 lib/bosh-bootstrap/network_providers/openstack.rb
bosh-bootstrap-0.14.0 lib/bosh-bootstrap/network_providers/openstack.rb