Changeset View
Changeset View
Standalone View
Standalone View
Vagrantfile
Show All 10 Lines | puppet_default_facts = { | ||||
"vagrant_testing" => "1", | "vagrant_testing" => "1", | ||||
"testing" => "vagrant", | "testing" => "vagrant", | ||||
"deployment" => "staging", | "deployment" => "staging", | ||||
"subnet" => "vagrant" | "subnet" => "vagrant" | ||||
} | } | ||||
# used to define the local vm template path | # used to define the local vm template path | ||||
puppet_env_path=ENV["SWH_PUPPET_ENVIRONMENT_HOME"] | puppet_env_path=ENV["SWH_PUPPET_ENVIRONMENT_HOME"] | ||||
# Images configuration | # Images/local configuration | ||||
# vbox | |||||
$local_debian10_box = "debian10-20201006-0832" | |||||
$local_debian10_box_url = "file://#{puppet_env_path}/packer/builds/swh-debian-10.6-amd64-20201006-0832.box" | |||||
# libvirt | |||||
$local_debian10_qcow2 = "debian10-20201010-1039" | |||||
$local_debian10_qcow2_url = "file://#{puppet_env_path}/packer/builds/swh-debian-10.6-amd64-20201010-1039.qcow2" | |||||
# Images/remote configuration | |||||
# vbox | |||||
$global_debian10_box = "debian10-20201006-0832" | $global_debian10_box = "debian10-20201006-0832" | ||||
$global_debian10_box_url = "https://annex.softwareheritage.org/public/isos/virtualbox/debian/swh-debian-10.6-amd64-20201006-0832.box" | $global_debian10_box_url = "https://annex.softwareheritage.org/public/isos/virtualbox/debian/swh-debian-10.6-amd64-20201006-0832.box" | ||||
# For local tests | # libvirt | ||||
#$global_debian10_box_url = "file:///path/to/packer/builds/swh-debian-10.6-amd64-20201006-0832.box" | $global_debian10_qcow2 = "debian10-20201010-1039" | ||||
# local configuration | $global_debian10_qcow2_url = "https://annex.softwareheritage.org/public/isos/libvirt/debian/swh-debian-10.6-amd64-20201010-1039.qcow2" | ||||
$local_debian10_qcow2 = "debian10-20201004-1105" | |||||
$local_debian10_qcow2_url = "file://#{puppet_env_path}/packer/builds/swh-debian-10.6-amd64-20201004-1105.qcow2" | |||||
Vagrant.configure("2") do |global_config| | Vagrant.configure("2") do |global_config| | ||||
################ | ################ | ||||
## STAGING | ## STAGING | ||||
################ | ################ | ||||
global_config.vm.define :"staging-webapp" do |config| | global_config.vm.define :"staging-webapp" do |config| | ||||
# config.ssh.insert_key = false | # config.ssh.insert_key = false | ||||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |