/
config.sample.rb
90 lines (74 loc) · 2.4 KB
/
config.sample.rb
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
# -----------------------------------------------------------------------------------
# Development environment
# -----------------------------------------------------------------------------------
configure :development do
MpdProxy.setup "mpd", 6600, true
DataMapper::Logger.new(STDOUT, :debug)
DataMapper.setup(:default, "mysql://localhost/dashboard_dev")
PROJECTS = {
"project1" => {
:name => "Project 1",
:ci => { },
:pivotal => {
:id => "an integer"
},
:slimtimer => {
:ids => ["tri"]
},
:chartbeat_url => "example.com"
}
}
CI_URL = "http://ci.trike.com.au/api/json"
NAGIOS_URL = "http://nagios.trike.com.au/cgi-bin/nagios3/status.cgi?host=all&type=detail&hoststatustypes=3&serviceprops=42&servicestatustypes=28"
NAGIOS_USER = "dashboard"
NAGIOS_PW = "password"
PIVOTAL_URL = "http://www.pivotaltracker.com/services/v3"
PIVOTAL_TOKEN = "token"
SLIMTIMER_APIKEY = "key"
SLIMTIMER_USERS = {
"email@example.com" => "password"
}
SLIMTIMER_GOD = "email@example.com"
CHARTBEAT_APIKEY = "key"
end
# -----------------------------------------------------------------------------------
# Production environment
# -----------------------------------------------------------------------------------
configure :production do
MpdProxy.setup "mpd", 6600, true
DataMapper.setup(:default, {
:adapter => "mysql",
:database => "dashboard_prod",
:username => "dashoard_prod",
:password => "password",
:host => "mysql"
})
PROJECTS = {
"project1" => {
:name => "Project 1",
:ci => { },
:pivotal => {
:id => "an integer"
},
:slimtimer => {
:ids => ["tri", "tro"],
:task_prefix => "i:tri system"
},
:chartbeat_url => "example.com"
}
}
CI_URL = "http://ci.trike.com.au/api/json"
NAGIOS_URL = "http://nagios.trike.com.au/cgi-bin/nagios3/status.cgi?host=all&type=detail&hoststatustypes=3&serviceprops=42&servicestatustypes=28"
NAGIOS_USER = "dashboard"
NAGIOS_PW = "password"
PIVOTAL_URL = "http://www.pivotaltracker.com/services/v3"
PIVOTAL_TOKEN = "token"
SLIMTIMER_APIKEY = "key"
SLIMTIMER_USERS = {
"email@example.com" => "password"
}
SLIMTIMER_GOD = "email@example.com"
CHARTBEAT_APIKEY = "key"
GOOGLE_PAGE_SPEED_URL = "https://www.googleapis.com/pagespeedonline/v1/runPagespeed"
GOOGLE_SIMPLE_APIKEY = "key"
end