Skip to content

locationlabs/ansible-hsflowd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hsflowd

This role installs the host-sflow agent for gathering and sending metrics using sFlow.

By default this role will install with DNS-SD off and require at least one collector configured. Read the host-sflow docs on how to use DNS-SD.

Requirements

Requires:

  • ansible >= 2.4

Role Variables

Minimal required variables:

  • hsflowd_url: URL of the hsflowd package - See their github releases or build/provide your own
  • hsflowd_package_name: Alternatively if a URL is not provided, will attempt to install from the target's available repos using this package name
  • hsflowd_collectors: A list of sflow collectors, at least one must be defined

See defaults/main.yml for example variable usage based on sflow documentation examples to configured additional modules.

Dependencies

None

Example Playbook

Minimal required example:

- hosts: servers
  tasks:
    - import_role:
        name: hsflowd
      vars:
        hsflowd_url: https://github.com/sflow/host-sflow/releases/download/v2.0.19-1/hsflowd-centos7-2.0.19-1.x86_64.rpm
        hsflowd_collectors:
          - ip: 10.100.12.13