Commit Graph

3714 Commits

Author SHA1 Message Date
Johannes Meyer 521a36e0af Fix method documentation of DbTool::checkPgsqlPriv() 2014-10-30 15:07:33 +01:00
Johannes Meyer e58520c3e6 Drop irritating and redundant docblock warning 2014-10-30 15:06:57 +01:00
Johannes Meyer 1bd1b58d46 Drop unused use statement 2014-10-30 15:06:14 +01:00
Johannes Meyer c1bff9a26e Merge branch 'master' into feature/setup-wizard-7163 2014-10-30 10:38:21 +01:00
Johannes Meyer a7e942cdc9 Show a warning on the first page in case the user already configured web2
refs 
2014-10-30 10:37:51 +01:00
Johannes Meyer 9365e3ca94 Remove the setup token from disk upon completion of the wizard
refs 
2014-10-30 10:36:02 +01:00
Johannes Meyer b9209daea5 Add another useful TODO
refs 
2014-10-30 09:54:14 +01:00
Johannes Meyer ec47f6bdb3 Create permissions.ini when defining the initial administrator
refs 
2014-10-30 09:53:58 +01:00
Eric Lippmann 0bf6dc24a8 monitoring: Use command transports constants in the command transport factory 2014-10-30 09:53:55 +01:00
Eric Lippmann 1b83ec3ce2 Preferences: Fix saving preferences when using a database store
Our DbSelect::where() is not (or no longer?) compatible w/ Zend_Db_Select::where().
DbStore::load() now uses Zend_Db_Select but we should definitely think about our
DbSelect::where() implementation.

fixes 
2014-10-30 09:49:21 +01:00
Eric Lippmann c4554ac692 Log exceptions when saving preferences 2014-10-30 09:48:25 +01:00
Eric Lippmann 39729c9580 Logger: Fix level comparison 2014-10-29 16:51:17 +01:00
Eric Lippmann 2698516005 Auth: Remove setting the not existent layout 'login' when logging out externally authenticated users
fixes 
2014-10-29 16:31:17 +01:00
Johannes Meyer 3fc07496bc Remove RequirementPage from the monitoring module wizard
refs 
2014-10-29 16:26:09 +01:00
Johannes Meyer 504853961b Add temporary requirement for the DOM php module
Should be removed once dompdf isn't shipped with Icinga Web 2 anymore

refs 
refs 
2014-10-29 16:25:25 +01:00
Johannes Meyer c8e323e8a7 Improve requirment checks
refs 
2014-10-29 16:24:31 +01:00
Johannes Meyer 4d8842db09 Return a dummy PHP username in case the POSIX module is not available 2014-10-29 16:22:41 +01:00
Johannes Meyer 81e06fe570 Do not show a requirement for Zend_Db_Adaper_*
refs 
refs 
2014-10-29 15:49:14 +01:00
Johannes Meyer 9cd4aeec06 Fix MySQL login creation in DbTool::addLogin()
refs 
2014-10-29 15:45:57 +01:00
Johannes Meyer 33a64eb55a Do not throw an exception in DbTool due to an implementation detail
Throwing exceptions due to failing logic which is purely an implementation
detail must not affect the calling code in any way.

refs 
2014-10-29 15:45:26 +01:00
Johannes Meyer 47d9426a1f Use a hardcoded path where to look for modules
refs 
2014-10-29 15:43:08 +01:00
Johannes Meyer 2f05ed3d49 Add monitoring module wizard
refs 
2014-10-29 15:40:34 +01:00
Eric Lippmann eb9fe0966b monitoring: Remove unnecessary break after throwing an exception 2014-10-29 13:37:20 +01:00
Eric Lippmann d9194c2696 monitoring: Rewrite Service::getStateText() to get the optional translated textual representation of a service state 2014-10-29 13:36:24 +01:00
Eric Lippmann 5fc1f85b76 monitoring: Write transport directive to instances INI configuration
Further I replaced if-elseif blocks w/ switch when branching based on the value of a single parameter,
which would have to be implied otherwise by looking at all the conditions.
2014-10-29 13:36:09 +01:00
Johannes Meyer ec6948dddf Fix that the ModulePage does not provide a wizard's requirement info
refs 
2014-10-29 11:38:21 +01:00
Johannes Meyer 32006420c5 Fix WelcomePage
There were some grammar- and layout-errors
as well as information missing :(
2014-10-29 11:36:03 +01:00
Eric Lippmann 8ee52f8737 monitoring: throw meaningful logic exceptions in the command file classes 2014-10-29 11:36:00 +01:00
Eric Lippmann 319c5e7833 monitoring: indent php blocks in config/index.phtml properly 2014-10-29 11:33:31 +01:00
Eric Lippmann e7ef1826b7 monitoring: Don't translate exception messages in the remote command file 2014-10-29 10:00:59 +01:00
Eric Lippmann 1cc1521607 monitoring: Don't translate exception messages in the local command file 2014-10-29 10:00:29 +01:00
Johannes Meyer c6b18d2f3d Improve feedback when creating the configuration directory using the CLI
The user gets now a success message as well as not a failure message in case the directory already exists.

refs 
2014-10-29 08:46:22 +01:00
Johannes Meyer 231fbaba37 Let wizard buttons have some bottom margin
Makes them more notable in case they'll get
pushed to the very bottom of the page.

refs 
2014-10-29 08:39:00 +01:00
Johannes Meyer 16e614e71a Fix grammar.. 2014-10-29 08:39:00 +01:00
Johannes Meyer 6a3244d8df Do not show a summary for the MakeDirStep
The user does not configure anything this step will process so there is no
need to show the user a summary about something he can't control.

refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer 83cfcef85c Add EnableModuleStep
refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer 3c438d9221 Allow install steps to return no summary
refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer dbf5512252 Drop Icinga\Application\Installation and introduce Icinga\Installation
refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer a899070606 Move MakeDirStep to Icinga\Web\Setup
refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer d19d4b1a4c Fix the ModulePage's request handling
This caused a module's summary page not being able to render the
summary as /<ModuleSetup>/->setupPage() is never been called
after a wizard is completed.

refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer dd6b045183 Fix that the ModulePage cant find modules when being asked for
refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer 98acc24869 Create configuration sub directories as part of the setup wizard
refs 
2014-10-29 08:38:59 +01:00
Johannes Meyer 85f7dcf825 Revert "Create sub directories with the CLI's setup command as well"
This reverts commit 9589919ae8.
2014-10-29 08:38:59 +01:00
Johannes Meyer 1fd4a301c4 Pass the wizard title to the summary page to be able to reuse the page
Module wizards can now use the SummaryPage as well if they want to.

refs 
2014-10-29 08:38:58 +01:00
Johannes Meyer e5512f586f Do not use getForm() but getCurrentPage() to avoid page creation
refs 
2014-10-29 08:38:58 +01:00
Johannes Meyer 3206ded18c Pass the entire page data to the ModulePage
As module wizards might require some configuration values aggregated by
the main application wizard we pass the entire page data to each wizard as
if the data were aggregated by a module wizard itself.

refs 
2014-10-29 08:38:58 +01:00
Matthias Jentsch b5468a122d Explain token generation on the welcome page
Add token generation manual to the welcome page. Display example code
containing the current configuration dir, to generate tokens.

fixes 
2014-10-28 17:32:49 +01:00
Eric Lippmann 6973492b0d monitoring: Translate headings in the config overview 2014-10-28 14:01:00 +01:00
Eric Lippmann 71e25f268a monitoring: Rename label of the path to the local Icinga command file
Rename 'Local filepath' to 'Command file' because the remote instance form is using 'Command file' too.
2014-10-28 13:52:10 +01:00
Eric Lippmann d04eceaeb2 monitoring: Remove 'Remote' prefix from the remote instance form elements' labels
The 'Remote' prefix of the remote instance form elements' labels is superfluous because the
instance's type already tells that it's remote.
2014-10-28 13:50:42 +01:00