Puppet Class: modern_shell_tools::install::bashtop

Defined in:
manifests/install/bashtop.pp

Summary

A modern replacement for top/htop

Overview

Examples:

include modern_shell_tools::install::bashtop

Parameters:

  • version (String[1]) (defaults to: '0.9.25')
  • install_path (Stdlib::Absolutepath) (defaults to: "/opt/mst/bashtop-${version}")
  • bin_path (Stdlib::Absolutepath) (defaults to: '/usr/local/sbin')


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/install/bashtop.pp', line 10

class modern_shell_tools::install::bashtop (
  String[1] $version                 = '0.9.25',
  Stdlib::Absolutepath $install_path = "/opt/mst/bashtop-${version}",
  Stdlib::Absolutepath $bin_path     = '/usr/local/sbin',
) {
  vcsrepo { $install_path:
    ensure   => present,
    provider => git,
    source   => 'https://github.com/aristocratos/bashtop.git',
    revision => "v${version}",
  }
  -> file { "${bin_path}/bashtop":
    ensure => link,
    target => "${install_path}/bashtop",
  }
}