From 5a2711037a2fc016666ca75e5fbec69d5009b9d8 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Tue, 3 Sep 2013 23:41:07 +0200 Subject: plugin::deploy added to README --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ab9c86..71b935e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ a very easy plugin interface. The munin homepage is http://munin.projects.linpro * puppet 2.7 or newer * install the `concat` and `stdlib` modules -- the munin module depends on functions that are defined and installed via these modules * you will need storedconfigs enabled in your puppet setup, to do that you need to add a line to your `puppet.conf` in your `[puppetmasterd]` section which says: - + storeconfigs=true * You may wish to immediately setup a `mysql`/ `pgsql` database for your storedconfigs, as @@ -75,3 +75,11 @@ a very easy plugin interface. The munin homepage is http://munin.projects.linpro class { 'munin::client': allow => '192.168.0.1', port => '4948' } + 6. For deploying plugins which are not available at client, you can fetch them from puppet + master using `munin::plugin::deploy`. + + munin::plugin::deploy { 'redis': + source => 'munin/plugins/redis/redis_', + } + + In this case the file on master would be located in `/etc/puppet/modules/munin/files/plugins/redis/redis_` \ No newline at end of file -- cgit v1.2.3 From e6a975eb0ab7ef99479344b553ac2431555f5747 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Thu, 5 Sep 2013 10:01:44 +0200 Subject: mentioned modulepath where puppet searches for plugins to deploy --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 71b935e..9e4602e 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,9 @@ a very easy plugin interface. The munin homepage is http://munin.projects.linpro munin::plugin::deploy { 'redis': source => 'munin/plugins/redis/redis_', + config => '' # pass parameters to plugin } - In this case the file on master would be located in `/etc/puppet/modules/munin/files/plugins/redis/redis_` \ No newline at end of file + In this example the file on master would be located in `{modulepath}/munin/files/plugins/redis/redis_`. + Module path is specified in `puppet.conf`, you can find out your `{modulepath}` easily by tying + in console `puppet config print modulepath`. \ No newline at end of file -- cgit v1.2.3