Saltstack Official OpenSSH Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

186 lines
6.5KB

  1. # yamllint disable rule:indentation rule:line-length
  2. # Amazon Linux AMI-2018
  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: openssh-clients
  57. client_version: latest
  58. dig_pkg: bind-utils
  59. dsa:
  60. private_key: '-----BEGIN DSA PRIVATE KEY-----
  61. NOT_DEFINED
  62. -----END DSA PRIVATE KEY-----
  63. '
  64. public_key: 'ssh-dss NOT_DEFINED
  65. '
  66. ecdsa:
  67. private_key: '-----BEGIN EC PRIVATE KEY-----
  68. NOT_DEFINED
  69. -----END EC PRIVATE KEY-----
  70. '
  71. public_key: 'ecdsa-sha2-nistp256 NOT_DEFINED
  72. '
  73. ed25519:
  74. private_key: '-----BEGIN OPENSSH PRIVATE KEY-----
  75. NOT_DEFINED
  76. -----END OPENSSH PRIVATE KEY-----
  77. '
  78. public_key: 'ssh-ed25519 NOT_DEFINED
  79. '
  80. enforce_rsa_size: false
  81. generate_dsa_keys: false
  82. generate_ecdsa_keys: false
  83. generate_ed25519_keys: false
  84. generate_rsa_keys: false
  85. generate_rsa_size: 4096
  86. host_key_algos: ecdsa,ed25519,rsa
  87. known_hosts:
  88. aliases:
  89. - cname-to-minion.example.org
  90. - alias.example.org
  91. hostnames: false
  92. include_localhost: false
  93. mine_hostname_function: public_ssh_hostname
  94. mine_keys_function: public_ssh_host_keys
  95. omit_ip_address:
  96. - github.com
  97. salt_ssh:
  98. public_ssh_host_keys:
  99. minion.id: 'ssh-rsa [...]
  100. ssh-ed25519 [...]
  101. '
  102. public_ssh_host_names:
  103. minion.id:
  104. - minion.id
  105. - alias.of.minion.id
  106. user: salt-master
  107. static:
  108. github.com: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGm[...]
  109. gitlab.com: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bN[...]
  110. target: '*'
  111. tgt_type: glob
  112. moduli: '# Time Type Tests Tries Size Generator Modulus
  113. 20120821045639 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C604293680B09D63
  114. 20120821045830 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C6042936814C2FFB
  115. 20120821050046 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C60429368214FC53
  116. 20120821050054 2 6 100 2047 5 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C60429368218E83F
  117. '
  118. provide_dsa_keys: false
  119. provide_ecdsa_keys: false
  120. provide_ed25519_keys: false
  121. provide_rsa_keys: false
  122. root_group: root
  123. rsa:
  124. private_key: '-----BEGIN RSA PRIVATE KEY-----
  125. NOT_DEFINED
  126. -----END RSA PRIVATE KEY-----
  127. '
  128. public_key: 'ssh-rsa NOT_DEFINED
  129. '
  130. server: openssh-server
  131. server_version: latest
  132. service: sshd
  133. ssh_config: /etc/ssh/ssh_config
  134. ssh_config_backup: true
  135. ssh_config_group: root
  136. ssh_config_mode: '644'
  137. ssh_config_src: ssh_config
  138. ssh_config_user: root
  139. ssh_known_hosts: /etc/ssh/ssh_known_hosts
  140. ssh_known_hosts_src: ssh_known_hosts
  141. ssh_moduli: /etc/ssh/moduli
  142. sshd_binary: /usr/sbin/sshd
  143. sshd_config: /etc/ssh/sshd_config
  144. sshd_config_backup: true
  145. sshd_config_group: root
  146. sshd_config_mode: '644'
  147. sshd_config_src: sshd_config
  148. sshd_config_user: root
  149. sshd_enable: true
  150. tofs:
  151. source_files:
  152. manage ssh_known_hosts file:
  153. - alt_ssh_known_hosts
  154. ssh_config:
  155. - alt_ssh_config
  156. sshd_banner:
  157. - fire_banner
  158. sshd_config:
  159. - alt_sshd_config
  160. ssh_config:
  161. Hosts:
  162. '*':
  163. GSSAPIAuthentication: 'yes'
  164. HashKnownHosts: 'yes'
  165. SendEnv: LANG LC_*
  166. sshd_config:
  167. AcceptEnv: LANG LC_*
  168. ChallengeResponseAuthentication: 'no'
  169. PrintMotd: 'no'
  170. Subsystem: sftp /usr/lib/openssh/sftp-server
  171. UsePAM: 'yes'
  172. X11Forwarding: 'yes'