-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
171 lines (123 loc) · 6.11 KB
/
README
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
NAME
RT::Extension::ReferenceIDoitObjects - Create a ticket in relation to
one or more i-doit objects
DESCRIPTION
This extension gives you the opportunity to combine an issue tracker
like RT with an IT documentation tool / CMDB like i-doit. It uses
i-doit's API to relate a ticket with one or more CIs / objects managed
by i-doit. On i-doit's side you are able to view all tickets related to
an object. This extension also supports i-doit's multi-mandator
functionality.
i-doit ("I document IT") is a web-based tool to document complex IT
infrastructures. It provides several modules like a ITIL compliant
Configuration Management Database (CMDB). More information about i-doit
is available under <http://www.i-doit.org/>. It's core is Free and Open
Source Software. Visit <http://www.i-doit.com/> for commercial support
and additional services. Please note, that i-doit's API (which is
essential for this extension) is currently only implemented in the
commercial branch.
INSTALLATION
This extension requires RT 4.x or higher and a running installation of
i-doit 0.9.9-9 or higher.
To install this extension, run the following commands:
perl Makefile.PL
make
make test
make install
make initdb
Executing the last command creates 2 new custom fields, so please do it
only once. These fields contain the i-doit mandator and the referenced
objects.
CONFIGURATION
To enable this extension edit the RT site configuration based in
"RT_HOME/etc/RT_SiteConfig.pm":
Set(@Plugins,qw(RT::Extension::ReferenceIDoitObjects));
i-doit has a built-in API based on JSON-RPC. To call this API set its
URL:
Set($IDoitURL, 'http://example.org/i-doit/');
Set($IDoitAPI, $IDoitURL . '?api=jsonrpc');
Set($IDoitUser, 'admin');
Set($IDoitPassword, '21232f297a57a5a743894a0e4a801fc3'); # 'admin'
Set($IDoitDefaultMandator, 1);
Set($IDoitDefaultView, 'object'); # 'object', 'tree' or 'item'
Set($IDoitShowCustomFields, 1); # 1 ('yes') or 0 ('no')
$IDoitURL
It's *highly recommended* to establish an encrypted connection
between RT and i-doit over a network, e. g. TLS over HTTP (HTTPS).
$IDoitAPI
Please be aware of browsers' "Same Origin Policy"! This extension
uses AJAX requests access i-doit's API. If RT and i-doit are not
available under the same domain name (or IP address), AJAX calls
will fail.
To avoid this "problem" (actually this policy is very useful) you
can setup an AJAX proxy. This extension already provides such a
proxy located under "etc/". It's written in PHP, so you have to
install PHP 5.2 or higher and the PHP extension "curl" on the same
machine where RT is installed. Make this little script available
through your web server and edit the script by setting $l_url to the
URL of i-doit's API, e. g.
"http://example.org/i-doit/index.php?api=jsonrpc". In RT's site
configuration $IDoitAPI has to be set to this script, e. g.
"http://rt.example.org/path/to/i-doit_api_proxy.php".
$IDoitUser
You need a valid i-doit user with reading permissions.
$IDoitPassword
The user's password is encoded as a MD5 hash.
$IDoitDefaultMandator
You need the identifier of a mandator who owns the objects, but this
may also be set while creating a ticket. This identifier has be to
added to the list of the corresponding custom field.
$IDoitDefaultView
When creating or editing a ticket, this extension adds a so-called
*object browser* to the web interface. The browser gives you three
views on objects:
"object"
Select any object provided by the API and filter them by type.
"tree"
Select users' work stations and their related sub objects. Each
user will be taken by the email address provided by RT's field
"Requestors" if these users are documented in i-doit.
i-doit gives you the possiblity to create relations between
users, their work stations and all equipment related to these
workstations.
Tip: You may synchronize user information between RT and i-doit
via LDAP.
"item"
View and remove all selected items.
$IDoitShowCustomFields
Sometimes it's better to "clean up" the web user interface. Whenever
you only have 1 mandator within i-doit and don't want to edit the
object identifiers manually it's recommended to hide the used custom
fields.
After all your new configuration will take effect after restarting your
RT environment:
rm -rf $RT_HOME/var/mason_data/obj/* && service apache2 restart
This is an example for deleting the mason cache and restarting the
Apache HTTP web server on a Debian GNU/Linux based operating system.
AUTHORS
Benjamin Heisig, <bheisig@synetics.de>
Leonard Fischer, <lfischer@synetics.de>
SUPPORT AND DOCUMENTATION
You can find documentation for this module with the "perldoc" command.
perldoc RT::Extension::ReferenceIDoitObjects
You can also look for information at:
Search CPAN
<http://search.cpan.org/dist/RT-Extension-ReferenceIDoitObjects/>
RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=RT-Extension-ReferenceIDoi
tObjects>
AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/RT-Extension-ReferenceIDoitObjects>
CPAN Ratings
<http://cpanratings.perl.org/d/RT-Extension-ReferenceIDoitObjects>
Repository
<https://github.com/bheisig/rt-extension-referenceidoitobjects>
BUGS
Please report any bugs or feature requests to the authors.
COPYRIGHT AND LICENSE
Copyright 2011-12 synetics GmbH, <http://i-doit.org/>
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Request Tracker (RT) is Copyright Best Practical Solutions, LLC.
SEE ALSO
RT