-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
27 lines (21 loc) · 959 Bytes
/
Vagrantfile
File metadata and controls
27 lines (21 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
SSH_KEY_PATH = '~/.ssh/id_rsa'
Vagrant.configure("2") do |config|
config.vm.define "vagrant-datane" do |datane|
datane.vm.box = "ubuntu/jammy64"
datane.vm.hostname = "vagrant-datane"
datane.vm.network "private_network", ip: "192.168.56.200"
datane.ssh.insert_key = false
datane.ssh.private_key_path = ['~/.vagrant.d/insecure_private_key', SSH_KEY_PATH]
datane.vm.provision "file", source: "#{SSH_KEY_PATH}.pub", destination: "~/.ssh/authorized_keys"
end
config.vm.define "vagrant-monitoring" do |datane|
datane.vm.box = "ubuntu/jammy64"
datane.vm.hostname = "vagrant-monitoring"
datane.vm.network "private_network", ip: "192.168.56.201"
datane.ssh.insert_key = false
datane.ssh.private_key_path = ['~/.vagrant.d/insecure_private_key', SSH_KEY_PATH]
datane.vm.provision "file", source: "#{SSH_KEY_PATH}.pub", destination: "~/.ssh/authorized_keys"
end
end