Module ImportFrom alias alias alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr keyword Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str NameLoad Assign NameStore BoolOpOr NameLoad Call NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad ListLoad Str NameLoad body Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad If CompareEq NameLoad ListLoad body Return NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str body Return NameLoad Return NameLoad decorator_list decorator_list
N/A ConfigParser SafeConfigParser NoSectionError NoOptionError N/A logging N/A os os path N/A re ceph_deploy.util.paths gpg N/A logger N/A N/A logging getLogger ceph_deploy.conf N/A cd_conf_template N/A N/A 
#
# ceph-deploy configuration file
#

[ceph-deploy-global]
# Overrides for some of ceph-deploy's global flags, like verbosity or cluster
# name

[ceph-deploy-install]
# Overrides for some of ceph-deploy's install flags, like version of ceph to
# install


#
# Repositories section
#

# yum repos:
# [myrepo]
# baseurl = http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/hammer
# gpgurl = https://download.ceph.com/keys/autobuild.asc
# default = True
# extra-repos = cephrepo  # will install the cephrepo file too
#
# [cephrepo]
# name=ceph repo noarch packages
# baseurl=http://download.ceph.com/rpm-hammer/el6/noarch
# enabled=1
# gpgcheck=1
# type=rpm-md
# gpgkey=https://download.ceph.com/keys/release.asc

# apt repos:
# [myrepo]
# baseurl = http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/ref/hammer
# gpgurl = https://download.ceph.com/keys/autobuild.asc
# default = True
# extra-repos = cephrepo  # will install the cephrepo file too
#
# [cephrepo]
# baseurl=http://download.ceph.com/debian-hammer
# gpgkey=https://download.ceph.com/keys/release.asc
 format gpgurl N/A N/A gpg url release location N/A N/A N/A N/A N/A 
    Find and return the location of the ceph-deploy configuration file. If this
    file does not exist, create one in a default location.
     N/A N/A _locate_or_create N/A load N/A N/A N/A N/A N/A parser N/A Conf N/A N/A N/A parser read N/A location N/A parser N/A _locate_or_create N/A N/A N/A N/A N/A home_config N/A N/A path expanduser ~/.cephdeploy.conf N/A locations N/A N/A N/A path join N/A N/A os getcwd cephdeploy.conf home_config N/A location locations N/A N/A N/A N/A path exists location N/A N/A N/A N/A logger debug N/A found configuration file at: %s location N/A location N/A N/A N/A logger info could not find configuration file, will create one in $HOME N/A N/A create_stub home_config N/A home_config N/A create_stub N/A N/A _path N/A None N/A N/A _path N/A _path N/A N/A path expanduser ~/.cephdeploy.conf N/A N/A N/A logger debug N/A creating new configuration file: %s _path N/A N/A open _path w cd_conf N/A N/A N/A N/A cd_conf write cd_conf_template N/A set_overrides N/A N/A args _conf N/A None N/A N/A 
    Read the configuration file and look for ceph-deploy sections
    to set flags/defaults from the values found. This will alter the
    ``args`` object that is created by argparse.
     N/A subcommand N/A N/A args func __name__ N/A command_section N/A ceph-deploy-%s subcommand N/A conf N/A _conf N/A load N/A section_name N/A N/A conf sections N/A N/A N/A section_name N/A ceph-deploy-global command_section N/A N/A N/A override_subcommand section_name N/A N/A conf items section_name args N/A args N/A override_subcommand N/A N/A section_name section_items args N/A N/A N/A 
    Given a specific section in the configuration file that maps to
    a subcommand (except for the global section) read all the keys that are
    actual argument flags and slap the values for that one subcommand.

    Return the altered ``args`` object at the end.
     N/A _boolean_states N/A yes true on no false off True True True False False False N/A N/A k v section_items N/A N/A N/A N/A normalized_value N/A N/A v lower N/A N/A N/A AttributeError N/A N/A normalized_value v N/A value N/A N/A _boolean_states get normalized_value v N/A N/A setattr args k value N/A args N/A Conf N/A SafeConfigParser N/A N/A 
    Subclasses from SafeConfigParser to give a few helpers for the ceph-deploy
    configuration. Specifically, it addresses the need to work with custom
    sections that signal the usage of custom repositories.
     N/A reserved_sections N/A ceph-deploy-global ceph-deploy-install get_safe N/A N/A self section key default N/A None N/A N/A 
        Attempt to get a configuration value from a certain section
        in a ``cfg`` object but returning None if not found. Avoids the need
        to be doing try/except {ConfigParser Exceptions} every time.
         N/A N/A N/A N/A N/A self get section key N/A N/A N/A N/A NoSectionError NoOptionError N/A N/A default N/A get_repos N/A N/A self N/A N/A N/A 
        Return all the repo sections from the config, excluding the ceph-deploy
        reserved sections.
         N/A N/A section N/A section N/A N/A self sections N/A section N/A self reserved_sections N/A has_repos N/A N/A self N/A N/A N/A 
        boolean to reflect having (or not) any repository sections
         N/A section N/A N/A self sections N/A N/A N/A section N/A self reserved_sections N/A N/A True N/A False N/A property get_list N/A N/A self section key N/A N/A N/A 
        Assumes that the value for a given key is going to be a list
        separated by commas. It gets rid of trailing comments.
        If just one item is present it returns a list with a single item, if no
        key is found an empty list is returned.
         N/A value N/A N/A self get_safe section key N/A N/A N/A value N/A N/A N/A value N/A value N/A N/A N/A re split \s+# value N/A 0 N/A value N/A N/A value split , N/A N/A N/A N/A x strip N/A x value N/A get_default_repo N/A N/A self N/A N/A N/A 
        Go through all the repositories defined in the config file and search
        for a truthy value for the ``default`` key. If there isn't any return
        None.
         N/A repo N/A N/A self get_repos N/A N/A N/A N/A N/A self get_safe repo default N/A N/A self getboolean repo default N/A N/A repo N/A False N/A N/A