Class: Chef::Provisioning::AzureDriver::MachineOptions
- Inherits:
-
MachineOptions
- Object
- MachineOptions
- Chef::Provisioning::AzureDriver::MachineOptions
- Defined in:
- lib/chef/provisioning/azure_driver/machine_options.rb
Overview
Represents available machine provisioning options for Azure These are used to tell Azure how to construct a new VM
Instance Attribute Summary collapse
-
#affinity_group_name ⇒ String
Name of the affinity group being used.
-
#availability_set_name ⇒ String
Availability set name.
-
#certificate_file ⇒ Pathname
Path to the certificate file.
-
#cloud_service_name ⇒ String
Cloud service name.
-
#deployment_name ⇒ String
Deployment name.
-
#private_key_file ⇒ Pathname
Path to the private key.
-
#ssh_port ⇒ Integer
Defaults to 22.
-
#storage_account_name ⇒ String
Storage account name.
-
#subnet_name ⇒ String
Subnet name.
-
#tcp_endpoints ⇒ Array
Can be in
port
orsrc:dest
format. -
#virtual_network_name ⇒ String
Virtual network name.
-
#vm_size ⇒ Chef::Provisioning::AzureDriver::Constants::MachineSize
The Azure machine size.
-
#winrm_transport ⇒ String
WinRM transport mechanism (“http”, or “https”).
Instance Method Summary collapse
-
#initialize ⇒ MachineOptions
constructor
A new instance of MachineOptions.
Constructor Details
#initialize ⇒ MachineOptions
Returns a new instance of MachineOptions.
53 54 55 56 57 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 53 def initialize # Set defaults self.winrm_transport = 'http' self.ssh_port = 22 end |
Instance Attribute Details
#affinity_group_name ⇒ String
Returns Name of the affinity group being used.
42 43 44 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 42 def affinity_group_name @affinity_group_name end |
#availability_set_name ⇒ String
Returns Availability set name.
51 52 53 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 51 def availability_set_name @availability_set_name end |
#certificate_file ⇒ Pathname
Returns Path to the certificate file.
32 33 34 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 32 def certificate_file @certificate_file end |
#cloud_service_name ⇒ String
Returns Cloud service name.
19 20 21 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 19 def cloud_service_name @cloud_service_name end |
#deployment_name ⇒ String
Returns Deployment name.
22 23 24 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 22 def deployment_name @deployment_name end |
#private_key_file ⇒ Pathname
Returns Path to the private key.
29 30 31 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 29 def private_key_file @private_key_file end |
#ssh_port ⇒ Integer
Defaults to 22
36 37 38 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 36 def ssh_port @ssh_port end |
#storage_account_name ⇒ String
Returns Storage account name.
12 13 14 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 12 def storage_account_name @storage_account_name end |
#subnet_name ⇒ String
Returns Subnet name.
48 49 50 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 48 def subnet_name @subnet_name end |
#tcp_endpoints ⇒ Array
Can be in port
or src:dest
format.
26 27 28 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 26 def tcp_endpoints @tcp_endpoints end |
#virtual_network_name ⇒ String
Returns Virtual network name.
45 46 47 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 45 def virtual_network_name @virtual_network_name end |
#vm_size ⇒ Chef::Provisioning::AzureDriver::Constants::MachineSize
Returns The Azure machine size.
39 40 41 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 39 def vm_size @vm_size end |
#winrm_transport ⇒ String
Returns WinRM transport mechanism (“http”, or “https”). Defaults to “http”.
16 17 18 |
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 16 def winrm_transport @winrm_transport end |