From 1e389ee5fd9f5aa32e2e8d2983d95ff2a9b4c3c6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 26 Jul 2017 11:12:02 +0200 Subject: [PATCH] /var/run/motd no longer exists on stretch, link /etc/motd to /run/motd.dynamic instead --- modules/motd/manifests/init.pp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/motd/manifests/init.pp b/modules/motd/manifests/init.pp index cb42099c1..3a2b697de 100644 --- a/modules/motd/manifests/init.pp +++ b/modules/motd/manifests/init.pp @@ -15,9 +15,16 @@ class motd { ensure => absent, } - file { '/etc/motd': - ensure => link, - target => '/var/run/motd' + if versioncmp($::lsbmajdistrelease, '9') < 0 { + file { '/etc/motd': + ensure => link, + target => '/var/run/motd' + } + } else { + file { '/etc/motd': + ensure => link, + target => '/run/motd.dynamic' + } } file { '/etc/update-motd.d/puppet-motd': -- 2.20.1