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 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # You can inline the private keys ...
  26. ssh_keys:
  27. privkey: PRIVATEKEY
  28. pubkey: PUBLICKEY
  29. # ... or you can pull them from a different pillar,
  30. # for example one called "ssh_keys":
  31. ssh_keys_pillar:
  32. id_rsa: "ssh_keys"
  33. another_key_pair: "ssh_keys"
  34. ssh_auth:
  35. - PUBLICKEY
  36. ssh_auth.absent:
  37. - PUBLICKEY_TO_BE_REMOVED
  38. # Generates an authorized_keys file for the user
  39. # with the given keys
  40. ssh_auth_file:
  41. - PUBLICKEY
  42. # If you prefer to keep public keys as files rather
  43. # than inline in pillar, this works.
  44. ssh_auth_sources:
  45. - salt://keys/buser.id_rsa.pub
  46. google_auth:
  47. ssh: |
  48. SOMEGAUTHHASHVAL
  49. " RESETTING_TIME_SKEW 46956472+2 46991595-2
  50. " RATE_LIMIT 3 30 1415800560
  51. " DISALLOW_REUSE 47193352
  52. " TOTP_AUTH
  53. 11111111
  54. 22222222
  55. 33333333
  56. 44444444
  57. 55555555
  58. ## Absent user
  59. cuser:
  60. absent: True
  61. purge: True
  62. force: True
  63. ## Old syntax of absent_users still supported
  64. absent_users:
  65. - donald
  66. - bad_guy