"Fossies" - the Fresh Open Source Software Archive

Member "magnum-8.1.0/magnum/conf/docker.py" (1 Oct 2019, 1862 Bytes) of package /linux/misc/openstack/magnum-8.1.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 "docker.py" see the Fossies "Dox" file reference documentation.

    1 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
    2 # use this file except in compliance with the License. You may obtain a copy
    3 # of the License at
    4 #
    5 #    http://www.apache.org/licenses/LICENSE-2.0
    6 #
    7 # Unless required by applicable law or agreed to in writing, software
    8 # distributed under the License is distributed on an "AS IS" BASIS,
    9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   10 # See the License for the specific language governing permissions and
   11 # limitations under the License.
   12 
   13 from oslo_config import cfg
   14 
   15 docker_group = cfg.OptGroup(name='docker',
   16                             title='Options for Docker engine')
   17 
   18 docker_opts = [
   19     cfg.StrOpt('docker_remote_api_version',
   20                default='1.21',
   21                help='Docker remote api version. Override it according to '
   22                     'specific docker api version in your environment.'),
   23     cfg.IntOpt('default_timeout',
   24                default=60,
   25                help='Default timeout in seconds for docker client '
   26                     'operations.'),
   27     cfg.BoolOpt('api_insecure',
   28                 default=False,
   29                 help='If set, ignore any SSL validation issues'),
   30     cfg.StrOpt('ca_file',
   31                help='Location of CA certificates file for '
   32                     'securing docker api requests (tlscacert).'),
   33     cfg.StrOpt('cert_file',
   34                help='Location of TLS certificate file for '
   35                     'securing docker api requests (tlscert).'),
   36     cfg.StrOpt('key_file',
   37                help='Location of TLS private key file for '
   38                     'securing docker api requests (tlskey).'),
   39 ]
   40 
   41 
   42 def register_opts(conf):
   43     conf.register_group(docker_group)
   44     conf.register_opts(docker_opts, group=docker_group)
   45 
   46 
   47 def list_opts():
   48     return {
   49         docker_group: docker_opts
   50     }