Puppet Class: classroom_legacy::course::puppetize

Inherits:
classroom_legacy::params
Defined in:
manifests/course/puppetize.pp

Overview

typing the parameters doesn’t actually gain us anything, since the Console doesn’t provide any hinting. Subclasses validate types.

Parameters:

  • event_id (Any) (defaults to: undef)
  • event_pw (Any) (defaults to: undef)
  • jvm_tuning_profile (Any) (defaults to: $classroom_legacy::params::jvm_tuning_profile)
  • offline (Any) (defaults to: $classroom_legacy::params::offline)
  • version (Any) (defaults to: undef)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'manifests/course/puppetize.pp', line 3

class classroom_legacy::course::puppetize (
  $event_id           = undef,
  $event_pw           = undef,
  $jvm_tuning_profile = $classroom_legacy::params::jvm_tuning_profile,
  $offline            = $classroom_legacy::params::offline,
  $version            = undef,
) inherits classroom_legacy::params {
  class { 'classroom_legacy::virtual':
    offline            => $offline,
    jvm_tuning_profile => $jvm_tuning_profile,
    control_repo       => 'classroom-control-pi.git',
    event_id           => $event_id,
    event_pw           => $event_pw,
    plugin_list        => flatten([$classroom_legacy::params::plugin_list, "Gitviz" ]),
  }

  if $role == 'master' {
    File {
      owner => 'root',
      group => 'root',
      mode  => '0644',
    }

    include classroom_legacy::master::hiera

    class { 'classroom_legacy::facts':
      coursename => 'puppetizing',
    }

    class { 'classroom_legacy::master::showoff':
      course             => 'Puppetize',
      event_id           => $event_id,
      event_pw           => $event_pw,
      version            => $version,
    }

    file { '/usr/local/bin/validate_classification.rb':
      ensure => file,
      mode   => '0755',
      source => 'puppet:///modules/classroom_legacy/validation/puppetize.rb',
    }
  }

  # All nodes
  include classroom_legacy::agent::git
}