Florian Ermisch
8594cd90ba
add optional `{{source}} to ssh_config
7 роки тому
Michael Mol
345e07c85e
Support Match prioritization
OpenSSH's Match declarations are applied first-match-wins. However, we
can't safely define two Matches that might overlap unless we first sort
the keys, as Python (and Jinja) dicts don't guarantee the order of
dict keys,
We also won't scramble the match sequence every time the user adds,
removes or renames a match, and so we give the user clearer, more
concise diffs as when they apply changes.
Finally, we leave a comment on the Match line identifying where the
Match rule came from, to assist in troubleshooting.
7 роки тому
Niels Abspoel
0913827c82
Merge pull request #93 from amendlik/freebsd11-printlastlog
PrintLastLog missing in FreeBSD 11.0
7 роки тому
Adam Mendlik
1284109335
PrintLastLog missing in FreeBSD 11.0
The fix introduced in 678cc9066c
suppresses the PrintLastLog directive for FreeBSD 10.3.
SSH on FreeBSD 11.0 also does not support PrintLastLog, so this
change suppresses it for any version >= 10.3.
7 роки тому
Javier Bértoli
c964121b54
Merge pull request #92 from alxwr/master
Test config before applying it
7 роки тому
Alexander Weidinger
162705c7ce
Test config before applying it
7 роки тому
Javier Bértoli
daf5e9464f
Merge pull request #91 from amendlik/freebsd-wheel-group
FreeBSD wheel group
7 роки тому
Adam Mendlik
7245e1aa32
Add kitchen tests for FreeBSD
7 роки тому
Adam Mendlik
0c363d284e
Update tests for compatibility with recent changes
Commit 038a51cdc8
introduced a change
where the sshd_config file is not managed unless the 'sshd_config'
pillar variable is defined. The kitchen tests did not define that
variable, so they stopped working.
This change sets a default value for 'Port' so the file is managed
by Salt.
7 роки тому
Adam Mendlik
154213560f
Correct typo in .kitchen.yml
This change has no impact on the kitchen tests, but only changes
a symbolic name from 'openssl' to 'openssh' to avoid confusion.
7 роки тому
alxwr
844e96b57b
Merge pull request #88 from alxwr/force_key_length
Opt-in to enforce RSA key length
7 роки тому
alxwr
9fddb0ea2a
Merge pull request #87 from alxwr/auth_map
openssh.auth_map
7 роки тому
Alexander Weidinger
6b23b28f52
Opt-in to enforce RSA key length
7 роки тому
Alexander Weidinger
674216d0ad
openssh.auth_map
7 роки тому
Alexander Weidinger
66c954ed66
Set correct ssh(d)_config_group for *BSD
7 роки тому
Niels Abspoel
4ec97eeb28
Merge pull request #86 from amendlik/file-mode
Add variables for file owner and mode
7 роки тому
amendlik
6d6c7a0ead
Merge branch 'master' into file-mode
7 роки тому
Niels Abspoel
044d4d646b
Merge pull request #81 from leansalt/pillar-example-update
Add secure defaults to pillar.example + secure sshd_config in defaults.yml #66
7 роки тому
Adam Mendlik
b3fd60f016
Test using default permissions for ssh_config
7 роки тому
ek9
038a51cdc8
manage sshd_config and ssh_config only if pillars are defined
7 роки тому
ek9
c03e29a498
remove Kex,MACs,Ciphers from defaults
7 роки тому
ek9
f192b91192
add more verbose warnings regarding ssh_config in pillar.example
7 роки тому
Adam Mendlik
613bea2cac
Add variables for file owner and mode
7 роки тому
Niels Abspoel
b0afda98ed
Merge pull request #85 from amendlik/test-kitchen
Add test-kitchen configuration
7 роки тому
Adam Mendlik
14cc19c941
Add test-kitchen configuration
7 роки тому
Alexander Weidinger
70461403cb
known_hosts: sort IP addresses
in order to prevent unnecessary changes due to
random ordering of dig results.
7 роки тому
Alexander Weidinger
678cc9066c
PrintLastLog missing in FreeBSD 10.3
7 роки тому
ek9
f5a74f3fa0
defaults: enable secure defaults on sshd_config
7 роки тому
ek9
ec796662bc
pillar.example: update with secure defaults for sshd_config and ssh_config
7 роки тому
ek9
d6e48f2b43
rebase based on latest update
8 роки тому
Javier Bértoli
2db9253c45
Merge pull request #82 from pepoluan/allow_list_or_string
Allow list or string for some option, and setting of ConfigBanner
8 роки тому
Javier Bértoli
893b96d023
Merge pull request #83 from llua/redhat
setup sftp correctly on RedHat-like machines
8 роки тому
Eric Cook
f4ea96f9c1
setup sftp correctly on RedHat-like machines
8 роки тому
Pandu E Poluan
18e1866ac5
Update pillar.example
`pillar.example` now contains information on how to use the
'string-or-list' feature for some options.
Also an explanation on the new `ConfigBanner` option.
8 роки тому
Pandu E Poluan
773d9ae092
Apply string-or-list processing to ssh_config
Now ssh_config also accepts string-or-list options, for serveral
keywords.
8 роки тому
Pandu E Poluan
30648d115e
Add macro to handle string or list
Added a macro to handle multivalue options entered in either string
format or list format (with auto joiner).
8 роки тому
Brian Jackson
b9689cedff
Merge pull request #79 from leansalt/server-service-control
Add ability to control SSH server service status (default: on)
8 роки тому
Florian Ermisch
bff3e5d199
Merge pull request #80 from llua/use_pam
do not set UsePAM on OpenBSD
8 роки тому
Eric Cook
686fc2c4ee
do not set UsePAM on OpenBSD
Upstream opensshd does not support PAM
8 роки тому
Forrest
086937b84f
Merge pull request #76 from freach/master
openssh.auth will produce invalid SLS definition if sshd_config configs are missing
8 роки тому
Simon Pirschel
1b69ecab2c
fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config
8 роки тому
Forrest
0c06e247d5
Merge pull request #75 from freach/master
sshd won't start if AddressFamily option is specified
8 роки тому
Simon Pirschel
2a1b8fbc66
fix issue sshd won't start if AddressFamily is specified, because it must be defined before ListenAddress
8 роки тому
Forrest
ec663a6f5e
Merge pull request #51 from mathieupotier/master
Put ssh keys on configured path in sshd_config (AuthorizedKeysFile)
8 роки тому
Forrest
263575e57e
Merge pull request #74 from llua/arch_sftp
fix Subsystem directive on archlinux
8 роки тому
Eric Cook
51fd8b1391
fix Subsystem directive on archlinux
8 роки тому
Forrest
8c1d02f249
Merge pull request #73 from omltorg/updated_archlinux_pkg_name
Update name of package containing dig on ArchLinux
8 роки тому
omltorg
de66dbee97
Update name of package containing dig on ArchLinux
8 роки тому
Forrest
8d1e730907
Merge pull request #72 from kyrias/AuthKeysCmd
Add AuthorizedKeysCommand support
8 роки тому
Johannes Löthberg
a74d859992
Add AuthorizedKeysCommand to pillar.example
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
8 роки тому