diff --git a/manifests/node/export.pp b/manifests/node/export.pp index f0c7ce0..66bc59f 100644 --- a/manifests/node/export.pp +++ b/manifests/node/export.pp @@ -1,25 +1,27 @@ # Class to export the munin node. # # This is separated into its own class to avoid warnings about missing # storeconfigs. # class munin::node::export ( $address, $fqn, $masterconfig, $mastername, $node_definitions = {}, ) { Munin::Master::Node_definition { mastername => $mastername, tag => "munin::master::${mastername}", } - @@munin::master::node_definition{ $fqn: - address => $address, - config => $masterconfig, + if($::settings::storeconfigs == true) { + @@munin::master::node_definition{ $fqn: + address => $address, + config => $masterconfig, + } } if ! empty($node_definitions) { create_resources('@@munin::master::node_definition', $node_definitions) } } diff --git a/metadata.json b/metadata.json index 543d7ca..544faa2 100644 --- a/metadata.json +++ b/metadata.json @@ -1,104 +1,104 @@ { "name": "ssm-munin", "version": "0.1.0", "author": "ssm", "summary": "Configure munin master, node and plugins", "license": "Apache-2.0", "source": "https://github.com/ssm/ssm-munin", "project_page": "https://github.com/ssm/ssm-munin", "issues_url": "https://github.com/ssm/ssm-munin/issues", "dependencies": [ { "name": "puppetlabs/stdlib", - "version_requirement": ">= 2.3.0 < 5.0.0" + "version_requirement": ">= 2.3.0 < 6.0.0" } ], "operatingsystem_support": [ { "operatingsystem": "Archlinux", "operatingsystemrelease": [ "4" ] }, { "operatingsystem": "CentOS", "operatingsystemrelease": [ "5", "6", "7" ] }, { "operatingsystem": "Debian", "operatingsystemrelease": [ "6", "7", "8" ] }, { "operatingsystem": "OracleLinux", "operatingsystemrelease": [ "5", "6", "7" ] }, { "operatingsystem": "RedHat", "operatingsystemrelease": [ "5", "6", "7" ] }, { "operatingsystem": "Scientific", "operatingsystemrelease": [ "5", "6", "7" ] }, { "operatingsystem": "SmartOS" }, { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ "10.04", "12.04", "14.04" ] }, { "operatingsystem": "FreeBSD", "operatingsystemrelease": [ "9", "10" ] }, { "operatingsystem": "DragonFly" }, { "operatingsystem": "OpenBSD" } ], "requirements": [ { "name": "puppet", "version_requirement": ">= 4.7.0 < 6.0.0" } ], "tags": [ "munin", "monitoring", "graphing", "performance", "trending" ], "pdk-version": "1.6.0", "template-url": "file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git", "template-ref": "1.6.0-0-gf5564c0" }