"Fossies" - the Fresh Open Source Software Archive

Member "solum-12.0.0/solum/conductor/config.py" (30 Mar 2022, 1224 Bytes) of package /linux/misc/openstack/solum-12.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "config.py" see the Fossies "Dox" file reference documentation.

    1 # Copyright 2014 - Rackspace Hosting
    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 """Config options for Solum Conductor service."""
   16 
   17 
   18 from oslo_config import cfg
   19 
   20 SERVICE_OPTS = [
   21     cfg.StrOpt('topic',
   22                default='solum-conductor',
   23                help='The queue to add conductor tasks to'),
   24     cfg.HostAddressOpt('host',
   25                        default='localhost',
   26                        help='The location of the conductor rpc queue'),
   27 ]
   28 
   29 opt_group = cfg.OptGroup(
   30     name='conductor',
   31     title='Options for the solum-conductor service')
   32 
   33 
   34 def list_opts():
   35     yield opt_group, SERVICE_OPTS
   36 
   37 
   38 cfg.CONF.register_group(opt_group)
   39 cfg.CONF.register_opts(SERVICE_OPTS, opt_group)