-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
16 lines (15 loc) · 863 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004"
config.vm.synced_folder "./", "/vagrant", disabled: false
config.vm.provision "build-env", type: "shell", :path => "scripts/provision-build-env.sh", privileged: false
config.vm.provision "install-ansible", type: "shell", :path => "scripts/provision-ansible.sh", privileged: false
config.vm.provision "packer-plugin-arm-image", type: "shell", :path => "scripts/provision-packer-plugin-arm-image.sh", privileged: false
config.vm.provision "build-image", type: "shell", :path => "scripts/provision-build-image.sh", privileged: false, env: {
"PACKERFILE" => "printer.pkr.hcl",
"PKR_VAR_wifi_ssid" => ENV["WIFI_SSID"],
"PKR_VAR_wifi_password" => ENV["WIFI_PASSWORD"],
"PKR_VAR_ssh_public_key" => ENV["SSH_PUBLIC_KEY"]
}
end