Saltstack Official Users Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

11 лет назад
10 лет назад
8 лет назад
9 лет назад
8 лет назад
9 лет назад
8 лет назад
9 лет назад
8 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. =====
  2. users
  3. =====
  4. Formula to configure users via pillar.
  5. .. note::
  6. See the full `Salt Formulas installation and usage instructions
  7. <http://docs.saltstack.com/topics/development/conventions/formulas.html>`_.
  8. Available states
  9. ================
  10. .. contents::
  11. :local:
  12. ``users``
  13. ---------
  14. Configures a user's home directory, group, the user itself, secondary groups,
  15. and associated keys. Also configures sudo access, and absent users.
  16. ``users.sudo``
  17. --------------
  18. Ensures the sudo group exists, the sudo package is installed and the sudo file
  19. is configured.
  20. ``users.bashrc``
  21. ----------------
  22. Ensures the bashrc file exists in the users home directory. Sets 'manage_bashrc:
  23. True' in pillar per user. Defaults to False.
  24. ``users.profile``
  25. ----------------
  26. Ensures the profile file exists in the users home directory. Sets 'manage_profile:
  27. True' in pillar per user. Defaults to False.
  28. ``users.vimrc``
  29. ---------------
  30. Ensures the vimrc file exists in the users home directory. Sets 'manage_vimrc:
  31. True' in pillar per user. Defaults to False.
  32. This depends on the vim-formula to be installed.
  33. ``users.user_files``
  34. ---------------
  35. Permits the abitrary management of files. See pillar.example for configuration details.
  36. Overriding default values
  37. =========================
  38. In order to separate actual user account definitions from configuration the pillar ``users-formula`` was introduced:
  39. .. code-block:: yaml
  40. users:
  41. myuser:
  42. # stuff
  43. users-formula:
  44. lookup:
  45. root_group: toor
  46. shell: '/bin/zsh'