use-salt-user-for-master.patch 921 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Index: salt-2015.8.0/conf/master
  2. ===================================================================
  3. --- salt-2015.8.0.orig/conf/master
  4. +++ salt-2015.8.0/conf/master
  5. @@ -25,7 +25,7 @@
  6. # permissions to allow the specified user to run the master. The exception is
  7. # the job cache, which must be deleted if this user is changed. If the
  8. # modified files cause conflicts, set verify_env to False.
  9. -#user: root
  10. +user: salt
  11. # Max open files
  12. #
  13. Index: salt-2015.8.0/pkg/salt-common.logrotate
  14. ===================================================================
  15. --- salt-2015.8.0.orig/pkg/salt-common.logrotate
  16. +++ salt-2015.8.0/pkg/salt-common.logrotate
  17. @@ -1,4 +1,5 @@
  18. /var/log/salt/master {
  19. + su salt salt
  20. weekly
  21. missingok
  22. rotate 7
  23. @@ -7,6 +8,7 @@
  24. }
  25. /var/log/salt/minion {
  26. + su salt salt
  27. weekly
  28. missingok
  29. rotate 7
  30. @@ -15,6 +17,7 @@
  31. }
  32. /var/log/salt/key {
  33. + su salt salt
  34. weekly
  35. missingok
  36. rotate 7