Added self-service script (for webserver)

This commit is contained in:
2022-02-17 14:19:42 +01:00
parent dd3fa5f344
commit d92076dacd
4 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.ssh.private_key_path = ["./.ssh/id_rsa","~/.vagrant.d/insecure_private_key"]
config.vm.define "#{customerName}-bloated-debian-web01" do |web01|
web01.vm.box = "ubuntu/focal64"
web01.vm.hostname = "#{customerName}-bloated-debian-web01"
web01.vm.network :private_network, ip: "#{ipAddr}" # "192.168.56.12"
web01.vm.provision "file", source: "./.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys"
web01.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.gui = false
vb.name = "#{customerName}-bloated-debian-web01"
end
end
end

View File

@ -0,0 +1,4 @@
[defaults]
private_key_file = "./.ssh/id_rsa"
remote_user = "vagrant"
inventory = ./inventory