[icinga-checkins] icinga.org: icinga2/feature/configconvert-2743: configconvert: write config files, refactor how objects are exported

git at icinga.org git at icinga.org
Thu May 2 20:13:23 CEST 2013

Module: icinga2
Branch: feature/configconvert-2743
Commit: c0527cba2ce214c053eb128dbb70a44ec5f11dd7
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=c0527cba2ce214c053eb128dbb70a44ec5f11dd7

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu May  2 20:10:24 2013 +0200

configconvert: write config files, refactor how objects are exported

structure is currently hardcoded, but may be changed to getopts later
on. all files are overridden into conf/ (testing only right on).

refactored export code, removed everything from Convert.pm, and export
is now called from the script directly, wrapped all dump loops and added
more function layers in betweed. open/close file handles take care of
everything, next to a header on top of the files for getting to know
their origin better (our hard work, ey?).

refs #4036


 contrib/configconvert/Icinga2/Convert.pm          |   99 +------------
 contrib/configconvert/Icinga2/ExportIcinga2Cfg.pm |  176 ++++++++++++++++++++-
 contrib/configconvert/conf/.gitignore             |    1 +
 contrib/configconvert/icinga2_convert_v1_v2.pl    |   18 ++-
 4 files changed, 189 insertions(+), 105 deletions(-)

Diff:   https://git.icinga.org/?p=icinga2.git;a=commitdiff;h=c0527cba2ce214c053eb128dbb70a44ec5f11dd7

More information about the icinga-checkins mailing list