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 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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_auth:
  60. ssh: |
  61. SOMEGAUTHHASHVAL
  62. " RESETTING_TIME_SKEW 46956472+2 46991595-2
  63. " RATE_LIMIT 3 30 1415800560
  64. " DISALLOW_REUSE 47193352
  65. " TOTP_AUTH
  66. 11111111
  67. 22222222
  68. 33333333
  69. 44444444
  70. 55555555
  71. ## Absent user
  72. cuser:
  73. absent: True
  74. purge: True
  75. force: True
  76. ## Old syntax of absent_users still supported
  77. absent_users:
  78. - donald
  79. - bad_guy