Defined Type: charybdis::general

Defined in:
manifests/general.pp

Overview

Parameters:

  • value (Any)
  • quoted (Any) (defaults to: false)
  • conffile (Any) (defaults to: $charybdis::conffile)


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
# File 'manifests/general.pp', line 1

define charybdis::general (
  $value,
  $quoted   = false,
  $conffile = $charybdis::conffile
) {
  concat::fragment { "${name} general":
    target  => $conffile,
    content => template('charybdis/general.erb'),
    order   => '120',
  }
  if ! defined(Concat::Fragment['general open']) {
    concat::fragment { 'general open':
      target  => $conffile,
      content => "general {\n",
      order   => '119',
    }
  }
  if ! defined(Concat::Fragment['general close']) {
    concat::fragment { 'general close':
      target  => $conffile,
      content => "};\n",
      order   => '121',
    }
  }
}