Merge pull request #998 from batrick/vagrant-label-prefix

vagrant: add label_prefix setting
pull/1001/head
Leseb 2016-09-29 14:43:13 +02:00 committed by GitHub
commit 1a7d1ca6bf
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')) config_file=File.expand_path(File.join(File.dirname(__FILE__), 'vagrant_variables.yml'))
settings=YAML.load_file(config_file) settings=YAML.load_file(config_file)
LABEL_PREFIX = "" LABEL_PREFIX = settings['label_prefix'] ? settings['label_prefix'] : ""
NMONS = settings['mon_vms'] NMONS = settings['mon_vms']
NOSDS = settings['osd_vms'] NOSDS = settings['osd_vms']
NMDSS = settings['mds_vms'] NMDSS = settings['mds_vms']

View File

@ -3,6 +3,9 @@
vagrant_box: 'linode' vagrant_box: 'linode'
vagrant_box_url: 'https://github.com/displague/vagrant-linode/raw/master/box/linode.box' 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_username: 'vagrant'
ssh_private_key_path: '~/.ssh/id_rsa' ssh_private_key_path: '~/.ssh/id_rsa'