Recommit for updates in build 20

This commit is contained in:
2026-02-05 15:44:45 +01:00
parent 5bd0bd784f
commit 8f15cd1c2e
4 changed files with 60 additions and 4 deletions

View File

@@ -105,7 +105,12 @@
7
8
9
10</pre>
10
11
12
13
14
15</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
@@ -114,6 +119,11 @@ class confdroid_gitea::main::config (
) inherits confdroid_gitea::params {
include confdroid_gitea::main::service
exec { &#39;systemd-daemon-reload&#39;:
command =&gt; &#39;/bin/systemctl daemon-reload&#39;,
refreshonly =&gt; true,
}
}</pre>
</td>
</tr>

View File

@@ -130,7 +130,16 @@
32
33
34
35</pre>
35
36
37
38
39
40
41
42
43
44</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
@@ -163,6 +172,15 @@ class confdroid_gitea::main::files (
mode =&gt; &#39;0640&#39;,
content =&gt; template($ga_config_erb),
}
file { $ga_service_file:
ensure =&gt; &#39;file&#39;,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
content =&gt; template($ga_service_erb),
notify =&gt; Exec[&#39;systemd-daemon-reload&#39;],
}
}
}</pre>
</td>

View File

@@ -108,7 +108,16 @@
10
11
12
13</pre>
13
14
15
16
17
18
19
20
21
22</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
@@ -119,6 +128,15 @@ class confdroid_gitea::main::service (
if $ga_host_fqdn == $fqdn {
require confdroid_gitea::firewall::iptables
require confdroid_gitea::main::files
service { $ga_service_name:
ensure =&gt; &#39;running&#39;,
enable =&gt; true,
hasrestart =&gt; true,
hasstatus =&gt; true,
require =&gt; File[$ga_service_file],
subscribe =&gt; File[$ga_config_file],
}
}
}</pre>
</td>

View File

@@ -922,7 +922,12 @@
136
137
138
139</pre>
139
140
141
142
143
144</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 58</span>
@@ -1005,6 +1010,11 @@ class confdroid_gitea::params (
# files
$ga_config_file = &quot;${ga_conf_dir}/app.ini&quot;
$ga_config_erb = &#39;confdroid_gitea/app.ini.erb&#39;
$ga_service_file = &#39;/etc/systemd/system/gitea.service&#39;
$ga_service_erb = &#39;confdroid_gitea/gitea_service.erb&#39;
# Service
$ga_service_name = &#39;gitea&#39;
# includes must be last
include confdroid_gitea::main::config