Module: ProxmoxComputeControllersHelper

Defined in:
app/helpers/proxmox_compute_controllers_helper.rb

Overview

You should have received a copy of the GNU General Public License along with ForemanFogProxmox. If not, see <www.gnu.org/licenses/>.

Instance Method Summary collapse

Instance Method Details

#proxmox_controllers_cloudinit_mapObject



26
27
28
29
30
# File 'app/helpers/proxmox_compute_controllers_helper.rb', line 26

def proxmox_controllers_cloudinit_map
  [ForemanFogProxmox::OptionsSelect.new(id: 'ide', name: 'IDE', range: 3),
   ForemanFogProxmox::OptionsSelect.new(id: 'sata', name: 'SATA', range: 5),
   ForemanFogProxmox::OptionsSelect.new(id: 'scsi', name: 'SCSI', range: 13)]
end

#proxmox_controllers_mapObject



21
22
23
24
# File 'app/helpers/proxmox_compute_controllers_helper.rb', line 21

def proxmox_controllers_map
  proxmox_controllers_cloudinit_map << ForemanFogProxmox::OptionsSelect.new(name: 'VirtIO Block', id: 'virtio',
    range: 15)
end

#proxmox_scsi_controllers_mapObject



32
33
34
35
36
37
38
39
# File 'app/helpers/proxmox_compute_controllers_helper.rb', line 32

def proxmox_scsi_controllers_map
  [OpenStruct.new(id: 'lsi', name: 'LSI 53C895A (Default)'),
   OpenStruct.new(id: 'lsi53c810', name: 'LSI 53C810'),
   OpenStruct.new(id: 'virtio-scsi-pci', name: 'VirtIO SCSI'),
   OpenStruct.new(id: 'virtio-scsi-single', name: 'VirtIO SCSI Single'),
   OpenStruct.new(id: 'megasas', name: 'MegaRAID SAS 8708EM2'),
   OpenStruct.new(id: 'pvscsi', name: 'VMware PVSCSI')]
end