add apply_template to generalize the translation of parameterized files into
[plcrt.git] / conf.d / planetlab.pl
1
2 @Users = (
3         {       Name         => 'Support Watch List',
4                 Gecos        => 'support watch list',
5                 RealName     => 'supportwatchlist',
6                 Password     => '',
7                 EmailAddress => 'PLC_RT_CC_ADDRESS',
8                 Comments     => '',
9                 Privileged   => '1', } );
10
11 # These addresses all use the same email but it can easily be changed within RT
12 @Watchers = (
13         {       Queue => 'support',
14                 Watchers   => [ {Email => 'PLC_RT_CC_ADDRESS', Type => 'AdminCC',} ] },
15         {       Queue => 'monitor',
16                 Watchers   => [ {Email => 'PLC_RT_CC_ADDRESS', Type => 'AdminCC',} ] },
17         {       Queue => 'legal',
18                 Watchers   => [ {Email => 'PLC_RT_CC_ADDRESS', Type => 'AdminCC',} ] },
19         {       Queue => 'security',
20                 Watchers   => [ {Email => 'PLC_RT_CC_ADDRESS', Type => 'AdminCC',} ] },
21 );
22
23 @ACL = (
24         { GroupDomain => 'SystemInternal',
25           GroupType => 'Everyone',
26           Right => 'CreateTicket', },
27
28         { GroupDomain => 'SystemInternal',
29           GroupType => 'Everyone',
30           Right => 'ReplyToTicket', },
31
32         { GroupDomain => 'RT::System-Role',
33           GroupType => 'AdminCc',
34           Right => 'WatchAsAdminCc', },
35           
36         { GroupDomain => 'RT::System-Role',
37           GroupType => 'Cc',
38           Right => 'ReplyToTicket', },
39
40         { GroupDomain => 'RT::System-Role',
41           GroupType => 'Cc',
42           Right => 'Watch', },
43
44         { GroupDomain => 'RT::System-Role',
45           GroupType => 'Owner',
46           Right => 'ReplyToTicket', },
47
48         { GroupDomain => 'RT::System-Role',
49           GroupType => 'Owner',
50           Right => 'ModifyTicket', },
51 );
52
53 @Scrips = (
54     {  ScripCondition => 'On Create',
55        ScripAction    => 'AutoReply To Requestors',
56        Template       => 'AutoReply' },
57     {  ScripCondition => 'On Correspond',
58        ScripAction    => 'Notify Requestors, Ccs and AdminCcs',
59        Template       => 'PlanetLab Correspond with CC in body', },
60     {  ScripCondition => 'On Create',
61        ScripAction    => 'Notify AdminCcs',
62        Template       => 'PlanetLab Create with CC in body', },
63 );
64
65 @Templates = (
66     {  Queue       => '0',
67        Name        => 'Autoreply',                                         # loc
68        Description => 'Default Autoresponse template',                     # loc
69        Content     => 'Subject: AutoReply: {$Ticket->Subject}
70
71 Hello,
72
73 Thank you very much for reporting this.
74
75 This message was automatically generated in response to the
76 creation of a trouble ticket regarding:
77
78         "{$Ticket->Subject()}"
79
80 There is no need to reply to this message right now.  Your ticket has been
81 assigned an ID of [{$rtname} #{$Ticket->id()}].
82
83 Please include the string:
84
85     [{$rtname} #{$Ticket->id}]
86
87 in the subject line of all future correspondence about this issue. To do so, 
88 you may reply to this message.
89
90 Thank you,
91 {$Ticket->QueueObj->CorrespondAddress()}
92
93 -------------------------------------------------------------------------
94 {$Transaction->Content()}
95 '
96     },
97     {
98       Queue       => '0',
99       Name        => 'PlanetLab Correspond with CC in body',
100       Description => 'Message with the recipients in the header',          # loc
101       Content     => 'RT-Attach-Message: yes
102
103 Email Recipients (see http://PLC_RT_HOSTNAME/support )
104     Owner: {$Ticket->OwnerObj->Name}
105     Requestor: {$Ticket->RequestorAddresses}
106 { if ($acc=$Ticket->AdminCcAddresses) { "    Ticket Ccs: " . $acc } }
107
108 ==================================================
109
110 {$Transaction->Content()}
111 '
112     },
113     {
114       Queue       => '0',
115       Name        => 'PlanetLab Create with CC in body',
116       Description => 'Create with CC in body',                 # loc
117       Content     => 'RT-Attach-Message: yes
118
119 Email Recipients (see http://PLC_RT_HOSTNAME/support )
120     Owner: {$Ticket->OwnerObj->Name}
121     Requestor: {$Ticket->RequestorAddresses}
122 { if ($acc=$Ticket->AdminCcAddresses) { "    Ticket Ccs: " . $acc } }
123
124 ==================================================
125
126 {$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon.
127 Transaction: {$Transaction->Description}
128
129 Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"}
130
131 {$Transaction->Content()}
132 '
133     },
134 );
135
136 @Queues = (
137            { Name              => 'monitor',
138          Description       => 'Queue for monitor',
139          CorrespondAddress => 'monitor@PLC_RT_HOSTNAME',
140          CommentAddress    => '', },
141
142            { Name              => 'security',
143          Description       => 'Queue for security issues',
144          CorrespondAddress => 'security@PLC_RT_HOSTNAME',
145          CommentAddress    => '', },
146
147            { Name              => 'legal',
148          Description       => 'Queue for legal issues',
149          CorrespondAddress => 'legal@PLC_RT_HOSTNAME',
150          CommentAddress    => '', },
151 )