> Yes, this is a problem, the problem with solution 1 is that salt supports
> running multiple master and minions on one piece of hardware, and they
> could all be running as different users.
>
> I like 2, since it does not begin to introduce constraints about how the
> systems are run
>
> 3, is right out :) because in the long run I would like it very much if the
> salt master was never run as root.
>
> In the end, I think that the solution is to document this, and then when a
> user runs salt, if they don't have rights to the primary locations then it
> should fall back to a location in the user's home directory
>
> thoughts?
I don't really like 2 (just document it) as i wanted to run salt-master
per default as a non-root user in Debian. This would mean we would have
to adjust pkidir/cache_dir for the minion&master but i'd like to change
as less as possible. I think the best solution is to change the
verification as Jeff suggested, e.g:
1) If the directory/file exists and is readable by the minion do nothing
2) If the director/file exists and is not readable - abort and log
3) If the directory/file does not exist create one with the correct
permissions
Ulrich