NAME
config-edit - Edit data of configuration managed by Config::Model
SYNOPSIS
config-edit [options] -model Fstab [ commands ... ]
DESCRIPTION
Config-model is a general purpose configuration framework.
The config-edit program will use Config::Model configuration descriptions to provide a user interface so user can easily and securely modify the configuration of their system.
You can specify commands as arguments that will be run on the configuration root before launching the UI. These command follow the syntax defined in Config::Model::Loader.
Options
- -model
-
Mandatory option that specifies the configuration data to be edited. The model must be available in
/etc/config-model.d/
directory in a.pl
file. E.g. this command:config-edit -model Fstab
will look for
/etc/config-model.d/Fstab.pl
model file. See Config::Model for more details. - -ui
-
Specify the user interface type.
tk
: provides a Tk graphical interface (If Config::Model::TkUI is installed).curses
: provides a curses user interface (If Config::Model::CursesUI is installed).shell
: provides a shell like interface. See Config::Model::TermUI for details.none
: No UI provided. Only command line arguments are handled.
- -dev
-
Use this option if you want to test a model under development. This option will add
lib
in@INC
and uselib/Config/Model/models
as model directory. This option is ignored when run as root. - -model_dir
-
Specify an alternate directory to find model files. Mostly useful for tests.
- -instance_name
-
Specify an instance_name. By default the instance name is copied from model name.
- -write_root_dir
-
Specify a pseudo root directory to write the configuration files. (Actual default directory and file names depends on the model (See
-model
option). For instance, if you specify~/mytest
, the/etc/ssh/sshd_config
files will be written in~/mytest/etc/ssh/
directory. - -read_root_dir
-
Specify a pseudo root to read the configuration files. (Actual default directory and file names depends on the model (See
-model
option). - -root_dir
-
Specifies both read and write root dir at the same time.
- -verbose
-
Be (very) verbose
- -debug
-
Provide debug infos.
- -trace
-
Provides a full stack trace when exiting on error.
- -force-load
-
Load file even if error are found in data. Bad data are discarded
Embedding config-edit
You can use config-edit from another program by using -ui simple
option. This way you will be able to send command on the standard input of config-edit
and get the results from the standard output.
SUPPORT
For support, please check the following ressources:
The config-model wiki: http://config-model.wiki.sourceforge.net/
The config-model users mailing list: http://lists.sourceforge.net/mailman/listinfo/config-model-users
AUTHOR
Dominique Dumont, ddumont at cpan dot org
SEE ALSO
Config::Model::Model, Config::Model::Instance, Config::Model::HashId, Config::Model::ListId, Config::Model::WarpedNode, Config::Model::Value