Class: Bosh::Bootstrap::NetworkProviders::OpenStack
- Inherits:
-
Object
- Object
- Bosh::Bootstrap::NetworkProviders::OpenStack
- Defined in:
- lib/bosh-bootstrap/network_providers/openstack.rb
Instance Attribute Summary collapse
-
#cyoi_provider_client ⇒ Object
readonly
Returns the value of attribute cyoi_provider_client.
Instance Method Summary collapse
-
#initialize(cyoi_provider_client) ⇒ OpenStack
constructor
A new instance of OpenStack.
- #perform(settings) ⇒ Object
Constructor Details
#initialize(cyoi_provider_client) ⇒ OpenStack
Returns a new instance of OpenStack.
5 6 7 |
# File 'lib/bosh-bootstrap/network_providers/openstack.rb', line 5 def initialize(cyoi_provider_client) @cyoi_provider_client = cyoi_provider_client end |
Instance Attribute Details
#cyoi_provider_client ⇒ Object (readonly)
Returns the value of attribute cyoi_provider_client.
3 4 5 |
# File 'lib/bosh-bootstrap/network_providers/openstack.rb', line 3 def cyoi_provider_client @cyoi_provider_client end |
Instance Method Details
#perform(settings) ⇒ Object
9 10 11 12 13 |
# File 'lib/bosh-bootstrap/network_providers/openstack.rb', line 9 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 |