proxmox support improvements

This commit is contained in:
Z. Cliffe Schreuders
2023-01-30 17:48:58 +00:00
parent 3fd6b74bf5
commit 112f7712a9
3 changed files with 12 additions and 3 deletions

View File

@@ -159,6 +159,14 @@ SecGen accepts arguments to change the way that it behaves, the currently implem
--esxi-no-hostname
(Setting the hostname on some boxes can cause vagrant up to fail if the network configuration was not previously cleaned up.)
PROXMOX OPTIONS:
--proxmoxuser [username]
--proxmoxpass [password]
--proxmox-url [api_url]
--proxmox-node [node]
--proxmox-network [proxmox network name]
--proxmox-vlan [vlan number]
COMMANDS:
run, r: Builds project and then builds the VMs
build-project, p: Builds project (vagrant and puppet config), but does not build VMs

View File

@@ -118,7 +118,7 @@ end
proxmox.vm_id_range = 1000..999999999
proxmox.vm_memory = 3000
proxmox.selected_node = 'vprox1'
proxmox.selected_node = '<%= @options[:proxmoxnode] %>'
proxmox.disable_adjust_forwarded_port = true
end
# Proxmox provider end

View File

@@ -2,7 +2,7 @@ require 'getoptlong'
require 'fileutils'
require 'nori'
require 'open3'
require 'nokogiri/class_resolver'
# require 'nokogiri/class_resolver'
require 'nokogiri'
require_relative 'lib/helpers/constants.rb'
@@ -77,6 +77,7 @@ def usage
--proxmox-url [api_url]
--proxmox-node [node]
--proxmox-network [proxmox network name]
--proxmox-vlan [vlan number]
COMMANDS:
run, r: Builds project and then builds the VMs
@@ -617,7 +618,7 @@ opts.each do |opt, arg|
options[:proxmoxurl] = arg
when '--proxmox-node'
Print.info "Proxmox node : #{arg}"
options[:proxmoxurl] = arg
options[:proxmoxnode] = arg
when '--proxmox-network'
Print.info "Proxmox Network Name : #{arg}"
options[:proxmoxnetwork] = arg