Recommit for updates in build 15

This commit is contained in:
2026-02-04 15:26:03 +01:00
parent 306a8eb633
commit c3298c512d
5 changed files with 215 additions and 29 deletions

View File

@@ -202,7 +202,7 @@
<li>
<span class='name'>ga_working_dir</span>
<span class='name'>ga_opt_dir</span>
<span class='type'>(<tt>String</tt>)</span>
@@ -213,7 +213,7 @@
&mdash;
<div class='inline'>
<p>The working directory for Gitea.</p>
<p>The installation directory for Gitea.</p>
</div>
</li>
@@ -304,6 +304,96 @@
&mdash;
<div class='inline'>
<p>The ensure state for required packages.</p>
</div>
</li>
<li>
<span class='name'>ga_domain</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;localhost&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>The domain for the Gitea host. defaults to localhost.</p>
</div>
</li>
<li>
<span class='name'>ga_root_url</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;http://localhost:3000&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>The root URL for Gitea. defaults to <a href="http://localhost:3000">localhost:3000</a>.</p>
</div>
</li>
<li>
<span class='name'>ga_disable_ssh</span>
<span class='type'>(<tt>Boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to disable SSH access in Gitea.</p>
</div>
</li>
<li>
<span class='name'>ga_start_lfs</span>
<span class='type'>(<tt>Boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to start Git LFS support in Gitea.</p>
</div>
</li>
<li>
<span class='name'>ga_start_ssh</span>
<span class='type'>(<tt>Boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to start SSH support in Gitea.</p>
</div>
</li>
@@ -319,13 +409,6 @@
<pre class="lines">
17
18
19
20
21
22
23
24
25
26
@@ -349,21 +432,49 @@
44
45
46
47</pre>
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 17</span>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 24</span>
class confdroid_gitea::params (
# main
Array $ga_reqpackages = [&#39;git&#39;, &#39;wget&#39;, &#39;tar&#39;],
String $ga_pkg_ensure = &#39;present&#39;,
String $ga_host_fqdn = &#39;gitea.example.net&#39;,
String $ga_working_dir = &#39;/opt/gitea&#39;,
String $ga_dl_url = &#39;https://dl.gitea.com/gitea&#39;,
String $ga_dl_version = &#39;1.25.4&#39;,
String $ga_user = &#39;git&#39;,
Array $ga_reqpackages = [&#39;git&#39;, &#39;wget&#39;, &#39;tar&#39;],
String $ga_pkg_ensure = &#39;present&#39;,
String $ga_host_fqdn = &#39;gitea.example.net&#39;,
String $ga_opt_dir = &#39;/opt/gitea&#39;,
String $ga_dl_url = &#39;https://dl.gitea.com/gitea&#39;,
String $ga_dl_version = &#39;1.25.4&#39;,
String $ga_user = &#39;git&#39;,
String $ga_domain = &#39;localhost&#39;,
String $ga_root_url = &#39;http://localhost:3000&#39;,
Boolean $ga_disable_ssh = false,
Boolean $ga_start_lfs = true,
Boolean $ga_start_ssh = false,
# firewall
Boolean $ga_use_firewall = true,
@@ -373,14 +484,25 @@ class confdroid_gitea::params (
) {
# facts
$fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;]
$domain = $facts[&#39;networking&#39;][&#39;domain&#39;]
$os_name = $facts[&#39;os&#39;][&#39;name&#39;]
$os_release = $facts[&#39;os&#39;][&#39;release&#39;][&#39;major&#39;]
$fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;]
$domain = $facts[&#39;networking&#39;][&#39;domain&#39;]
$os_name = $facts[&#39;os&#39;][&#39;name&#39;]
$os_release = $facts[&#39;os&#39;][&#39;release&#39;][&#39;major&#39;]
# directories
$ga_working_dir =&#39;/var/lib/gitea&#39;
$ga_custom_dir = &quot;${ga_working_dir}/custom&quot;
$ga_data_dir = &quot;${ga_working_dir}/data&quot;
$ga_log_dir = &quot;${ga_working_dir}/log&quot;
$ga_tmp_dir = &quot;${ga_working_dir}/tmp&quot;
$ga_conf_dir = &#39;/etc/gitea&#39;
$ga_git_dir = &quot;${ga_data_dir}/git&quot;
$ga_repo_dir = &quot;${ga_git_dir}/repositories&quot;
$ga_uploads_dir = &quot;${ga_data_dir}/uploads&quot;
# files
$ga_config_file = &quot;${ga_conf_dir}/app.ini&quot;
$ga_config_erb = &#39;confdroid_gitea/app.ini.erb&#39;
# includes must be last
include confdroid_gitea::main::config