Class: Chef::Provisioning::AzureDriver::MachineOptions

Inherits:
MachineOptions
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeMachineOptions

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_nameString

Returns Name of the affinity group being used.

Returns:

  • (String)

    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_nameString

Returns Availability set name.

Returns:

  • (String)

    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_filePathname

Returns Path to the certificate file.

Returns:

  • (Pathname)

    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_nameString

Returns Cloud service name.

Returns:

  • (String)

    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_nameString

Returns Deployment name.

Returns:

  • (String)

    Deployment name.



22
23
24
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 22

def deployment_name
  @deployment_name
end

#private_key_filePathname

Returns Path to the private key.

Returns:

  • (Pathname)

    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_portInteger

Defaults to 22

Returns:

  • (Integer)

    The SSH port to listen on.



36
37
38
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 36

def ssh_port
  @ssh_port
end

#storage_account_nameString

Returns Storage account name.

Returns:

  • (String)

    Storage account name.



12
13
14
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 12

def 
  @storage_account_name
end

#subnet_nameString

Returns Subnet name.

Returns:

  • (String)

    Subnet name.



48
49
50
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 48

def subnet_name
  @subnet_name
end

#tcp_endpointsArray

Can be in port or src:dest format.

Returns:

  • (Array)

    Array of ports to enable.



26
27
28
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 26

def tcp_endpoints
  @tcp_endpoints
end

#virtual_network_nameString

Returns Virtual network name.

Returns:

  • (String)

    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_sizeChef::Provisioning::AzureDriver::Constants::MachineSize

Returns The Azure machine size.

Returns:



39
40
41
# File 'lib/chef/provisioning/azure_driver/machine_options.rb', line 39

def vm_size
  @vm_size
end

#winrm_transportString

Returns WinRM transport mechanism (“http”, or “https”). Defaults to “http”.

Returns:

  • (String)

    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