voxpupuli / onceover

Your gateway drug to automated infrastructure testing with Puppet
Apache License 2.0
142 stars 45 forks source link

Permission denied when running on server where r10k has run as root #96

Closed sandymcp closed 6 years ago

sandymcp commented 7 years ago

Got a permission denied in /var/cache/r10k when running onceover-run-spec, because the cache was owned by root. Not really a bug I suppose, because a quick chmod -R fixes it, but might be nice to have the option to use a user level cache (or did I miss something in the docs)

dylanratcliffe commented 7 years ago

It's not documented but you could use r10k's config file. Onceover doesn't currently support passing a file to r10k for it to use as its config, but if you put an r10k.yaml in the root of the controlrepo as documented here, the setting you are looking for is cachedir, it should work. Does that solve the issue?

sandymcp commented 7 years ago

I'll try it out.

dylanratcliffe commented 6 years ago

Onceover may start managing r10k's cache itself as part of efforts to improve caching \, if so this will be fixed. Until that point it will have to be chmod -R