blob: 08377d9373016ec57c3af9e1d2446c40f1f5a14e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<%- | Array[Pacman::Trigger] $triggers,
Optional[String] $description,
String $exec,
Enum['PreTransation', 'PostTransaction'] $when,
Array[String] $depends,
Boolean $abortOnFail,
Boolean $needsTargets,
| -%>
# Managed by Puppet
[Trigger]
<%- $triggers.each |$trigger| { -%>
Type = <%= $trigger['type'] %>
<%- $trigger['operation'].each |$op| { -%>
Operation = <%= $op %>
<%- } -%>
<% $trigger['target'].each |$target| { -%>
Target = <%= $target %>
<%- } -%>
<%- } %>
[Action]
<%- if ($description) { -%>Description = <%= $description %><% } %>
Exec = <%= $exec %>
When = <%= $when %>
<%- $depends.each |$depend| { -%>
Depends = <%= $depend %>
<%- } -%>
<%- if ($abortOnFail) { -%>AbortOnFail<% } %>
<%- if ($needsTargets) { -%>NeedsTargets<% } %>
|