Recommit for updates in build 18
This commit is contained in:
@@ -151,7 +151,26 @@
|
||||
53
|
||||
54
|
||||
55
|
||||
56</pre>
|
||||
56
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68
|
||||
69
|
||||
70
|
||||
71
|
||||
72
|
||||
73
|
||||
74
|
||||
75</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||
@@ -160,12 +179,12 @@ class confdroid_alloy::main::files (
|
||||
|
||||
) inherits confdroid_alloy::params {
|
||||
require confdroid_alloy::main::dirs
|
||||
include concat
|
||||
|
||||
# Ensure log_targets is always an array
|
||||
$log_targets_array = Array($confdroid_alloy::params::ay_log_targets, true)
|
||||
|
||||
file { $ay_main_file:
|
||||
ensure => file,
|
||||
concat { $ay_main_file:
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
@@ -173,10 +192,29 @@ class confdroid_alloy::main::files (
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('confdroid_alloy/config.alloy.erb'),
|
||||
notify => Service[$ay_service],
|
||||
}
|
||||
|
||||
concat::fragment { 'confdroid_alloy_config_header':
|
||||
target => $ay_main_file,
|
||||
content => template('confdroid_alloy/config.alloy.erb'),
|
||||
order => '001',
|
||||
}
|
||||
|
||||
if $ay_manage_loki == true {
|
||||
concat::fragment { 'confdroid_alloy_log_targets_default':
|
||||
target => $ay_main_file,
|
||||
content => template('confdroid_alloy/log_targets.alloy.erb'),
|
||||
order => '010',
|
||||
}
|
||||
}
|
||||
|
||||
concat::fragment { 'confdroid_alloy_config_tail':
|
||||
target => $ay_main_file,
|
||||
content => template('confdroid_alloy/config.alloy.tail.erb'),
|
||||
order => '999',
|
||||
}
|
||||
|
||||
# manage logrotate for rsyslog to allow adm group membership
|
||||
file { '/etc/logrotate.d/rsyslog':
|
||||
ensure => file,
|
||||
|
||||
Reference in New Issue
Block a user