Forge Home

bloonix_agent

install and configure bloonix agent

10,135 downloads

7,888 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.1 (latest)
  • 0.2.0
  • 0.1.1
  • 0.1.0
released May 3rd 2016
This version is compatible with:
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'loomsen-bloonix_agent', '0.2.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add loomsen-bloonix_agent
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install loomsen-bloonix_agent --version 0.2.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

loomsen/bloonix_agent — version 0.2.1 May 3rd 2016

bloonix_agent

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with bloonix_agent
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module
  8. Editors
  9. Contributors

Overview

The bloonix_agent module installs, configures and manages bloonix-agent

Module Description

The bloonix_agent module installs, configures and manages bloonix-agent and optionally autoregisters with a bloonix server.

Setup

What bloonix_agent affects

  • This module will set up a repository (depending on your osfamily this is either APT or YUM)
  • This module will install the bloonix-agent package on your system
  • This module will manage the bloonix-agent config on your system
  • This module will manage the bloonix-agent service on your system (optional)

Setup Requirements

On Debian Systems, this module requires the puppetlabs/apt module.

Getting started

You need to pass $config_bloonix_server, which should be the fqdn of your bloonix-server.

class { '::bloonix_agent':
  config_bloonix_server => 'bloonix.example.com',
}

Usage

Connecting to bloonix-server via SSL

class { '::bloonix_agent':
  config_bloonix_server => 'bloonix.example.com',
  config_server_use_ssl => true,
}

Enable Autoregistration

See this Documentation It will enable you to automatically register hosts with your bloonix-server (useful for automated deployments) Only available in German, but the screenshots should show you enough to know where to get the company key and id from. In order for the autoregistration to work, you will need to pass config_bloonix_webgui:

class { '::bloonix_agent':
  config_bloonix_server           => 'bloonix.example.com',
  config_bloonix_webgui           => 'http://bloonix.example.com',
  config_register_enable          => true,
  config_register_company_id      => '2',
  config_register_company_authkey => 'theFANCYkeyYOUgotFROMtheGUI',
  config_register_description     => 'Maybe something with facter facts here',
}

Configure the bloonix-agent

You can configure everything in the main.conf file from here. The configuration options are named config_$as_named_in_bloonix, so bloonix' use_sudo translates to config_use_sudo, bloonix' agents translates to config_bloonix_agent and so on. Please see params.pp and the bloonix documentation for a full set of options. Here are some examples.

Run 2 Agents and set a custom simple_plugins path

class { '::bloonix_agent':
  config_bloonix_server => 'bloonix.example.com',
  config_agents         => '2',
  config_simple_plugins => '/usr/local/lib/bloonix/simple-plugins,/usr/lib/bloonix/simple-plugins,/usr/local/bin',
}

Set a different include path and logfile

class { '::bloonix_agent':
  config_bloonix_server => 'bloonix.example.com',
  config_include        => '/usr/local/bloonix/conf.d',
  config_log_filename   => '/usr/local/log/mylogfile.log',
}

Reference

Classes

Public Classes

  • bloonix_agent: Main class, includes all other classes.

####Private Classes

  • bloonix_agent::repo: Sets up the Repo
  • bloonix_agent::install: Handles the packages.
  • bloonix_agent::config: Handles the configuration file.
  • bloonix_agent::service: Handles the service.

###Parameters

The following parameters are available in the ::bloonix_agent class:

####package_manage On/Off switch. You can use this to include the module in your site.pp and disable the management for individual nodes. Or you could go the other way round, and include the module in the main manifest with the toggle off, and enable it for individual nodes.

Package configuration

####package_name
Name of the package. ####package_ensure The package state.

Basic configuration

####config_bloonix_webgui The URL to your web-GUI (defaults to http://bloonix.example.com) ####config_bloonix_server The FQDN of your bloonix server (defaults to bloonix.example.com) ####config_bloonix_server_port The port on which the bloonix server listens (defaults to 5460) ####config_server_use_ssl Should the agent use SSL to talk to the server? (defaults to false)

More configuration parameters

Please consult the bloonix documentation for a discussion of the params in detail. ####config_server_mode ####config_server_ssl_verify_mode ####config_server_ssl_ca_param ####config_server_ssl_ca_file ####config_agents ####config_user ####config_group ####config_plugins ####config_simple_plugins ####config_use_sudo ####config_include ####config_register_enable ####config_register_company_id ####config_register_company_authkey ####config_register_template_tags ####config_register_description ####config_log_filename
####config_log_filelock ####config_log_maxlevel ####config_log_minlevel ####config_log_timeformat ####config_log_message_layout

Service related configs

####service_name The name of the service (defaults to bloonix-agent) ####service_ensure State of the service (defaults to running) ####service_enable Enable the service? (defaults to true) ####hostname_re Regex used to validate the hostname of the bloonix-server ####url_re Regex used to validate the URL of the bloonix-webgui (in case your installation uses a naming scheme I haven't covered)

Limitations

Currently, this module support CentOS, Fedora (with the bloonix CentOS Repo), Ubuntu and Debian.

Development

I have limited access to resources and time, so if you think this module is useful, like it, hate it, want to make it better or want it off the face of the planet, feel free to get in touch with me.

Editors

Norbert Varzariu (loomsen)

Contributors

Please see the list of contributors.