Config::Model::Value::LayeredInclude(3pm)

Config::Model::Value::LayeredInclude3pm

Include a sub layer configuration

Usage

    # in a model declaration:
    'element' => [
      'include' => {
        'class' => 'Config::Model::Value::LayeredInclude',
        # usual Config::Model::Value parameters
        'type' => 'leaf',
        'value_type' => 'uniline',
        'convert' => 'lc',
        'summary' => 'Include file for cascaded configuration',
        'description' => 'To support multiple variants of ...'
      },
    ]

Version

version 2.155

Overview

This class inherits from Config::Model::Value. It overrides _store to trigger a refresh of layered value when a value is changed. I.e. changing this value trigger a reload of the referred configuration file which values are used as default value. This class was designed to cope with multistrap <http://wiki.debian.org/Multistrap> configuration.

Caution

A configuration file can support 2 kinds of include:

•

Layered include which sets default values like multistrap or ssh. These includes are read-only.

•

Real includes like "apache". In this cases modified configuration items can be written to included files.

This class works only with the first type

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

Dominique Dumont

From libconfig-model-perl 2.155-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.