[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 22:17:33 CEST 2013

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

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=dc0214b6af840aebea7773c7378c1ae0a3a27154

More information about the icinga-checkins mailing list