Launch provision in installer
parent
74f94aa21e
commit
eccf5863e1
|
|
@ -1,17 +1,20 @@
|
||||||
#
|
#
|
||||||
# Fully documented Vagrantfile available
|
# Fully documented Vagrantfile available
|
||||||
# in the wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki
|
# in the wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki
|
||||||
Vagrant.configure('2') do |config|
|
|
||||||
|
|
||||||
|
$script = <<SCRIPT
|
||||||
|
echo "Provisioning with shell script..."
|
||||||
|
cd /vagrant/installer
|
||||||
|
chmod +x ogdhcp_installer.sh && ./ogdhcp_installer.sh
|
||||||
|
SCRIPT
|
||||||
|
|
||||||
|
Vagrant.configure('2') do |config|
|
||||||
config.vm.box = 'dummy'
|
config.vm.box = 'dummy'
|
||||||
VM_TEMPLATE = 'template-ubuntu24'
|
VM_TEMPLATE = 'template-ubuntu24'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Use rsync and NFS synced folders. (or use the option to disable them)
|
# Use rsync and NFS synced folders. (or use the option to disable them)
|
||||||
# https://www.vagrantup.com/docs/synced-folders/
|
# https://www.vagrantup.com/docs/synced-folders/
|
||||||
#config.vm.synced_folder('.', '/vagrant', type: 'rsync')
|
#config.vm.synced_folder('.', '/vagrant', type: 'rsync')
|
||||||
config.vm.synced_folder('.', '/vagrant', type: 'nfs', disabled: true)
|
config.vm.synced_folder('../../', '/vagrant', type: 'nfs', disabled: false)
|
||||||
|
|
||||||
# Vagrant can configure additional network interfaces using a static IP or
|
# Vagrant can configure additional network interfaces using a static IP or
|
||||||
# DHCP. Use public_network or private_network to manually set a static IP and
|
# DHCP. Use public_network or private_network to manually set a static IP and
|
||||||
|
|
@ -31,6 +34,7 @@ Vagrant.configure('2') do |config|
|
||||||
#
|
#
|
||||||
# Provider (esxi) settings
|
# Provider (esxi) settings
|
||||||
#
|
#
|
||||||
|
config.vm.provision 'shell', inline: $script
|
||||||
config.vm.provider :vmware_esxi do |esxi|
|
config.vm.provider :vmware_esxi do |esxi|
|
||||||
|
|
||||||
# REQUIRED! ESXi hostname/IP
|
# REQUIRED! ESXi hostname/IP
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue