Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
sysctl_hung_task_panic.pp 602 B
Newer Older
  • Learn to ignore specific revisions
  • # Sets kernel option to panic and reboot on a hung task.
    
    class ubuntu_server::sysctl_hung_task_panic{
    
        File{
            owner => root,
            group => root,
            mode => 644,
        }
    
        file{'/etc/sysctl.d/32-hung_task_panic.conf':
            ensure => present,
    
            source => 'puppet:///modules/ubuntu_server/etc/sysctl.d/32-hung_task_panic.conf',
    
        } ~> Exec['hung_task_panic_enable']
    
        exec{'hung_task_panic_enable':
    
            path        => $::path,
            command     => 'cat /etc/sysctl.d/32-hung_task_panic.conf /etc/sysctl.conf | sysctl -e -p - ',