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.

178 line
6.3KB

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