config-model-edit
graphical model editor for Config::Model
Install
- All systems
-
curl cmd.cat/config-model-edit.sh
- Debian
-
apt-get install libconfig-model-itself-perl
- Ubuntu
-
apt-get install libconfig-model-itself-perl
- Kali Linux
-
apt-get install libconfig-model-itself-perl
- Fedora
-
dnf install perl-Config-Model-Itself
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install libconfig-model-itself-perl
- Raspbian
-
apt-get install libconfig-model-itself-perl
- Dockerfile
- dockerfile.run/config-model-edit
libconfig-model-itself-perl
graphical model editor for Config::Model
Config::Model::Itself and the command config-model-edit provide a Perl/Tk graphical interface to edit configuration models that will be used by Config::Model. Config::Model::Itself also provides a model for Config::Model (hence the Itself name, you can also think of it as a meta-model). The model editor will use this meta-model to construct the graphical interface so you can edit the configuration model for *your* application. [ Config::Model::Itself is the "eat your own dog food" principle applied to Config::Model ;-) ] Let's step back a little to explain. Any configuration data is, in essence, structured data. This data could be stored, for instance, in an XML file. A configuration model is a way to describe the structure and relation of all items of a configuration data set. This configuration model is also expressed as structured data. This structure data is structured and follows a set of rules which are described for humans in Config::Model. The structure and rules documented in Config::Model are also expressed in a model in the files provided with Config::Model::Itself. Hence the possibity to verify, modify configuration data provided by Config::Model can also be applied on configuration models. The model editor program is config-model-edit. Since the model editor and the configuration data editor are based on the same graphical module, you will use similar UIs to edit configuration data (for instance OpenSsh configuration data from sshd_config) and OpenSsh model (if you need to add new parameters in OpenSsh model) Once this package is installed, you can run: $ config-model-edit -model <model_name> For instance, if you have installed Config::Model::OpenSsh (not yet packaged), you can run: $ config-model-edit -model OpenSsh If you save OpenSsh configuration model, config-model-edit will create a lib directory and write the modified model there.
perl-Config-Model-Itself
Config::Itself module and its model files provide a model of
Config:Model (hence the Itself name).