Skip to content

Commit 2fc2dce

Browse files
committed
Update orchestration example with inventory file.
1 parent cbf1974 commit 2fc2dce

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

orchestration/Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ VAGRANTFILE_API_VERSION = "2"
55

66
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
77
config.ssh.insert_key = false
8+
config.vm.synced_folder ".", "/vagrant", disabled: true
89
config.vm.provider :virtualbox do |vb|
910
vb.customize ["modifyvm", :id, "--memory", "256"]
1011
end

orchestration/inventory

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Application servers
2+
[app]
3+
192.168.60.4
4+
192.168.60.5
5+
6+
# Database server
7+
[db]
8+
192.168.60.6
9+
10+
# Group 'multi' with all servers
11+
[multi:children]
12+
app
13+
db
14+
15+
# Variables that will be applied to all servers
16+
[multi:vars]
17+
ansible_ssh_user=vagrant
18+
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key

0 commit comments

Comments
 (0)