htop

Managing htop's configuration

deric

deric

5,658 downloads

5,502 latest version

4.3 quality score

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Oct 16th 2016
This version is compatible with:
  • Puppet Enterprise >= 3.2.0 < 5.0.0
  • Puppet >= 3.2.0 < 5.0.0
  • Debian
    ,
    RedHat
    ,
    CentOS
    ,
    Ubuntu

Start using this module

Documentation

deric/htop — version 0.1.2 Oct 16th 2016

puppet-htop

Puppet
Forge Build Status Puppet Forge
Downloads

Manages htop package and its configuration with Hiera support (optional).

Usage

Basic definition will install htop package and create /root/.config/htop/htoprc file:

class{'::htop':}

In most cases you probably want to override just some configuration

---
htop::users:
  root:
    options:
      sort_key: '47' # memory
      highlight_base_name: '1'

But you can also change global settings (applies to multiple accounts) e.g. via Hiera:

---
htop::config:
  defaults:
    sort_key: '47' # sort by memory
    highlight_base_name: '1'

you can configure different options for each account:

---
htop::users:
  foo:
    options:
      hide_kernel_threads: '0'
  bar:
    options:
      tree_view: '1'

user options will be merged into global defauls (defined in htop::config::defaults).

or directly via puppet code:

class{'::htop':
  config => {
    defaults => {
      sort_key => '46',
    }
  }
}

Installation

Preferably using libarian or r10k:

mod 'deric-htop'

Requirements

  • Puppet >= 3.2, Puppet 4
  • Ruby 1.9.3 and newer

Dependencies

  • puppetlabs-stdlib - >= 2.5.0