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