Sha256: 345df45728f6cdbf4e1b6e4b2449c3d6fe4d8482f614ef2bcefa52d45a195c1a
Contents?: true
Size: 781 Bytes
Versions: 5
Compression:
Stored size: 781 Bytes
Contents
module HammerCLIForeman module ComputeResources class OpenStack < Base def name 'OpenStack' end def compute_attributes %w[availability_zone boot_from_volume flavor_ref image_ref tenant_id security_groups network] end 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 def mandatory_resource_options super + %i[url user password] end end HammerCLIForeman.register_compute_resource('openstack', OpenStack.new) end end
Version data entries
5 entries across 5 versions & 1 rubygems