Merge pull request #2290 from ianheggie/fix_provision_permissions_error_on_bootstrap
provisioners/salt: remove bootstrap definition on each run
This commit is contained in:
commit
efdffcdf2b
|
@ -193,6 +193,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
bootstrap_path = get_bootstrap
|
bootstrap_path = get_bootstrap
|
||||||
bootstrap_destination = File.join(config_dir, "bootstrap_salt.sh")
|
bootstrap_destination = File.join(config_dir, "bootstrap_salt.sh")
|
||||||
|
@machine.communicate.sudo("rm -f %s" % bootstrap_destination)
|
||||||
@machine.communicate.upload(bootstrap_path.to_s, bootstrap_destination)
|
@machine.communicate.upload(bootstrap_path.to_s, bootstrap_destination)
|
||||||
@machine.communicate.sudo("chmod +x %s" % bootstrap_destination)
|
@machine.communicate.sudo("chmod +x %s" % bootstrap_destination)
|
||||||
bootstrap = @machine.communicate.sudo("%s %s" % [bootstrap_destination, options]) do |type, data|
|
bootstrap = @machine.communicate.sudo("%s %s" % [bootstrap_destination, options]) do |type, data|
|
||||||
|
|
Loading…
Reference in New Issue