diff options
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | manifests/omd_repo.pp | 6 |
2 files changed, 18 insertions, 1 deletions
@@ -10,13 +10,24 @@ Puppet module for: Agent hostnames are automatically added to the server all_hosts configuration using stored configs. -Currently only tested on Redhat-like systems. +Currently only tested on Redhat-like systems and on Debian. ## Server * Installs omd package either using the system repository (eg. yum, apt) or from a package file retrieved from the Puppet file store +* Use check_mk::omd_repo to enable a debian repository for omd + (requires apt module from i.e. https://labs.riseup.net/code/projects/shared-apt). + For now, you need to fetch the omd apt-key manually from + http://labs.consol.de/nagios/omd-repository/, put it into your site_apt/files/keys + directory and pass the custom_key_dir parameter to the apt class, like + + + class { 'apt': + custom_key_dir => 'puppet:///modules/site-apt/keys' + } + * Populates the all_hosts array in /etc/check_mk/main.mk with hostnames exported by check::agent classes on agent hosts diff --git a/manifests/omd_repo.pp b/manifests/omd_repo.pp new file mode 100644 index 0000000..2100f37 --- /dev/null +++ b/manifests/omd_repo.pp @@ -0,0 +1,6 @@ +class check_mk::omd_repo { + apt::sources_list { 'omd.list': + content => "deb http://labs.consol.de/OMD/debian ${::lsbdistcodename} main", + before => Package['omd'] + } +} |