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.

184 lines
6.4KB

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