openssh-formula/openssh/files
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
..
banner Add openssh files 2013-06-13 11:16:18 -06:00
fire_banner Add openssh files 2013-06-13 11:16:18 -06:00
ssh_config Apply string-or-list processing to ssh_config 2017-01-24 01:34:24 +07:00
ssh_known_hosts known_hosts: sort IP addresses 2017-02-23 03:59:40 +01:00
sshd_config Support compound matches 2017-06-12 11:43:46 -04:00