-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
38 lines (22 loc) · 1.08 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
NAME: rt-create-ticket
DESCRIPTION:
This script will create a new ticket in RT from command line. You must make sure you have installed
rtkit and optpars before proceding.
USAGE:
Make sure you have a kerberos ticket before you run the script
rt-create-ticket --help
e.g.
create new ticket with owner and requestor vmindru@redhat.com @ http://localhost/API
rt-create-ticket -s "add new feature to rt-ticket-create" -S open -r vmindru@redhat.com -o vmindru@redhat.com -u http://localhost/API
you can set up requestor,owner,RT API URL and defautl ticket status creation as ENV variables
RT_QUEUE - specify default queue where to create tickets
RT_API_URL - default URL to communicate to RT
RT_STATUS - default status when creating a new ticket e.g. open or new
RT_REQUESTOR - specify email of requestor, defaults to $USER+'@redhat.com'
INSTALL:
1) Fetch the script
# git clone https://github.com/vmindru/rt-create-ticket
2) cp rt-create-ticket under $HOME/bin/ or uder /usr/bin
# cp rt-create-ticket $HOME/bin/
3) install rtkit adn KERB auth
# pip install urllib2_kerberos python-rtkit