Config-Model
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Config/Model/Manual/ModelCreationIntroduction.pod view on Meta::CPAN
Default value that is known by the target application and thus does
not need to be written in the configuration file.
=back
To know which attributes to use, you should read the
documentation of the target application.
For instance, C<AddressFamily> parameter (sshd_config(5)) is specified
with: I<Specifies which address family should be used by sshd(8).
Valid arguments are "any", "inet" (use IPv4 only), or "inet6" (use
IPv6 only). The default is "any".>
For Config::Model, C<AddressFamily> is a type C<leaf> element,
value_type C<enum> and the application falls back to C<any> if this
parameter is left blank in C<sshd_config> file.
Thus the model of this element is :
AddressFamily => {
type => 'leaf',
value_type => 'enum',
upstream_default => 'any',
description => 'Specifies which address family should be used by sshd(8).',
choice => [ 'any', 'inet', 'inet6' ]
}
=head2 Simple list or hash element
Some configuration parameters are in fact a list or a hash of
parameters. For instance, C<approx.conf> can feature a list of remote
repositories:
# remote repositories
debian http://ftp.fr.debian.org/debian
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.515 second using v1.00-cache-2.02-grep-82fe00e-cpan-9f2165ba459b )