Puppet Class: psick::pe_repo

Defined in:
manifests/pe_repo.pp

Overview

This class manages the /etc/yum.repos.d/pe_repo.repo file

Parameters:

  • ensure (Enum['present','absent']) (defaults to: 'present')

    If to add or remove the pe_repo.repo file

  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


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

class psick::pe_repo (
  Enum['present','absent'] $ensure = 'present',
  Boolean $manage                  = $psick::manage,
  Boolean $noop_manage             = $psick::noop_manage,
  Boolean $noop_value              = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

    file { '/etc/yum.repos.d/pe_repo.repo':
      ensure => $ensure,
      source => 'puppet:///modules/psick/pe_repo/pe_repo.repo',
    }
  }
}