From: Patrick Donnelly Date: Fri, 23 Sep 2016 03:46:09 +0000 (-0400) Subject: vagrant: add label_prefix setting X-Git-Tag: v1.0.7~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F998%2Fhead;p=ceph-ansible.git vagrant: add label_prefix setting This enables running multiple clusters concurrently in the same Linode account. Linode does not allow machines to have the same label. Signed-off-by: Patrick Donnelly --- diff --git a/Vagrantfile b/Vagrantfile index cba6d4399..6ba143f1e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,7 +9,7 @@ DEBUG = false config_file=File.expand_path(File.join(File.dirname(__FILE__), 'vagrant_variables.yml')) settings=YAML.load_file(config_file) -LABEL_PREFIX = "" +LABEL_PREFIX = settings['label_prefix'] ? settings['label_prefix'] : "" NMONS = settings['mon_vms'] NOSDS = settings['osd_vms'] NMDSS = settings['mds_vms'] diff --git a/vagrant_variables.yml.linode b/vagrant_variables.yml.linode index 60d55860d..80fb5931e 100644 --- a/vagrant_variables.yml.linode +++ b/vagrant_variables.yml.linode @@ -3,6 +3,9 @@ vagrant_box: 'linode' vagrant_box_url: 'https://github.com/displague/vagrant-linode/raw/master/box/linode.box' +# Set a label prefix for the machines in this cluster. (This is useful and necessary when running multiple clusters concurrently.) +#label_prefix: 'foo' + ssh_username: 'vagrant' ssh_private_key_path: '~/.ssh/id_rsa'