-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
235 lines (235 loc) · 6.5 KB
/
config.yaml
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
---
hostdb:
host: 0.0.0.0 # internal ip on which to listen for http connections
port: 8080 # used for listening
pass: badpassword
url: https://hostdb.pdxfixit.com
debug: false
newrelic_appname: HostDB
newrelic_license: abc123
mariadb:
host: localhost # hostname for the mariadb instance
port: 3306 # port for the mariadb instance
db: hostdb # database name
user: app # user with permissions to write to the database
pass: badpassword
params: # k=v
- "maxAllowedPacket=33554432"
api:
version: 0
v0:
context_fields: # this map should be map[type]field, and describes any required context fields for a given type
aws:
- aws-account-id
- aws-region
oneview:
- oneview_url
openstack:
- datacenter
- os_auth_url
- stack_name
- tenant_name
- tenant_id
ucs:
- ucs_url
vrops-vmware:
- vc_name
- vc_url
default_limit: 30 # the default number of records to return on each page of results in the ui
list_fields: # only these fields should be returned by default from lists, and must match the hostdb.Record struct fields (not json)
- type
- hostname
- ip
# this map should be map[queryparam][type][location]datapoint
# each param should have a type, followed by where the data can be found (table, context or data), and finally, the path to the value
query_params:
app:
openstack:
_name: "Application List"
data: ".metadata.\"app.list\""
account-id:
aws:
_name: "AWS Account ID"
context: ".aws-account-id"
account_id:
aws:
_name: "AWS Account ID"
context: ".aws-account-id"
aws-account-alias:
aws:
_name: "AWS Account Alias"
context: ".aws-account-alias"
aws_account_alias:
aws:
_name: "AWS Account Alias"
context: ".aws-account-alias"
aws-account-id:
aws:
_name: "AWS Account ID"
context: ".aws-account-id"
aws_account_id:
aws:
_name: "AWS Account ID"
context: ".aws-account-id"
aws-account-name:
aws:
_name: "AWS Account Name"
context: ".aws-account-name"
aws_account_name:
aws:
_name: "AWS Account Name"
context: ".aws-account-name"
aws-region:
aws:
_name: "AWS Region"
context: ".aws-region"
aws_region:
aws:
_name: "AWS Region"
context: ".aws-region"
datacenter:
openstack:
_name: "Datacenter"
context: ".datacenter"
description:
openstack:
_name: "Description"
data: ".metadata.\"description\""
env:
openstack:
_name: "Environment"
data: ".metadata.\"env\""
flavor:
openstack:
_name: "Openstack Flavor"
context: ".flavor"
flavor_id:
openstack:
_name: "Openstack Flavor ID"
data: ".flavor.id"
hostname:
openstack:
_name: "Hostname"
table: "hostname"
id:
aws-bucket:
data: ".Name"
aws-database:
data: ".DbiResourceId"
aws-directconnect:
data: ".VirtualInterfaceId"
aws-hostedzone:
data: ".Id"
aws-image:
data: ".ImageId"
aws-keypair:
data: ".KeyName"
aws-securitygroup:
data: ".GroupId"
aws-subnet:
data: ".SubnetId"
aws-vpc:
data: ".VpcId"
openstack:
data: ".id"
vrops-vmware:
data: ".resourceId"
image:
openstack:
_name: "Openstack Image"
context: ".image"
ip:
openstack:
_name: "IP Address"
table: "ip"
oneview_url:
oneview:
_name: "OneView URL"
context: ".oneview_url"
owner:
openstack:
_name: "Owner List"
data: ".metadata.\"owner.list\""
puppet:
openstack:
_name: "Puppet Class List"
data: ".metadata.\"puppet.class.list\""
region:
aws:
_name: "AWS Region"
context: ".aws-region"
serial:
ucs-disk:
_name: "Serial Number"
data: ".serial"
ucs-fabric_interconnect:
_name: "Serial Number"
data: ".serial"
ucs-memory:
_name: "Serial Number"
data: ".serial"
ucs-pci:
_name: "Serial Number"
data: ".serial"
ucs-psu:
_name: "Serial Number"
data: ".serial"
ucs-storage:
_name: "Serial Number"
data: ".serial"
ucs-vhba:
_name: "Serial Number"
data: ".serial"
ucs-vic:
_name: "Serial Number"
data: ".serial"
stack:
openstack:
_name: "Openstack Instance"
context: ".stack_name"
stack_name:
openstack:
_name: "Openstack Instance"
context: ".stack_name"
status:
openstack:
_name: "Status"
data: ".status"
tenant:
openstack:
_name: "Openstack Tenant Name"
context: ".tenant_name"
tenant_id:
openstack:
_name: "Openstack Tenant ID"
context: ".tenant_id"
tenant_name:
openstack:
_name: "Openstack Tenant Name"
context: ".tenant_name"
test:
test:
_name: "Test"
data: ".test"
type:
aws:
_name: "Type"
table: "type"
openstack:
_name: "Type"
table: "type"
vrops-vmware:
_name: "Type"
table: "type"
ucs_url:
ucs:
_name: "UCS URL"
context: ".ucs_url"
vc_name:
vrops-vmware:
_name: "vCenter Name"
context: ".vc_name"
vc_url:
vrops-vmware:
_name: "vCenter URL"
context: ".vc_url"