Commit 22190565 authored by mh's avatar mh

add tmout support for debian

debian doesn't have a profile.d, so let's put it directly into
profile
parent cd93a81b
class bash::timeout {
include bash
file{'/etc/profile.d/timeout.sh':
source => "puppet:///modules/bash/profile.d/timeout.sh",
require => Package['bash'],
owner => root, group => 0, mode => 0755;
case $operatingsystem{
debian: { include bash::timeout::debian }
default: { include bash::timeout::base }
}
}
class bash::timeout::base {
file{'/etc/profile.d/timeout.sh':
source => "puppet:///modules/bash/profile.d/timeout.sh",
require => Package['bash'],
owner => root, group => 0, mode => 0755;
}
}
class bash::timeout::debian {
line{'timeout':
file => '/etc/profile',
line => 'export TMOUT=900',
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment