EOF
SCRIPT
+PREPARE_SSH_SCRIPT = <<SCRIPT
+echo host_shell ...
+SCRIPT
+
#
# The vagrant machine definitions
#
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder ".", "/vagrant", disabled: true
+ config.vm.synced_folder "conf", "/vagrant-conf"
#if Vagrant.has_plugin?("vagrant-cachier")
# config.cache.scope = :machine
# just let one node do the probing
probing = false
+ preparing_ssh = false
+
vms.each do |machine|
config.vm.define machine[:hostname] do |node|
node.vm.box = machine[:provider][:libvirt][:box]
### s.args = [ '/gluster/gv0', '/gluster/gv1' ]
###end
+ #
+ # prepare password-less ssh between the nodes for root
+ #
+ if !preparing_ssh
+ preparing_ssh = true
+ node.vm.provision :host_shell do |host_shell|
+ host_shell.inline = PREPARE_SSH_SCRIPT
+ end
+ end
+
+
# multiple privisioners with same name possible?
node.vm.provision "xfs_0", type: "shell" do |s|
s.path = "provision/shell/gluster/create-brick.sh"