openssh-formula/openssh
Michael Mol 710175799b Support compound matches
Support complex compound matches in Match criteria. For example, be able
to match against multiple Users for a given Match, or be able to match
against address ranges. Or Groups. Or any combination thereof.

Support for matching users can take one of several different appearances
in pillar data:

sshd_config:
  matches:
    match_1:
      type:
        User: one_user
      options:
        ChrootDirectory: /ex/%u
    match_2:
      type:
        User:
          - jim
          - bob
          - sally
      options:
        ChrootDirectory: /ex/%u
    match_3:
      type:
        User:
          jim: ~
          bob: ~
          sally: ~
      options:
        ChrootDirectory: /ex/%u

Note the syntax of match_3. By using empty dicts for each user, we can
leverage Salt's pillar mergine. If we use simple lists, we cannot do
this; Salt can't merge simple lists, because it doesn't know what order
they ought to be in.
2017-06-12 11:43:46 -04:00
..
files Support compound matches 2017-06-12 11:43:46 -04:00
auth_map.sls openssh.auth_map 2017-03-04 14:21:53 +01:00
auth.sls fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config 2016-11-02 15:21:50 +01:00
banner.sls Split the sshd_config and banner components into sub-states 2014-01-03 18:32:05 -08:00
client.sls added a state that installs the openssh client 2014-01-18 05:00:20 -08:00
config.sls Test config before applying it 2017-05-17 13:00:06 +02:00
defaults.yaml Test config before applying it 2017-05-17 13:00:06 +02:00
init.sls Add ability to control SSH server status (default: on) 2015-12-27 18:17:01 +01:00
known_hosts.sls Set correct ssh(d)_config_group for *BSD 2017-03-04 14:20:07 +01:00
map.jinja Set correct ssh(d)_config_group for *BSD 2017-03-04 14:20:07 +01:00
moduli.sls Allow moduli to be pulled as file 2016-08-01 23:59:11 +07:00