matschaffer / knife-solo

DEPRECATED: Please consider using https://knife-zero.github.io/, ansible, or visit https://www.chef.io/ for other ideas
MIT License
786 stars 213 forks source link

Make file_cache_path configurable #508

Open benthorner opened 7 years ago

benthorner commented 7 years ago

Currently the local-mode-cache directory is hard-coded to be under the 'provisioner-path', which is normally the user's home directory. This causes issues for a team environment: multiple copies of cached files; unnecessary re-installations of cached binaries.

Changing the whole 'provisioner-path' could cause permission issues, but can we make the local-mode-cache directory configurable? It's owned by root and only accessed by chef-client, so there shouldn't be any permission problems from (optionally) moving it to a global system location.

tpbowden commented 7 years ago

Yes I agree this would be useful for deploying across multiple user accounts.

tpbowden commented 7 years ago

Would it be possible to read this from your local .chef/knife.rb and then write it to knife-solo/lib/knife-solo/resources/solo.rb.erb like how proxies are set?

matschaffer commented 7 years ago

Seems like a reasonable thing to make configurable. Especially given some precident.