munin::plugin does something strange

22 views
Skip to first unread message

Fran Rodríguez

unread,
Jul 24, 2014, 4:37:29 AM7/24/14
to example42-pu...@googlegroups.com
Hi there,

Im using the munin::plugin define for config some gunicorn plugins but the config of the munin plugin when i use content_config or source_config attribute, it uploads the file or content on a file to root (/). My puppet code is very simple:

  munin::plugin { 'gunicorn_status':
    source        => 'services/munin-contrib/plugins/gunicorn/gunicorn_status',
    source_config => 'xxxxxxxx/munin/gunicorn/gunicorn-config',
linkplugins => true, }

This puts a file on a root (/gunicorn_status), the code that works is this:

  munin::plugin { '/etc/munin/plugin-conf.d/gunicorn':
    source_config => 'adserver/munin/gunicorn/gunicorn-config',
  }
  munin::plugin { 'gunicorn_status':
    source        => 'services/munin-contrib/plugins/gunicorn/gunicorn_status',
    linkplugins   => true,
  }

I dont know if its a bug or what i see the code of the plugins and i think its correct, because the munin script is uploaded correctly. I dont know what is happening.

Cheers

Facundo Guerrero

unread,
Jul 24, 2014, 9:50:34 AM7/24/14
to example42-pu...@googlegroups.com
Probably the variable ${munin::plugins_dir} is empty , thats the
reason why the plugins is in the /. do you include the munin module ?

https://github.com/example42/puppet-munin/blob/master/manifests/plugin.pp#L40
--
Atte, Facundo Guerrero
> --
> You received this message because you are subscribed to the Google Groups
> "Example42 Puppet Modules" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to example42-puppet-m...@googlegroups.com.
> To post to this group, send email to
> example42-pu...@googlegroups.com.
> Visit this group at http://groups.google.com/group/example42-puppet-modules.
> For more options, visit https://groups.google.com/d/optout.

Fran Rodríguez

unread,
Jul 25, 2014, 9:35:45 AM7/25/14
to example42-pu...@googlegroups.com
Hi Facundo,

I dont think so on params.pp, its setup. 


But thats not the param in this situations, it would be:


Maybe like said, its a bug.... ?¿

Cheers


You received this message because you are subscribed to a topic in the Google Groups "Example42 Puppet Modules" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/example42-puppet-modules/GG2IGuXbuvE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to example42-puppet-m...@googlegroups.com.

To post to this group, send email to example42-pu...@googlegroups.com.
Visit this group at http://groups.google.com/group/example42-puppet-modules.
For more options, visit https://groups.google.com/d/optout.



--
Fran Rodríguez
escala NetLabel
http://escalared.com

Facundo Guerrero

unread,
Jul 25, 2014, 11:56:46 AM7/25/14
to example42-pu...@googlegroups.com
yes,

I think that this will fix that.

https://github.com/example42/puppet-munin/pull/20/files


--
Atte, Facundo Guerrero

Fran Rodríguez

unread,
Jul 25, 2014, 12:09:51 PM7/25/14
to example42-pu...@googlegroups.com
:).... Thats what i did. I were doing the pull request... u win!! 

Thanks and cheers. 
Reply all
Reply to author
Forward
0 new messages