Saltstack Official Users Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3KB

  1. users:
  2. ## Minimal required pillar values
  3. auser:
  4. fullname: A User
  5. ## Full list of pillar values
  6. buser:
  7. fullname: B User
  8. password: $6$w.............
  9. home: /custom/buser
  10. createhome: True
  11. expire: 16426
  12. sudouser: True
  13. sudo_rules:
  14. - ALL=(root) /usr/bin/find
  15. - ALL=(otheruser) /usr/bin/script.sh
  16. sudo_defaults:
  17. - !requiretty
  18. shell: /bin/bash
  19. prime_group:
  20. name: primarygroup
  21. gid: 500
  22. groups:
  23. - users
  24. ssh_key_type: rsa
  25. ssh_keys:
  26. privkey: PRIVATEKEY
  27. pubkey: PUBLICKEY
  28. ssh_auth:
  29. - PUBLICKEY
  30. ssh_auth.absent:
  31. - PUBLICKEY_TO_BE_REMOVED
  32. # Generates an authorized_keys file for the user
  33. # with the given keys
  34. ssh_auth_file:
  35. - PUBLICKEY
  36. # If you prefer to keep public keys as files rather
  37. # than inline in pillar, this works.
  38. ssh_auth_sources:
  39. - salt://keys/buser.id_rsa.pub
  40. google_auth:
  41. ssh: |
  42. SOMEGAUTHHASHVAL
  43. " RESETTING_TIME_SKEW 46956472+2 46991595-2
  44. " RATE_LIMIT 3 30 1415800560
  45. " DISALLOW_REUSE 47193352
  46. " TOTP_AUTH
  47. 11111111
  48. 22222222
  49. 33333333
  50. 44444444
  51. 55555555
  52. ## Absent user
  53. cuser:
  54. absent: True
  55. purge: True
  56. force: True
  57. ## Old syntax of absent_users still supported
  58. absent_users:
  59. - donald
  60. - bad_guy