-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsettings.rb.example
137 lines (117 loc) · 3 KB
/
settings.rb.example
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
#
# settings.rb.example
#
# copy this file to "settings.rb" and modify
# the settings
#
#
# connection data for your bugzilla database
#
BUGZILLA_HOST='localhost'
BUGZILLA_DB='bugs'
BUGZILLA_USER=''
BUGZILLA_PASSWORD=''
#
# connection data for your redmine database
#
REDMINE_HOST='localhost'
REDMINE_DB='redmine'
REDMINE_USER=''
REDMINE_PASSWORD=''
#
# i found no way to map bugzilla user passwords
# to redmine user passwords.
#
# all migrated users will have this password.
#
# technically bugzilla and redmine use different
# hash algorithms to encode the password. since
# the passwords are hashed there is no way to decode
# them.
#
REDMINE_DEFAULT_USER_PASSWORD = 'redmine'
# Convert LDAP based Bugzilla accounts to use an LDAP Auth Source in Redmine
# Set REDMINE_DEFAULT_AUTH_SOURCE_ID to nil to disable LDAP lookups
# Set REDMINE_DEFUALT_AUTH_SOURCE_ID to the id of the LDAP auth source you configure in Redmine
REDMINE_DEFAULT_AUTH_SOURCE_ID = nil
# LDAP server to query for the bugzilla accounts email address
REDMINE_LDAP = {
'host' => 'example.com',
'port' => '389',
'base' => 'DC=EXAMPLE,DC=COM',
'bind_user' => '[email protected]',
'bind_pass' => 'password',
'email_attr' => 'mail',
'login_attr' => 'sAMAccountName'
}
#
# this is the path where the attachments
# are written to.
# replace this with your redmine attachment path.
# this path is the $redmine_home/files directory.
#
ATTACHMENT_PATH="/tmp"
#
# Bugzilla priority to Redmine priority map
# this mapping is language dependent
# if you have been altering your bugzilla settings
# please check the contents of the "priority"-Table
# in your bugzilla database
#
ISSUE_PRIORITIES = {
"P1" => 7,
"P2" => 6,
"P3" => 4,
"P4" => 3,
"P5" => 3 }
#
# Bugzilla severity to Redmine tracker map
# this mapping is language dependent
# if you have been altering your bugzilla settings
# please check the contents of the "bug_severity"-Table
# in your bugzilla database
#
ISSUE_TRACKERS = {
"critical" => 1,
"trivial" => 1,
"minimal" => 1,
"major" => 1,
"normal" => 1,
"blocker" => 1,
"enhancement" => 1
}
#
# Bugzilla status to Redmine status map
#
# this mapping is language dependent
# if you have been altering your bugzilla settings
# please check the contents of the "bug_status"-Table
# in your bugzilla database
#
# please note that redmine does not have a "REOPENED" state
# by default. the default settings below map reopened bugs
# to the "new" state. If you would like to have a REOPENED state.
# just add a new state on the redmine administration pages and
# change the "REOPENED" entry accordingly
# (normally to "REOPENED" => 7)
#
ISSUE_STATUS = {
"UNCONFIRMED" => 1,
"NEW" => 1,
"ASSIGNED" => 2,
"REOPENED" => 1,
"RESOLVED" => 5,
"VERIFIED" => 2,
"CLOSED" => 5
}
#
# Default Role ID for Project Members
#
# In a default Redmine installation the following options are available:
#
# 1: Non member
# 2: Anonymous
# 3: Manager
# 4: Developer
# 5: Reporter
DEFAULT_ROLE_ID = '3'