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.

преди 11 години
преди 11 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 11 години
преди 11 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. shell: /bin/bash
  17. prime_group:
  18. name: primarygroup
  19. gid: 500
  20. groups:
  21. - users
  22. ssh_key_type: rsa
  23. ssh_keys:
  24. privkey: PRIVATEKEY
  25. pubkey: PUBLICKEY
  26. ssh_auth:
  27. - PUBLICKEY
  28. ssh_auth.absent:
  29. - PUBLICKEY_TO_BE_REMOVED
  30. # Generates an authorized_keys file for the user
  31. # with the given keys
  32. ssh_auth_file:
  33. - PUBLICKEY
  34. # If you prefer to keep public keys as files rather
  35. # than inline in pillar, this works.
  36. ssh_auth_sources:
  37. - salt://keys/buser.id_rsa.pub
  38. google_auth:
  39. ssh: |
  40. SOMEGAUTHHASHVAL
  41. " RESETTING_TIME_SKEW 46956472+2 46991595-2
  42. " RATE_LIMIT 3 30 1415800560
  43. " DISALLOW_REUSE 47193352
  44. " TOTP_AUTH
  45. 11111111
  46. 22222222
  47. 33333333
  48. 44444444
  49. 55555555
  50. ## Absent user
  51. cuser:
  52. absent: True
  53. purge: True
  54. force: True
  55. ## Old syntax of absent_users still supported
  56. absent_users:
  57. - donald
  58. - bad_guy