mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
sysutils/puppet-agent: add runinterval and runtimeout
This commit is contained in:
@@ -9,6 +9,9 @@ WWW: https://puppet.com/docs/puppet/latest/man/agent.html
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
Added:
|
||||
* add new options runinterval and runtimeout
|
||||
|
||||
Changed:
|
||||
* add default values for Puppet Server + Environment
|
||||
|
||||
|
||||
+12
@@ -17,4 +17,16 @@
|
||||
<type>text</type>
|
||||
<help>Change Puppet Agent Environment</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>puppetagent.general.RunInterval</id>
|
||||
<label>Run Interval</label>
|
||||
<type>text</type>
|
||||
<help>How often Puppet Agent applies the catalog. 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.RunTimeout</id>
|
||||
<label>Run Timeout</label>
|
||||
<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>
|
||||
</form>
|
||||
|
||||
+12
@@ -18,6 +18,18 @@
|
||||
<mask>/^.{1,100}$/u</mask>
|
||||
<ValidationMessage>Should be a string between 1 and 100 characters.</ValidationMessage>
|
||||
</Environment>
|
||||
<RunInterval type="TextField">
|
||||
<default>30m</default>
|
||||
<mask>/^([0-9]{1,8}(?:s|m|h|d|y)?)/u</mask>
|
||||
<ValidationMessage>Should be a number between 1 and 8 characters, optionally followed by either "y", "d", "h", "m" or "s".</ValidationMessage>
|
||||
<Required>Y</Required>
|
||||
</RunInterval>
|
||||
<RunTimeout type="TextField">
|
||||
<default>1h</default>
|
||||
<mask>/^([0-9]{1,8}(?:s|m|h|d|y)?)/u</mask>
|
||||
<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>
|
||||
</general>
|
||||
</items>
|
||||
</model>
|
||||
|
||||
+6
@@ -3,6 +3,12 @@
|
||||
certname = {{ system.hostname|lower }}.{{ system.domain|lower }}
|
||||
server = {{ OPNsense.puppetagent.general.FQDN|default("") }}
|
||||
logdest = /var/log/puppet-agent.log
|
||||
{% if OPNsense.puppetagent.general.RunInterval|default("") != "" %}
|
||||
runinterval = {{ OPNsense.puppetagent.general.RunInterval }}
|
||||
{% endif %}
|
||||
{% if OPNsense.puppetagent.general.RunTimeout|default("") != "" %}
|
||||
runtimeout = {{ OPNsense.puppetagent.general.RunTimeout}}
|
||||
{% 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