Puppet Class: pulp

Defined in:
manifests/init.pp

Overview

Parameters:

  • ensure (Any) (defaults to: 'enabled')


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/init.pp', line 1

class pulp($ensure = 'enabled') { 
  if $ensure == 'enabled' {
    $enabled = 1
  } elsif $ensure == 'disabled' {
    $enabled = 0
  } elsif $ensure == 'absent' {
    $enabled = 'absent'
  }

  stage { 'pulp_repo_setup':
    before => Stage['main']
  }

  class { 'pulp::repo':
    ensure => $ensure,
    stage  => pulp_repo_setup
  }
}