]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
vagrant: add label_prefix setting 998/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 23 Sep 2016 03:46:09 +0000 (23:46 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 23 Sep 2016 17:50:12 +0000 (13:50 -0400)
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>
Vagrantfile
vagrant_variables.yml.linode

index cba6d43995d13f9751f3b868fbabfdb9e78438d8..6ba143f1e53a976198e0c63010b9140f9746e585 100644 (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']
index 60d55860d851befe943da432337db041e83d8241..80fb5931ee587e627c1dafdce91521f94234a9c6 100644 (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'