Defined Type: nhc::custom_check

Defined in:
manifests/custom_check.pp

Summary

Add NHC custom check file

Overview

Examples:

Define custom NHC check file

nhc::custom_check { 'osc_gpfs':
  source => 'puppet:///modules/profile/nhc/osc_gpfs.nhc',
}

Parameters:

  • source (Optional[String]) (defaults to: undef)

    The source of the custom check



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/custom_check.pp', line 11

define nhc::custom_check (
  Optional[String] $source = undef,
) {
  include nhc

  file { "${nhc::include_dir}/${name}.nhc":
    ensure => 'file',
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
    source => $source,
  }
}