Puppet Class: mediatomb::config

Inherits:
mediatomb::config::params
Defined in:
manifests/config.pp

Overview

Parameters:

  • uuid (Any) (defaults to: $mediatomb::config::params::uuid)
  • home (Any) (defaults to: $mediatomb::config::params::home)
  • webroot (Any) (defaults to: $mediatomb::config::params::webroot)
  • server_name (Any) (defaults to: $mediatomb::config::params::server_name)
  • ui (Any) (defaults to: $mediatomb::config::params::ui)


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

class mediatomb::config (
  $uuid = $mediatomb::config::params::uuid,
  $home = $mediatomb::config::params::home,
  $webroot = $mediatomb::config::params::webroot,
  $server_name = $mediatomb::config::params::server_name,
  $ui = $mediatomb::config::params::ui
) inherits mediatomb::config::params {

  # Used only for redhat family
  $ifs = split($interfaces, ',')
  $if = $ifs[0]

  file { $mediatomb::config_file:
    ensure  => file,
    require => Package[$mediatomb::package_name],
    content => template($mediatomb::config_template),
    mode    => 444,
  }
}