Saltstack Official OpenSSH 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.

167 line
5.8KB

  1. # yamllint disable rule:indentation rule:line-length
  2. # Ubuntu-20.04
  3. ---
  4. map_jinja:
  5. config_get_roots:
  6. - openssh
  7. - sshd_config
  8. - ssh_config
  9. openssh:
  10. absent_dsa_keys: false
  11. absent_ecdsa_keys: false
  12. absent_ed25519_keys: false
  13. absent_rsa_keys: false
  14. auth:
  15. joe-non-valid-ssh-key:
  16. - comment: obsolete key - removed
  17. enc: ssh-rsa
  18. present: false
  19. source: salt://ssh_keys/joe.no-valid.pub
  20. user: joe
  21. joe-valid-ssh-key-desktop:
  22. - comment: main key - desktop
  23. enc: ssh-rsa
  24. present: true
  25. source: salt://ssh_keys/joe.desktop.pub
  26. user: joe
  27. joe-valid-ssh-key-notebook:
  28. - comment: main key - notebook
  29. enc: ssh-rsa
  30. present: true
  31. source: salt://ssh_keys/joe.netbook.pub
  32. user: joe
  33. auth_map:
  34. personal_keys:
  35. source: salt://ssh_keys
  36. users:
  37. joe:
  38. joe.desktop: {}
  39. joe.netbook:
  40. options: []
  41. joe.no-valid:
  42. present: false
  43. banner: /etc/ssh/banner
  44. banner_src: banner
  45. banner_string: 'Welcome to %{hostname}!
  46. '
  47. client: openssh-client
  48. client_version: latest
  49. dig_pkg: dnsutils
  50. dsa:
  51. private_key: '-----BEGIN DSA PRIVATE KEY-----
  52. NOT_DEFINED
  53. -----END DSA PRIVATE KEY-----
  54. '
  55. public_key: 'ssh-dss NOT_DEFINED
  56. '
  57. ecdsa:
  58. private_key: '-----BEGIN EC PRIVATE KEY-----
  59. NOT_DEFINED
  60. -----END EC PRIVATE KEY-----
  61. '
  62. public_key: 'ecdsa-sha2-nistp256 NOT_DEFINED
  63. '
  64. ed25519:
  65. private_key: '-----BEGIN OPENSSH PRIVATE KEY-----
  66. NOT_DEFINED
  67. -----END OPENSSH PRIVATE KEY-----
  68. '
  69. public_key: 'ssh-ed25519 NOT_DEFINED
  70. '
  71. enforce_rsa_size: false
  72. generate_dsa_keys: false
  73. generate_ecdsa_keys: false
  74. generate_ed25519_keys: false
  75. generate_rsa_keys: false
  76. generate_rsa_size: 4096
  77. host_key_algos: ecdsa,ed25519,rsa
  78. known_hosts:
  79. aliases:
  80. - cname-to-minion.example.org
  81. - alias.example.org
  82. hostnames: false
  83. include_localhost: false
  84. mine_hostname_function: public_ssh_hostname
  85. mine_keys_function: public_ssh_host_keys
  86. omit_ip_address:
  87. - github.com
  88. salt_ssh:
  89. public_ssh_host_keys:
  90. minion.id: 'ssh-rsa [...]
  91. ssh-ed25519 [...]
  92. '
  93. public_ssh_host_names:
  94. minion.id:
  95. - minion.id
  96. - alias.of.minion.id
  97. user: salt-master
  98. static:
  99. github.com: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGm[...]
  100. gitlab.com: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bN[...]
  101. target: '*'
  102. tgt_type: glob
  103. moduli: '# Time Type Tests Tries Size Generator Modulus
  104. 20120821045639 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C604293680B09D63
  105. 20120821045830 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C6042936814C2FFB
  106. 20120821050046 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C60429368214FC53
  107. 20120821050054 2 6 100 2047 5 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C60429368218E83F
  108. '
  109. provide_dsa_keys: false
  110. provide_ecdsa_keys: false
  111. provide_ed25519_keys: false
  112. provide_rsa_keys: false
  113. root_group: root
  114. rsa:
  115. private_key: '-----BEGIN RSA PRIVATE KEY-----
  116. NOT_DEFINED
  117. -----END RSA PRIVATE KEY-----
  118. '
  119. public_key: 'ssh-rsa NOT_DEFINED
  120. '
  121. server: openssh-server
  122. server_version: latest
  123. service: ssh
  124. ssh_config: /etc/ssh/ssh_config
  125. ssh_config_backup: true
  126. ssh_config_group: root
  127. ssh_config_mode: '644'
  128. ssh_config_src: ssh_config
  129. ssh_config_user: root
  130. ssh_known_hosts: /etc/ssh/ssh_known_hosts
  131. ssh_known_hosts_src: ssh_known_hosts
  132. ssh_moduli: /etc/ssh/moduli
  133. sshd_binary: /usr/sbin/sshd
  134. sshd_config: /etc/ssh/sshd_config
  135. sshd_config_backup: true
  136. sshd_config_group: root
  137. sshd_config_mode: '644'
  138. sshd_config_src: sshd_config
  139. sshd_config_user: root
  140. sshd_enable: true
  141. ssh_config:
  142. Hosts:
  143. '*':
  144. GSSAPIAuthentication: 'yes'
  145. HashKnownHosts: 'yes'
  146. SendEnv: LANG LC_*
  147. sshd_config:
  148. AcceptEnv: LANG LC_*
  149. ChallengeResponseAuthentication: 'no'
  150. PrintMotd: 'no'
  151. Subsystem: sftp /usr/lib/openssh/sftp-server
  152. UsePAM: 'yes'
  153. X11Forwarding: 'yes'