Skip to content
Snippets Groups Projects
Unverified Commit 238f04c9 authored by Chad Swenson's avatar Chad Swenson Committed by GitHub
Browse files

Merge pull request #3097 from sdemura/vagrantfile-playbook

Define custom playbook in Vagrantfile
parents 3a85a2f8 80c87db1
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,8 @@ $kube_node_instances_with_disks = false ...@@ -44,6 +44,8 @@ $kube_node_instances_with_disks = false
$kube_node_instances_with_disks_size = "20G" $kube_node_instances_with_disks_size = "20G"
$kube_node_instances_with_disks_number = 2 $kube_node_instances_with_disks_number = 2
$playbook = "cluster.yml"
$local_release_dir = "/vagrant/temp" $local_release_dir = "/vagrant/temp"
host_vars = {} host_vars = {}
...@@ -157,7 +159,7 @@ Vagrant.configure("2") do |config| ...@@ -157,7 +159,7 @@ Vagrant.configure("2") do |config|
# when all the machines are up and ready. # when all the machines are up and ready.
if i == $num_instances if i == $num_instances
config.vm.provision "ansible" do |ansible| config.vm.provision "ansible" do |ansible|
ansible.playbook = "cluster.yml" ansible.playbook = $playbook
if File.exist?(File.join(File.dirname($inventory), "hosts")) if File.exist?(File.join(File.dirname($inventory), "hosts"))
ansible.inventory_path = $inventory ansible.inventory_path = $inventory
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment