Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Make file_cache_path configurable #508

Open
benthorner opened this issue Mar 27, 2017 · 3 comments
Open

Make file_cache_path configurable #508

benthorner opened this issue Mar 27, 2017 · 3 comments

Comments

@benthorner
Copy link

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
Copy link

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

@tpbowden
Copy link

tpbowden commented Mar 27, 2017

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants