Compare commits

..

4 Commits

Author SHA1 Message Date
Jenkins Server
ee2f462494 Recommit for updates in build 25 2026-10-04 11:21:22 +02:00
Jenkins Server
d78d1f135d Merge remote-tracking branch 'origin/master' into jenkins-build-25 2026-10-04 11:20:21 +02:00
766f4935ef OP#830 add control for directories 2026-10-04 11:19:54 +02:00
Jenkins Server
d3f2356903 Recommit for updates in build 24 2026-10-02 16:06:56 +02:00
6 changed files with 64 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ This module differentiates between client- and server configuration. If the `FQD
If you have no local time server(s), leave `cy_use_lan_server` at `false` (default), else set it to `true`. This affects only client configurations. If you have no local time server(s), leave `cy_use_lan_server` at `false` (default), else set it to `true`. This affects only client configurations.
The value for `cy_server_fqdn` is a string rather array, assuming either a single time server or a round-robin DNS entry for this, returning several values for the time server (not configured by this module). The value for `cy_server_fqdn` is a string rather array, assuming either a single time server or a round-robin DNS CNAME entry returning several values for the time server (not configured by this module).
INSTALLATION INSTALLATION

View File

@@ -107,7 +107,7 @@
<p>If you have no local time server(s), leave <code>cy_use_lan_server</code> at <code>false</code> (default), else set it to <code>true</code>. This affects only client configurations.</p> <p>If you have no local time server(s), leave <code>cy_use_lan_server</code> at <code>false</code> (default), else set it to <code>true</code>. This affects only client configurations.</p>
<p>The value for <code>cy_server_fqdn</code> is a string rather array, assuming either a single time server or a round-robin DNS entry for this, returning several values for the time server (not configured by this module).</p> <p>The value for <code>cy_server_fqdn</code> is a string rather array, assuming either a single time server or a round-robin DNS CNAME entry returning several values for the time server (not configured by this module).</p>
<p>INSTALLATION</p> <p>INSTALLATION</p>
<ul><li> <ul><li>

View File

@@ -107,7 +107,7 @@
<p>If you have no local time server(s), leave <code>cy_use_lan_server</code> at <code>false</code> (default), else set it to <code>true</code>. This affects only client configurations.</p> <p>If you have no local time server(s), leave <code>cy_use_lan_server</code> at <code>false</code> (default), else set it to <code>true</code>. This affects only client configurations.</p>
<p>The value for <code>cy_server_fqdn</code> is a string rather array, assuming either a single time server or a round-robin DNS entry for this, returning several values for the time server (not configured by this module).</p> <p>The value for <code>cy_server_fqdn</code> is a string rather array, assuming either a single time server or a round-robin DNS CNAME entry returning several values for the time server (not configured by this module).</p>
<p>INSTALLATION</p> <p>INSTALLATION</p>
<ul><li> <ul><li>

View File

@@ -109,7 +109,27 @@
11 11
12 12
13 13
14</pre> 14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span> <pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
@@ -120,8 +140,28 @@ class confdroid_ntp::main::dirs (
require confdroid_ntp::main::install require confdroid_ntp::main::install
# /var/log/chrony # /var/log/chrony
file { &#39;/var/log/chrony&#39;:
ensure =&gt; directory,
owner =&gt; &#39;chrony&#39;,
group =&gt; &#39;chrony&#39;,
mode =&gt; &#39;0750&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; chrony_var_log_t,
seluser =&gt; system_u,
}
# /var/lib/chrony # /var/lib/chrony
file { &#39;/var/lib/chrony&#39;:
ensure =&gt; directory,
owner =&gt; &#39;chrony&#39;,
group =&gt; &#39;chrony&#39;,
mode =&gt; &#39;0750&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; chrony_var_lib_t,
seluser =&gt; system_u,
}
}</pre> }</pre>
</td> </td>
</tr> </tr>

View File

@@ -9,6 +9,26 @@ class confdroid_ntp::main::dirs (
require confdroid_ntp::main::install require confdroid_ntp::main::install
# /var/log/chrony # /var/log/chrony
file { '/var/log/chrony':
ensure => directory,
owner => 'chrony',
group => 'chrony',
mode => '0750',
selrange => s0,
selrole => object_r,
seltype => chrony_var_log_t,
seluser => system_u,
}
# /var/lib/chrony # /var/lib/chrony
file { '/var/lib/chrony':
ensure => directory,
owner => 'chrony',
group => 'chrony',
mode => '0750',
selrange => s0,
selrole => object_r,
seltype => chrony_var_lib_t,
seluser => system_u,
}
} }

View File

@@ -57,7 +57,6 @@ logdir /var/log/chrony
# Select which information is logged. # Select which information is logged.
log <%= @cy_loginfo %> log <%= @cy_loginfo %>
<% end %> <% end %>
@@ -117,5 +116,4 @@ logdir /var/log/chrony
# Select which information is logged. # Select which information is logged.
log <%= @cy_loginfo %> log <%= @cy_loginfo %>
<% end %> <% end %>