diff options
author | varac <varacanero@zeromail.org> | 2013-07-15 08:56:22 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-07-15 08:56:22 +0200 |
commit | 06fc5e7cd019a4b6badc8ed074bac58e7c91b930 (patch) | |
tree | 5f4b5aa4f8cde6125946abe625c64caa9b44d6ff | |
parent | 276f68983715a9de5e571b000d1d7535e1358891 (diff) |
added check_mk::omd_repo and updated README
-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'] + } +} |