``openssh`` | ``openssh`` | ||||
----------- | ----------- | ||||
Installs the ``openssh`` package and service. | |||||
Installs the ``openssh`` server package and service. | |||||
``openssh.config`` | ``openssh.config`` | ||||
------------------ | ------------------ | ||||
Installs the configuration file included in this formula | |||||
Installs the ssh daemon configuration file included in this formula | |||||
(under "openssh/files"). This configuration file is populated | (under "openssh/files"). This configuration file is populated | ||||
by values from pillar. ``pillar.example`` results in the generation | by values from pillar. ``pillar.example`` results in the generation | ||||
of the default ``sshd_config`` file on Debian Wheezy. | of the default ``sshd_config`` file on Debian Wheezy. | ||||
``openssh.client`` | |||||
------------------ | |||||
Installs the openssh client package. | |||||
``openssh.banner`` | ``openssh.banner`` | ||||
------------------ | ------------------ | ||||
{% from "openssh/map.jinja" import openssh with context %} | |||||
openssh_client: | |||||
pkg.installed: | |||||
- name: {{ openssh.client }} |
{% set openssh = salt['grains.filter_by']({ | {% set openssh = salt['grains.filter_by']({ | ||||
'Debian': { | 'Debian': { | ||||
'server': 'openssh-server', | 'server': 'openssh-server', | ||||
'client': 'openssh-client', | |||||
'service': 'ssh', | 'service': 'ssh', | ||||
'sshd_config': '/etc/ssh/sshd_config', | 'sshd_config': '/etc/ssh/sshd_config', | ||||
'sshd_config_src': 'salt://openssh/files/sshd_config', | 'sshd_config_src': 'salt://openssh/files/sshd_config', | ||||
}, | }, | ||||
'RedHat': { | 'RedHat': { | ||||
'server': 'openssh-server', | 'server': 'openssh-server', | ||||
'client': 'openssh', | |||||
'service': 'sshd', | 'service': 'sshd', | ||||
'sshd_config': '/etc/ssh/sshd_config', | 'sshd_config': '/etc/ssh/sshd_config', | ||||
'sshd_config_src': 'salt://openssh/files/sshd_config', | 'sshd_config_src': 'salt://openssh/files/sshd_config', |