Browse Source

Merge pull request #3097 from sdemura/vagrantfile-playbook

Define custom playbook in Vagrantfile
pull/3100/merge
Chad Swenson 6 years ago
committed by GitHub
parent
commit
238f04c931
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. 4
      Vagrantfile

4
Vagrantfile

@ -44,6 +44,8 @@ $kube_node_instances_with_disks = false
$kube_node_instances_with_disks_size = "20G"
$kube_node_instances_with_disks_number = 2
$playbook = "cluster.yml"
$local_release_dir = "/vagrant/temp"
host_vars = {}
@ -157,7 +159,7 @@ Vagrant.configure("2") do |config|
# when all the machines are up and ready.
if i == $num_instances
config.vm.provision "ansible" do |ansible|
ansible.playbook = "cluster.yml"
ansible.playbook = $playbook
if File.exist?(File.join(File.dirname($inventory), "hosts"))
ansible.inventory_path = $inventory
end

Loading…
Cancel
Save