Puppet Class: randrust::config

Defined in:
manifests/config.pp

Summary

This class handles the configuration file.

Overview

Examples:

include randrust::config


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

class randrust::config (
) {
  # If config_epp is defined use that, otherwise use our default template.
  if $randrust::config_epp {
    $config_content = epp($randrust::config_epp)
  } else {
    $config_content = epp('randrust/randrust.epp')
  }

  file { '/etc/default/randrust':
    ensure  => file,
    owner   => 0,
    group   => 0,
    mode    => '0644',
    content => $config_content,
  }
  # if $randrust::logfile {
  #   file { $randrust::logfile:
  #     ensure => file,
  #     owner  => 'randrust',
  #     group  => 'randrust',
  #     mode   => '0664',
  #   }
  # }
}