Recommit for updates in build 20
This commit is contained in:
@@ -105,7 +105,12 @@
|
|||||||
7
|
7
|
||||||
8
|
8
|
||||||
9
|
9
|
||||||
10</pre>
|
10
|
||||||
|
11
|
||||||
|
12
|
||||||
|
13
|
||||||
|
14
|
||||||
|
15</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
|
<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 {
|
) inherits confdroid_gitea::params {
|
||||||
include confdroid_gitea::main::service
|
include confdroid_gitea::main::service
|
||||||
|
|
||||||
|
exec { 'systemd-daemon-reload':
|
||||||
|
command => '/bin/systemctl daemon-reload',
|
||||||
|
refreshonly => true,
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -130,7 +130,16 @@
|
|||||||
32
|
32
|
||||||
33
|
33
|
||||||
34
|
34
|
||||||
35</pre>
|
35
|
||||||
|
36
|
||||||
|
37
|
||||||
|
38
|
||||||
|
39
|
||||||
|
40
|
||||||
|
41
|
||||||
|
42
|
||||||
|
43
|
||||||
|
44</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
<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 => '0640',
|
mode => '0640',
|
||||||
content => template($ga_config_erb),
|
content => template($ga_config_erb),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { $ga_service_file:
|
||||||
|
ensure => 'file',
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
content => template($ga_service_erb),
|
||||||
|
notify => Exec['systemd-daemon-reload'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -108,7 +108,16 @@
|
|||||||
10
|
10
|
||||||
11
|
11
|
||||||
12
|
12
|
||||||
13</pre>
|
13
|
||||||
|
14
|
||||||
|
15
|
||||||
|
16
|
||||||
|
17
|
||||||
|
18
|
||||||
|
19
|
||||||
|
20
|
||||||
|
21
|
||||||
|
22</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
|
<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 {
|
if $ga_host_fqdn == $fqdn {
|
||||||
require confdroid_gitea::firewall::iptables
|
require confdroid_gitea::firewall::iptables
|
||||||
require confdroid_gitea::main::files
|
require confdroid_gitea::main::files
|
||||||
|
|
||||||
|
service { $ga_service_name:
|
||||||
|
ensure => 'running',
|
||||||
|
enable => true,
|
||||||
|
hasrestart => true,
|
||||||
|
hasstatus => true,
|
||||||
|
require => File[$ga_service_file],
|
||||||
|
subscribe => File[$ga_config_file],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -922,7 +922,12 @@
|
|||||||
136
|
136
|
||||||
137
|
137
|
||||||
138
|
138
|
||||||
139</pre>
|
139
|
||||||
|
140
|
||||||
|
141
|
||||||
|
142
|
||||||
|
143
|
||||||
|
144</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 58</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 58</span>
|
||||||
@@ -1005,6 +1010,11 @@ class confdroid_gitea::params (
|
|||||||
# files
|
# files
|
||||||
$ga_config_file = "${ga_conf_dir}/app.ini"
|
$ga_config_file = "${ga_conf_dir}/app.ini"
|
||||||
$ga_config_erb = 'confdroid_gitea/app.ini.erb'
|
$ga_config_erb = 'confdroid_gitea/app.ini.erb'
|
||||||
|
$ga_service_file = '/etc/systemd/system/gitea.service'
|
||||||
|
$ga_service_erb = 'confdroid_gitea/gitea_service.erb'
|
||||||
|
|
||||||
|
# Service
|
||||||
|
$ga_service_name = 'gitea'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include confdroid_gitea::main::config
|
include confdroid_gitea::main::config
|
||||||
|
|||||||
Reference in New Issue
Block a user