Puppet Class: mtr

Defined in:
manifests/init.pp

Overview

Class: mtr

Install MTR and set it to be run-able by non-root

Parameters:

  • package (Any) (defaults to: 'mtr')


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/init.pp', line 5

class mtr (
  $package = 'mtr'
) {
  package { $package:
    install_options => [
      '--build-from-source',
      '--no-gtk+'
    ],
  }

  file { 'mtr-binary':
    path    => "${boxen::config::home}/homebrew/sbin/mtr",
    links   => 'follow',
    owner   => 'root',
    group   => 'wheel',
    mode    => '4755',
    require => Package[$package]
  }
}