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 <pdonnell@redhat.com>
pull/998/head
Patrick Donnelly 2016-09-22 23:46:09 -04:00
parent d7699672a8
commit f0a7a250b0
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB
2 changed files with 4 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -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']

View File

@ -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'