mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
sysutils/puppet-agent: add usecacheonfailure
This commit is contained in:
@@ -11,6 +11,7 @@ Plugin Changelog
|
||||
|
||||
Added:
|
||||
* add new options runinterval and runtimeout
|
||||
* add new option usecacheonfailure
|
||||
|
||||
Changed:
|
||||
* add default values for Puppet Server + Environment
|
||||
|
||||
+6
@@ -29,4 +29,10 @@
|
||||
<type>text</type>
|
||||
<help>The maximum amount of time an agent run is allowed to take. Enter a number followed by one of the supported suffixes: "y" (years), "d" (days), "h" (hours), "m" (minutes), "s" (seconds).</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>puppetagent.general.UseCacheOnFailure</id>
|
||||
<label>Use Cache On Failure</label>
|
||||
<type>checkbox</type>
|
||||
<help>Whether to use the cached configuration when the remote configuration will not compile.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
<ValidationMessage>Should be a number between 1 and 8 characters, optionally followed by either "y", "d", "h", "m" or "s".</ValidationMessage>
|
||||
<Required>Y</Required>
|
||||
</RunTimeout>
|
||||
<UseCacheOnFailure type="BooleanField">
|
||||
<default>1</default>
|
||||
<Required>Y</Required>
|
||||
</UseCacheOnFailure>
|
||||
</general>
|
||||
</items>
|
||||
</model>
|
||||
|
||||
+5
@@ -9,6 +9,11 @@ runinterval = {{ OPNsense.puppetagent.general.RunInterval }}
|
||||
{% if OPNsense.puppetagent.general.RunTimeout|default("") != "" %}
|
||||
runtimeout = {{ OPNsense.puppetagent.general.RunTimeout}}
|
||||
{% endif %}
|
||||
{% if OPNsense.puppetagent.general.UseCacheOnFailure|default("0") == "1" %}
|
||||
usecacheonfailure = true
|
||||
{% else %}
|
||||
usecacheonfailure = false
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.puppetagent.general') and not helpers.empty('OPNsense.puppetagent.general.Environment') %}
|
||||
[agent]
|
||||
environment = {{ OPNsense.puppetagent.general.Environment|default("") }}
|
||||
|
||||
Reference in New Issue
Block a user