Professional Documents
Culture Documents
Cong : :Model
Package upgrades
Status
Dominique Dumont
Oct 2010
Outline
1 Why
Conguration upgrade problems
Objectives
2 Cong::Model
Overview
Conguration model creation
User point of view
3 Package upgrades
4 Status
Ensure consistency
Integrated help
Default values
Search
What is a model ?
Cong is represented in a tree.
The model denes its
structure :
A class is represented by a
node
A parameter is
represented by a leaf
a set of elements
(parameters) model GUI
optional : a specication
to access conguration le
(backend)
Simple elements
a default value
Unknown elements
Software evolve
X-* parameters
Declare a fallback
Model analysis
Model declaration
In summary, conguration documentation is translated into a
format usable by Cong : :Model :
Plug-in (Backend class)
custom call-back
must also be provided
Mechanism parameters
In the model
Conguration GUI
Package upgrade :
In all cases
Proposal
Upstream projects
Migration example
{
name => 'Sshd',
...
accept => [ {
name_match => '.*', # default will match /^.*$/
type => 'leaf',
value_type => 'uniline',
summary => 'boilerplate parameter that may hide a typo',
warn => 'Unknow parameter: please make sure there\'s '
. 'no typo and contact the author'
}
],
},
Debian
RedHat
In postinst :
Project status
Approx Perl
YAML
Dpkg Control Copyright
Krb5 Dpkg control
Xorg Augeas
Community
Debian packages
Rpm packages
Future projects
backend
Interfaces
JSON
Search parameters, values and help
XML
Annotations (e.g. comments) on-going
Other ?
We need you !
Integration in distros
Multi-level conguration
Links
Cong : :Model site
http://config-model.wiki.sourceforge.net
Cong : :Model on CPAN
http://search.cpan.org/dist/Config-Model/
Cong : :Model user mailing list https://lists.
sourceforge.net/lists/listinfo/config-model-users
GNU/Linux Mag France n°117 and n°120 Cong : :Model -
Créer un éditeur graphique de conguration avec Perl (2
parts)