From fa4bf186d9e16b4c720d234fe7c788e640b01ffc Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Mon, 21 Oct 2013 11:46:43 +0300 Subject: [PATCH] screen: Add defnonblock to screenrc --- screen/manifests/init.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/screen/manifests/init.pp b/screen/manifests/init.pp index 8f58277..26d20f4 100644 --- a/screen/manifests/init.pp +++ b/screen/manifests/init.pp @@ -6,4 +6,12 @@ class screen { ensure => installed, } + exec { "set-screen-defnonblock": + path => "/bin:/usr/bin:/sbin:/usr/sbin", + user => "root", + command => "echo 'defnonblock on' >> /etc/screenrc", + unless => "fgrep -x 'defnonblock on' /etc/screenrc", + require => Package["screen"], + } + }