Debian Codegraph @

masakarimonitors/conf/consul.py

raw
1 # Copyright(c) 2019 Inspur
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 from oslo_config import cfg
16
17
18 consul_opts = [
19 cfg.StrOpt('agent_manage',
20 help='Addr for local consul agent in management datacenter.'),
21 cfg.StrOpt('agent_tenant',
22 help='Addr for local consul agent in tenant datacenter.'),
23 cfg.StrOpt('agent_storage',
24 help='Addr for local consul agent in storage datacenter.'),
25 cfg.StrOpt('matrix_config_file',
26 help='Config file for consul health action matrix.'),
27 ]
28
29
30 def register_opts(conf):
31 conf.register_opts(consul_opts, group='consul')
32
33
34 def list_opts():
35 return {
36 'consul': consul_opts
37 }