Puppet Class: inspircd::modules::helpop

Defined in:
manifests/modules/helpop.pp

Overview

Parameters:

  • content (Any) (defaults to: false)
  • file (Any) (defaults to: 'inspircd/config/helpop.conf.erb')
  • config_dir (Any) (defaults to: $inspircd::config::config_dir)
  • user (Any) (defaults to: $inspircd::config::user)


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
26
27
28
29
30
# File 'manifests/modules/helpop.pp', line 1

class inspircd::modules::helpop (
  $content = false,
  $file = 'inspircd/config/helpop.conf.erb',
  $config_dir = $inspircd::config::config_dir,
  $user = $inspircd::config::user,
){
  $config_path = "${config_dir}/helpop.conf"

  if($content) {
    $content_norm = $content
  } elsif($file) {
    $content_norm = template($file)
  }

  file { $config_path:
    content => "${content_norm}\n",
    owner   => $user
  }

  $config = {
    file => $config_path,
  }

  ::inspircd::internal::configblock { "inspircd ${name} ":
    config_name => 'include',
    config      => $config,
    section     => 'modules'
  }

}