Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 53c11674 authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

Merge branch 'testing'

parents 854eb3ff fd25651b
No related branches found
No related tags found
No related merge requests found
class ubuntu_server::nrpe($nrpe_local_cfg="puppet:///modules/ubuntu_server/etc/nagios/nrpe_local.cfg",$nrpe_scripts="puppet:///modules/ubuntu_server/opt/nagios",$daemon_options="--no-ssl"){
class ubuntu_server::nrpe($nrpe_local_cfg="puppet:///modules/ubuntu_server/etc/nagios/nrpe_local.cfg",$nrpe_scripts="puppet:///modules/ubuntu_server/opt/nagios",$daemon_options="--no-ssl",$enable_sudo_docker=false){
File{
owner => "root",
......@@ -39,4 +39,12 @@ class ubuntu_server::nrpe($nrpe_local_cfg="puppet:///modules/ubuntu_server/etc/n
require => Package['nagios-nrpe-server'],
} ~> Service['nagios-nrpe-server']
if $enable_sudo_docker == "true" {
file_line{'sudoers_1':
path => "/etc/sudoers",
line => "nagios ALL=(ALL:ALL) NOPASSWD: /opt/nagios/check_docker_container",
match => "^nagios ALL=(ALL:ALL) NOPASSWD: /opt/nagios/check_docker_container",
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment