[icinga-checkins] icinga.org: icingaweb2-module-director/master: cli/jobs: temporarily add renderconfig action

git at icinga.org git at icinga.org
Sun Feb 28 17:12:40 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 1ff5e7a6cc17c134321ffa5509614126db16d4d0
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=1ff5e7a6cc17c134321ffa5509614126db16d4d0

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Feb 28 16:30:11 2016 +0100

cli/jobs: temporarily add renderconfig action

---

 application/clicommands/JobsCommand.php |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/application/clicommands/JobsCommand.php b/application/clicommands/JobsCommand.php
index 5e57440..7e77b5f 100644
--- a/application/clicommands/JobsCommand.php
+++ b/application/clicommands/JobsCommand.php
@@ -5,6 +5,7 @@ namespace Icinga\Module\Director\Clicommands;
 use Icinga\Module\Director\Cli\Command;
 use Icinga\Module\Director\Objects\ImportSource;
 use Icinga\Module\Director\Objects\SyncRule;
+use Icinga\Module\Director\IcingaConfig\IcingaConfig;
 use Icinga\Module\Director\Import\Import;
 use Icinga\Module\Director\Import\Sync;
 use Icinga\Application\Benchmark;
@@ -25,6 +26,11 @@ class JobsCommand extends Command
              ;
     }
 
+    public function renderconfigAction()
+    {
+        IcingaConfig::generate($this->db());
+    }
+
     protected function hasBeenDisabled()
     {
         return false;



More information about the icinga-checkins mailing list