ソースを参照

Split the sshd_config and banner components into sub-states

tags/v0.41.0
Kenny Do 11年前
コミット
07771c0ebf
4個のファイルの変更31行の追加17行の削除
  1. +9
    -4
      README.rst
  2. +10
    -0
      openssh/banner.sls
  3. +12
    -0
      openssh/config.sls
  4. +0
    -13
      openssh/init.sls

+ 9
- 4
README.rst ファイルの表示

openssh openssh
======= =======
Install and configure an openssh server.


openssh
-------

Install openssh and set up the daemon, install a useful banner as well
States
------
``openssh``
Installs the ``openssh`` package and service.
``openssh.config``
Installs the configuration file included in this formula (under "openssh/files").
``openssh.banner``
Installs a banner that users see when SSH-ing in.

+ 10
- 0
openssh/banner.sls ファイルの表示

{% from "openssh/map.jinja" import openssh with context %}

include:
- openssh

sshd_banner:
file.managed:
- name: {{ openssh.banner }}
- source: {{ openssh.banner_src }}
- template: jinja

+ 12
- 0
openssh/config.sls ファイルの表示

{% from "openssh/map.jinja" import openssh with context %}

include:
- openssh

sshd_config:
file.managed:
- name: {{ openssh.sshd_config }}
- source: {{ openssh.sshd_config_src }}
- watch_in:
- service: {{ openssh.service }}


+ 0
- 13
openssh/init.sls ファイルの表示

- name: {{ openssh.service }} - name: {{ openssh.service }}
- require: - require:
- pkg: {{ openssh.server }} - pkg: {{ openssh.server }}
- file: sshd_banner
- watch:
- file: sshd_config


sshd_config:
file.managed:
- name: {{ openssh.sshd_config }}
- source: {{ openssh.sshd_config_src }}

sshd_banner:
file.managed:
- name: {{ openssh.banner }}
- source: {{ openssh.banner_src }}
- template: jinja

読み込み中…
キャンセル
保存