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 години
преди 11 години
преди 10 години
преди 10 години
преди 11 години
преди 11 години
преди 11 години
преди 9 години
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. manage_vimrc: False
  12. manage_bashrc: False
  13. expire: 16426
  14. sudouser: True
  15. sudo_rules:
  16. - ALL=(root) /usr/bin/find
  17. - ALL=(otheruser) /usr/bin/script.sh
  18. sudo_defaults:
  19. - '!requiretty'
  20. shell: /bin/bash
  21. prime_group:
  22. name: primarygroup
  23. gid: 500
  24. groups:
  25. - users
  26. ssh_key_type: rsa
  27. # You can inline the private keys ...
  28. ssh_keys:
  29. privkey: PRIVATEKEY
  30. pubkey: PUBLICKEY
  31. # ... or you can pull them from a different pillar,
  32. # for example one called "ssh_keys":
  33. ssh_keys_pillar:
  34. id_rsa: "ssh_keys"
  35. another_key_pair: "ssh_keys"
  36. ssh_auth:
  37. - PUBLICKEY
  38. ssh_auth.absent:
  39. - PUBLICKEY_TO_BE_REMOVED
  40. # Generates an authorized_keys file for the user
  41. # with the given keys
  42. ssh_auth_file:
  43. - PUBLICKEY
  44. # If you prefer to keep public keys as files rather
  45. # than inline in pillar, this works.
  46. ssh_auth_sources:
  47. - salt://keys/buser.id_rsa.pub
  48. # Manage the ~/.ssh/config file
  49. ssh_config:
  50. all:
  51. hostname: "*"
  52. options:
  53. - "StrictHostKeyChecking no"
  54. - "UserKnownHostsFile=/dev/null"
  55. importanthost:
  56. hostname: "needcheck.example.com"
  57. options:
  58. - "StrictHostKeyChecking yes"
  59. google_2fa: True
  60. google_auth:
  61. ssh: |
  62. SOMEGAUTHHASHVAL
  63. " RESETTING_TIME_SKEW 46956472+2 46991595-2
  64. " RATE_LIMIT 3 30 1415800560
  65. " DISALLOW_REUSE 47193352
  66. " TOTP_AUTH
  67. 11111111
  68. 22222222
  69. 33333333
  70. 44444444
  71. 55555555
  72. ## Absent user
  73. cuser:
  74. absent: True
  75. purge: True
  76. force: True
  77. ## Old syntax of absent_users still supported
  78. absent_users:
  79. - donald
  80. - bad_guy