Puppet Class: cd_alloy::main::files

Inherits:
cd_alloy::params
Defined in:
manifests/main/files.pp

Summary

Class manages required config files for the cd_alloy module

Overview

cd_alloy::main::files.pp Module name: cd_alloy Author: Arne Teuke (arne_teuke@confdroid.com)



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/main/files.pp', line 6

class cd_alloy::main::files (

) inherits cd_alloy::params {

  require cd_alloy::main::dirs

  # Ensure log_targets is always an array
  $log_targets_array = Array($cd_alloy::params::ay_log_targets, true)

  file { $ay_main_file:
    ensure    => file,
    owner     => 'root',
    group     => 'root',
    mode      => '0644',
    selrange  => s0,
    selrole   => object_r,
    seltype   => etc_t,
    seluser   => system_u,
    content   => template('cd_alloy/config.alloy.erb'),
    notify    => Service[$ay_service],
  }

}