class HammerCLIForeman::ComputeResources::OpenStack

Public Instance Methods

compute_attributes() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/openstack.rb, line 8
def compute_attributes
  %w[availability_zone boot_from_volume flavor_ref image_ref tenant_id security_groups network]
end
mandatory_resource_options() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/openstack.rb, line 20
def mandatory_resource_options
  super + %i[url user password]
end
name() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/openstack.rb, line 4
def name
  'OpenStack'
end
provider_specific_fields() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/openstack.rb, line 12
def provider_specific_fields
  super + [
    Fields::Field.new(:label => _('Tenant'), :path => [:tenant]),
    Fields::Field.new(:label => _('Project domain name'), :path => [:project_domain_name]),
    Fields::Field.new(:label => _('Project domain ID'), :path => [:project_domain_id])
  ]
end
provider_vm_specific_fields() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/openstack.rb, line 24
def provider_vm_specific_fields
  [
    Fields::Field.new(:label => _('State'), :path => [:state]),
    Fields::Field.new(:label => _('Tenant Id'), :path => [:tenant_id])
  ]
end