.. _config-yaml-file: ``config.yaml`` file ==================== .. important:: Starting with Charmcraft 2.5, this file is created automatically from information you provide in the :ref:`charmcraft-yaml-file`. For backwards compatibility, Charmcraft will continue to allow the use of this file, but you may not duplicate keys across the two files. The ``config.yaml`` in a charm's root directory is an optional file that may be used to define the configuration options supported by a charm. The definitions are collected under a single YAML map called ``options``. The rest of this doc gives details about this map. ``options`` ----------- **Status:** Required if the file exists. **Purpose:** The ``options`` key allows charm authors to declare the configuration options that they have defined for a charm. **Structure:** The key contains a definition block for each option, where each definition consists of a charm-author-defined option name and an option description, given in 3 fields -- type, description, and default value: .. code-block:: yaml options: