Code Monkey home page Code Monkey logo

puppet-munin's Introduction

Deprecation notice

This module was designed for Puppet versions 2 and 3. It should work also on Puppet 4 but doesn't use any of its features.

The current Puppet 3 compatible codebase is no longer actively maintained by example42.

Still, Pull Requests that fix bugs or introduce backwards compatible features will be accepted.

Puppet module: munin

This is a Puppet module for munin based on the second generation layout ("NextGen") of Example42 Puppet Modules.

Made by Alessandro Franceschi / Lab42

Official site: http://www.example42.com

Official git repository: http://github.com/example42/puppet-munin

Released under the terms of Apache 2 License.

This module requires functions provided by the Example42 Puppi module (you need it even if you don't use and install Puppi)

For detailed info about the logic and usage patterns of Example42 modules check the DOCS directory on Example42 main modules set.

USAGE - Basic management

  • Install munin with default settings

      class { 'munin': }
    
  • Install a specific version of munin package

      class { 'munin':
        version => '1.0.1',
      }
    
  • Disable munin service.

      class { 'munin':
        disable => true
      }
    
  • Remove munin package

      class { 'munin':
        absent => true
      }
    
  • Enable auditing without without making changes on existing munin configuration files

      class { 'munin':
        audit_only => true
      }
    

USAGE - Overrides and Customizations

  • Use custom sources for main config file

      class { 'munin':
        source => [ "puppet:///modules/lab42/munin/munin.conf-${hostname}" , "puppet:///modules/lab42/munin/munin.conf" ], 
      }
    
  • Use custom source directory for the whole configuration dir

      class { 'munin':
        source_dir       => 'puppet:///modules/lab42/munin/conf/',
        source_dir_purge => false, # Set to true to purge any existing file not present in $source_dir
      }
    
  • Use custom template for main config file. Note that template and source arguments are alternative.

      class { 'munin':
        template => 'example42/munin/munin.conf.erb',
      }
    
  • Automatically include a custom subclass

      class { 'munin':
        my_class => 'munin::example42',
      }
    

USAGE - Example42 extensions management

  • Activate puppi (recommended, but disabled by default)

      class { 'munin':
        puppi    => true,
      }
    
  • Activate puppi and use a custom puppi_helper template (to be provided separately with a puppi::helper define ) to customize the output of puppi commands

      class { 'munin':
        puppi        => true,
        puppi_helper => 'myhelper', 
      }
    
  • Activate automatic monitoring (recommended, but disabled by default). This option requires the usage of Example42 monitor and relevant monitor tools modules

      class { 'munin':
        monitor      => true,
        monitor_tool => [ 'nagios' , 'monit' , 'munin' ],
      }
    
  • Activate automatic firewalling. This option requires the usage of Example42 firewall and relevant firewall tools modules

      class { 'munin':       
        firewall      => true,
        firewall_tool => 'iptables',
        firewall_src  => '10.42.0.0/24',
        firewall_dst  => $ipaddress_eth0,
      }
    
  • Starting munin FastCGI. Use module jfryman/inittab (https://github.com/jfryman/puppet-inittab) if you want to add munin FastCGI to inittab.

      class { 'munin::cgi': }
    

Build Status

puppet-munin's People

Contributors

alvagante avatar davids avatar empi89 avatar eperdeme avatar guerremdq avatar ki0 avatar lxyu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-munin's Issues

Duplicate File definitions block catalog

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Another local or imported resource exists with the type and title File[/etc/munin/munin-conf.d/fqdn.conf] on node fqdm

I have not defined this File manually anywhere, nor is the fqdn duplicated in configs. How could this state appear? How to rectify it?

Apply error: "undefined method `each' for "127.0.0.1":String"

Env:

Ubuntu 12.10
puppet 3.1.0 (use the apt source by puppetlabs)

Error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template munin/munin-node.conf.erb:
  Filepath: /srv/puppet/modules/misc/munin/templates/munin-node.conf.erb
  Line: 34
  Detail: undefined method `each' for "127.0.0.1":String
 at /srv/puppet/modules/misc/munin/manifests/init.pp:414 on node s-misc-0
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

And remove these 3 lines fixed it:

# We install Net::CIDR perl module with Puppet
<% scope.lookupvar('munin::server').each do |server| %>cidr_allow <%= server -%>/32
<% end %>

I'm dumb: vhosts config not created

This may be due to my lack of knowledge of munin and everything else, but when I say "server_local: true" (after installing apache) it does place the files in the proper dir and add a conf to /etc/conf.d/munin.conf , but it does not execute properly when going to the site in a browser, it just shows a file listing.

I assume that a vhost.conf needs to be created defining the proper dirs (like http://munin.readthedocs.org/en/latest/example/webserver/apache-virtualhost.html)

Is that true? Sorry for being so dense.

Error 400 on SERVER: Expression is not valid as a resource, resource-default, or resource-override

Hi,

When I add the server attribute when calling the munin class, I get the following error on PE2015.3 (puppet 4.3.2)...

e.g.

>   class { 'munin':
> # ref https://github.com/example42/puppet-yum/issues/88 - same issue for munin
>     source_dir       => 'puppet:///modules/munin/empty',
>     source_dir_purge => false,
>     server           => '192.168.0.168',      <********
>   }
> 

I get the following error message....

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Expression is not valid as a resource, resource-default, or resource-override at /etc/puppetlabs/code/environments/production/modules/munin/manifests/server.pp:40:10 on node monitoring.BLAH.net.au

A small syntax update following this ref helped;

The fix...remove the space on line 40 of manifests/server.pp....

From
File_space_['munin.include_dir_server'] {
To
File['munin.include_dir_server'] {

Hope this helps.

Stephen

[Suggestion] Replace fqdn by hostname

The template use fqdn facter which may not exists in some machine, for example:

Assume I have a OS which hostname is box.

This /etc/hosts file will output no fqdn:

127.0.0.1   localhost
127.0.1.1   box

To get fqdn work, you have to make something like this:

127.0.0.1   localhost
127.0.1.1   box.example.com box

I think hostname works the same, so replace fqdn by hostname should be better.

Error 400 on SERVER: invalid byte sequence in US-ASCII

Hi there,

I found this problem on class /etc/puppet/environments/testing/modules/munin/manifests/cgi.pp:23, i did a cat -v command without any final outcome. Any idea?¿

Ive seen that there are a issue about take out this class or use a different module, any news?¿

Cheers

Installation through puppet fails due to missing dependency

Tried to install this module through

puppet module install example42/munin

However, it failed:

Notice: Downloading from https://forge.puppetlabs.com ...
Error: Could not install module 'example42-munin' (latest)
  No version of 'example42-munin' will satisfy dependencies
    You specified 'example42-munin' (latest)
    Use `puppet module install --force` to install this module anyway

Probably because the dependency "jfryman/inittab" is not available anymore on puppet:
http://forge.puppetlabs.com/jfryman/inittab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.