provisioners/chef: create/chown backup folders [GH-2281]
This commit is contained in:
parent
d354cdda4a
commit
3df245f1fd
|
@ -89,6 +89,7 @@ BUG FIXES:
|
||||||
failure during `up` from suspended. [GH-2479]
|
failure during `up` from suspended. [GH-2479]
|
||||||
- provisioners/chef: Chef client encrypted data bag secrets are now
|
- provisioners/chef: Chef client encrypted data bag secrets are now
|
||||||
uploaded to the provisioning path to avoid perm issues. [GH-1246]
|
uploaded to the provisioning path to avoid perm issues. [GH-1246]
|
||||||
|
- provisioners/chef: Create/chown the cache and backup folders. [GH-2281]
|
||||||
- provisioners/chef: Verify environment paths exist in config
|
- provisioners/chef: Verify environment paths exist in config
|
||||||
validation step. [GH-2381]
|
validation step. [GH-2381]
|
||||||
- provisioners/salt: Bootstrap on FreeBSD systems work. [GH-2525]
|
- provisioners/salt: Bootstrap on FreeBSD systems work. [GH-2525]
|
||||||
|
|
|
@ -40,9 +40,15 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def chown_provisioning_folder
|
def chown_provisioning_folder
|
||||||
|
paths = [@config.provisioning_path,
|
||||||
|
@config.file_backup_pach,
|
||||||
|
@config.file_cache_path]
|
||||||
|
|
||||||
@machine.communicate.tap do |comm|
|
@machine.communicate.tap do |comm|
|
||||||
comm.sudo("mkdir -p #{@config.provisioning_path}")
|
paths.each do |path|
|
||||||
comm.sudo("chown #{@machine.ssh_info[:username]} #{@config.provisioning_path}")
|
comm.sudo("mkdir -p #{path}")
|
||||||
|
comm.sudo("chown #{@machine.ssh_info[:username]} #{path}")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue