forked from marsante/MedShakeEHR-Ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
28 lines (24 loc) · 904 Bytes
/
Vagrantfile
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
28
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
# Custom ssh key
config.ssh.insert_key = false
config.ssh.private_key_path = ["~/.ssh/id_rsa", "~/.vagrant.d/insecure_private_key"]
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys"
# custom VM config
config.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 1
end
config.vm.define 'medshakeansible' do |node|
node.vm.hostname ='msehr.local'
node.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
ansible.become = true
ansible.become_user = "root"
end
# Configure private network
config.vm.network "private_network", ip: "55.55.55.5"
# or public network, for Phonecapture or VPN functionality
#config.vm.network "public_network"
end
end