Merge pull request #460 from str1ke/fix-vagrant-ansible-groups

Fix vagrant custom instance name prefix
pull/462/head
Smaine Kahlouch 2016-08-30 15:47:25 +02:00 committed by GitHub
commit 7ac7fc33a7
1 changed files with 3 additions and 3 deletions

6
Vagrantfile vendored
View File

@ -100,11 +100,11 @@ Vagrant.configure("2") do |config|
#ansible.tags = ['download'] #ansible.tags = ['download']
ansible.groups = { ansible.groups = {
# The first three nodes should be etcd servers # The first three nodes should be etcd servers
"etcd" => ["k8s-0[1:3]"], "etcd" => ["#{$instance_name_prefix}-0[1:3]"],
# The first two nodes should be masters # The first two nodes should be masters
"kube-master" => ["k8s-0[1:2]"], "kube-master" => ["#{$instance_name_prefix}-0[1:2]"],
# all nodes should be kube nodes # all nodes should be kube nodes
"kube-node" => ["k8s-0[1:#{$num_instances}]"], "kube-node" => ["#{$instance_name_prefix}-0[1:#{$num_instances}]"],
"k8s-cluster:children" => ["kube-master", "kube-node"], "k8s-cluster:children" => ["kube-master", "kube-node"],
} }
end end