Puppet Class: tinyproxy::install

Defined in:
manifests/install.pp

Overview

Parameters:

  • use_epel (Boolean)
  • package_ensure (String)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/install.pp', line 1

class tinyproxy::install (
  Boolean $use_epel,
  String  $package_ensure,
){

  case $facts['os']['family'] {
    'RedHat': {
      if $use_epel {
        require ::epel
      }
    }
    'Debian': {
      include ::apt
      require ::apt::update
    }
    default: {
      fail("Module ${module_name} is not supported on ${facts['os']['family']}")
    }
  }

  package { 'tinyproxy':
    ensure => $package_ensure,
  }

}