Compare commits
1 Commits
aaad80dffb
...
e56fe3966c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e56fe3966c |
@@ -300,24 +300,6 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>which host to use to send the email</p>
|
<p>which host to use to send the email</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>ac_excludepkgs</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Variant[String, Array[String]]</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>packages to exclude from updates</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -333,6 +315,7 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
|
18
|
||||||
19
|
19
|
||||||
20
|
20
|
||||||
21
|
21
|
||||||
@@ -364,23 +347,15 @@
|
|||||||
47
|
47
|
||||||
48
|
48
|
||||||
49
|
49
|
||||||
50
|
50</pre>
|
||||||
51
|
|
||||||
52
|
|
||||||
53
|
|
||||||
54
|
|
||||||
55
|
|
||||||
56
|
|
||||||
57</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 19</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 18</span>
|
||||||
|
|
||||||
class confdroid_automatic::params (
|
class confdroid_automatic::params (
|
||||||
|
|
||||||
String $ac_reqpackages = 'dnf-automatic',
|
String $ac_reqpackages = 'dnf-automatic',
|
||||||
String $ac_pkg_ensure = 'latest',
|
String $ac_pkg_ensure = 'latest',
|
||||||
Variant[String, Array[String]] $ac_excludepkgs = [],
|
|
||||||
|
|
||||||
# updates
|
# updates
|
||||||
String $ac_upgrade_type = 'default',
|
String $ac_upgrade_type = 'default',
|
||||||
@@ -407,11 +382,6 @@ class confdroid_automatic::params (
|
|||||||
$ac_main_config = '/etc/dnf/automatic.conf'
|
$ac_main_config = '/etc/dnf/automatic.conf'
|
||||||
$ac_main_config_erb = 'confdroid_automatic/automatic.conf.erb'
|
$ac_main_config_erb = 'confdroid_automatic/automatic.conf.erb'
|
||||||
|
|
||||||
$ac_excludepkgs_normalized = $ac_excludepkgs ? {
|
|
||||||
Array => join($ac_excludepkgs, ','),
|
|
||||||
default => $ac_excludepkgs,
|
|
||||||
}
|
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include confdroid_automatic::main::config
|
include confdroid_automatic::main::config
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|||||||
@@ -14,13 +14,11 @@
|
|||||||
# @param [String] ac_emit_via how to inform about emitted updates
|
# @param [String] ac_emit_via how to inform about emitted updates
|
||||||
# @param [String] ac_email_to where to send the email to
|
# @param [String] ac_email_to where to send the email to
|
||||||
# @param [String] ac_email_host which host to use to send the email
|
# @param [String] ac_email_host which host to use to send the email
|
||||||
# @param [Variant[String,Array[String]]] ac_excludepkgs packages to exclude from updates
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class confdroid_automatic::params (
|
class confdroid_automatic::params (
|
||||||
|
|
||||||
String $ac_reqpackages = 'dnf-automatic',
|
String $ac_reqpackages = 'dnf-automatic',
|
||||||
String $ac_pkg_ensure = 'latest',
|
String $ac_pkg_ensure = 'latest',
|
||||||
Variant[String, Array[String]] $ac_excludepkgs = [],
|
|
||||||
|
|
||||||
# updates
|
# updates
|
||||||
String $ac_upgrade_type = 'default',
|
String $ac_upgrade_type = 'default',
|
||||||
@@ -47,11 +45,6 @@ class confdroid_automatic::params (
|
|||||||
$ac_main_config = '/etc/dnf/automatic.conf'
|
$ac_main_config = '/etc/dnf/automatic.conf'
|
||||||
$ac_main_config_erb = 'confdroid_automatic/automatic.conf.erb'
|
$ac_main_config_erb = 'confdroid_automatic/automatic.conf.erb'
|
||||||
|
|
||||||
$ac_excludepkgs_normalized = $ac_excludepkgs ? {
|
|
||||||
Array => join($ac_excludepkgs, ','),
|
|
||||||
default => $ac_excludepkgs,
|
|
||||||
}
|
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include confdroid_automatic::main::config
|
include confdroid_automatic::main::config
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,9 +93,5 @@ email_to = <%= @ac_email_to %>
|
|||||||
[base]
|
[base]
|
||||||
# This section overrides dnf.conf
|
# This section overrides dnf.conf
|
||||||
|
|
||||||
<% unless @ac_excludepkgs_normalized.empty? -%>
|
|
||||||
excludepkgs = <%= @ac_excludepkgs_normalized %>
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
# Use this to filter DNF core messages
|
# Use this to filter DNF core messages
|
||||||
debuglevel = 1
|
debuglevel = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user