From bfd6bf430e3c47c996c9d51ae3ee641a093240c5 Mon Sep 17 00:00:00 2001 From: Andrey Sokolov Date: Fri, 19 Aug 2016 20:45:18 +0600 Subject: [PATCH] Fix vagrant custom instance name prefix --- Vagrantfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index e7efdda57..44f80db8c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -100,11 +100,11 @@ Vagrant.configure("2") do |config| #ansible.tags = ['download'] ansible.groups = { # 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 - "kube-master" => ["k8s-0[1:2]"], + "kube-master" => ["#{$instance_name_prefix}-0[1:2]"], # 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"], } end