Saltstack Official Users Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

72 Zeilen
1.6KB

  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