class HammerCLIForemanAzureRm::ComputeResources::AzureRm

Public Instance Methods

compute_attributes() click to toggle source
# File lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb, line 12
def compute_attributes
  [
    ['resource_group', _('Existing Azure Resource Group of user')],
    ['vm_size', _('VM Size, eg. Standard_A0 etc.')],
    ['username', _('The Admin username')],
    ['password', _('The Admin password')],
    ['platform', _('OS type eg. Linux')],
    ['ssh_key_data', _('SSH key for passwordless authentication')],
    ['os_disk_caching', _('OS disk caching')],
    ['premium_os_disk', _('Premium OS Disk, Boolean as 0 or 1')],
    ['script_command', _('Custom Script Command')],
    ['script_uris', _('Comma seperated file URIs')]
  ]
end
interface_attributes() click to toggle source
# File lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb, line 27
def interface_attributes
  [
    ['compute_network',    _('Select one of available Azure Subnets, must be an ID')],
    ['compute_public_ip',  _('Public IP (None, Static, Dynamic)')],
    ['compute_private_ip', _('Static Private IP (expressed as true or false)')]
  ]
end
mandatory_resource_options() click to toggle source
Calls superclass method
# File lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb, line 52
def mandatory_resource_options
  super + %i[tenant app_ident secret_key sub_id region]
end
name() click to toggle source
# File lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb, line 8
def name
  _('AzureRM')
end
provider_specific_fields() click to toggle source
# File lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb, line 42
def provider_specific_fields
  [
    Fields::Field.new(:label => _('tenant'), :path => [:tenant]),
    Fields::Field.new(:label => _('app_ident'), :path => [:app_ident]),
    Fields::Field.new(:label => _('sub_id'), :path => [:sub_id]),
    Fields::Field.new(:label => _('region'), :path => [:region]),
    Fields::Field.new(:label => _('cloud'), :path => [:cloud])
  ]
end
volume_attributes() click to toggle source
# File lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb, line 35
def volume_attributes
  [
    ['disk_size_gb', _('Volume Size in GB (integer value)')],
    ['data_disk_caching', _('Data Disk Caching (None, ReadOnly, ReadWrite)')]
  ]
end