Class: HammerCLIForemanAzureRm::ComputeResources::AzureRm
- Inherits:
-
HammerCLIForeman::ComputeResources::Base
- Object
- HammerCLIForeman::ComputeResources::Base
- HammerCLIForemanAzureRm::ComputeResources::AzureRm
- Defined in:
- lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb
Instance Method Summary collapse
- #compute_attributes ⇒ Object
- #interface_attributes ⇒ Object
- #mandatory_resource_options ⇒ Object
- #name ⇒ Object
- #provider_specific_fields ⇒ Object
- #volume_attributes ⇒ Object
Instance Method Details
#compute_attributes ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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 ⇒ Object
27 28 29 30 31 32 33 |
# 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 ⇒ Object
52 53 54 |
# File 'lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb', line 52 def super + %i(tenant app_ident secret_key sub_id region) end |
#name ⇒ Object
8 9 10 |
# File 'lib/hammer_cli_foreman_azure_rm/compute_resources/azure_rm.rb', line 8 def name _('AzureRM') end |
#provider_specific_fields ⇒ Object
42 43 44 45 46 47 48 49 50 |
# 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 ⇒ Object
35 36 37 38 39 40 |
# 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 |