# HG changeset patch # User IBBoard # Date 1626531133 -3600 # Node ID a8a7b2b343b5e96bad4a50e1e474a063095fe2e1 # Parent 5f4fc00f81894843dcb4a0c2b750699a299ac5ee Fix `less` highlighting under sudo diff -r 5f4fc00f8189 -r a8a7b2b343b5 modules/sudo/files/keep-less-highlight --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/sudo/files/keep-less-highlight Sat Jul 17 15:12:13 2021 +0100 @@ -0,0 +1,1 @@ +Defaults env_keep += "LESS_TERMCAP_so LESS_TERMCAP_se" diff -r 5f4fc00f8189 -r a8a7b2b343b5 modules/sudo/manifests/init.pp --- a/modules/sudo/manifests/init.pp Tue Jun 15 19:46:29 2021 +0100 +++ b/modules/sudo/manifests/init.pp Sat Jul 17 15:12:13 2021 +0100 @@ -22,4 +22,11 @@ source => "puppet:///modules/sudo/keep-editor", require => Package["sudo"], } + file { "/etc/sudoers.d/keep-less-highlight": + owner => root, + group => root, + mode => '0440', + source => "puppet:///modules/sudo/keep-less-highlight", + require => Package["sudo"], + } }