ssh.sls 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ssh:
  2. keys:
  3. #
  4. # <user ID>:
  5. # pubkeys:
  6. # - "<ssh public key string>"
  7. # - "<optional 2nd public key>"
  8. # access:
  9. #
  10. # Option 1: Access for <username> on all nodes
  11. #
  12. # <username>: global
  13. #
  14. # Option 2: Access for <username> on list of given nodes:
  15. #
  16. # <username>:
  17. # nodes:
  18. # - node1.in.ffho.net
  19. # - node2.in.ffho.net
  20. #
  21. # Option 3: Access as <username> on all nodes matching at least one of tht
  22. # given roles:
  23. #
  24. # <username>:
  25. # roles:
  26. # - webserver
  27. # - router
  28. #
  29. #
  30. # Examples:
  31. #
  32. max:
  33. pubkeys:
  34. - "ssh-rsa ABC max@pandora"
  35. access:
  36. root: global
  37. karsten:
  38. pubkeys:
  39. - "ssh-rsa ACBDE kb-light@leo-loewe"
  40. access:
  41. root:
  42. global: true
  43. build:
  44. nodes:
  45. - masterbuilder.in.ffho.net
  46. webmaster:
  47. pubkeys:
  48. - "ssh-rsa AAAfoo webmaster@apache"
  49. access:
  50. root:
  51. roles:
  52. - webserver
  53. nodes:
  54. - fe01.in.ffho.net