Browse Source

Fix motd on debian jessie

pull/123/head
Filip Pytloun 7 years ago
parent
commit
36fc6df8bf
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      linux/system/motd.sls

+ 8
- 0
linux/system/motd.sls View File

@@ -22,6 +22,14 @@ package_update_motd:
file.directory:
- clean: true

{%- if grains.oscodename == "jessie" %}
motd_fix_pam_sshd:
file.replace:
- name: /etc/pam.d/sshd
- pattern: "/run/motd.dynamic"
- repl: "/run/motd"
{%- endif %}

{%- for motd in system.motd %}
{%- set motd_index = loop.index %}


Loading…
Cancel
Save