Skip to content

Commit

Permalink
proxmox support improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffe committed Jan 30, 2023
1 parent 3fd6b74 commit 112f771
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/Vagrantfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions secgen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'fileutils'
require 'nori'
require 'open3'
require 'nokogiri/class_resolver'
# require 'nokogiri/class_resolver'
require 'nokogiri'

require_relative 'lib/helpers/constants.rb'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -617,7 +618,7 @@ def show_running_time(beginning_time)
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
Expand Down

0 comments on commit 112f771

Please sign in to comment.