Johannes Meyer
c3e28a42fb
Remove configuration option for setting the access mode on new files
2014-11-12 09:40:07 +01:00
Thomas Gelf
f39301d47f
Cli: use STDOUT as the default logger
...
fixes #7636
2014-11-11 19:43:22 +01:00
Thomas Gelf
f347a74982
Logger\StdoutWriter: initial implementation
...
This log writer writes to STDOUT and uses ANSI colors on real terminals
fixes #7636
2014-11-11 19:40:59 +01:00
Thomas Gelf
629118b590
LogWriter: setting config must not be abstract
...
Storing the given config makes sense as default action, no need to
abstract the constructor per default.
refs #7636
2014-11-11 19:39:15 +01:00
Johannes Meyer
a6af51f402
Fix that Config::fromSection cannot return the actual value
...
refs #7147
2014-11-11 15:51:54 +01:00
Johannes Meyer
f12473d34b
Load core modules also when bootstrapping the CLI
...
refs #7163
2014-11-11 10:00:28 +01:00
Johannes Meyer
9d292269b1
Merge branch 'master' into feature/setup-wizard-7163
...
Conflicts:
application/forms/Config/Resource/LdapResourceForm.php
test/php/application/forms/Config/Authentication/LdapBackendFormTest.php
2014-11-11 09:44:11 +01:00
Johannes Meyer
8af13f564b
Add support for "core" modules and make the setup module such a module
...
refs #7163
2014-11-10 17:34:49 +01:00
Johannes Meyer
21ed823da7
Adjust namespace declarations
...
refs #7163
2014-11-10 16:31:40 +01:00
Johannes Meyer
8f212018ec
Move the setup wizard code to a dedicated module
...
refs #7163
2014-11-10 15:11:44 +01:00
Johannes Meyer
79493592bb
Do not use Installer anywhere.
...
"It's setup."
refs #7163
2014-11-10 10:30:52 +01:00
Johannes Meyer
f85ddeb215
Do not hardcode the php username dummy in Icinga\Application\Platform
...
refs #7163
2014-11-07 14:40:28 +01:00
Johannes Meyer
eadc7d8415
Remove the POSIX requirement
...
refs #7163
2014-11-07 14:39:34 +01:00
Johannes Meyer
9a5d01b3fd
Check the mysql or pgsql extension instead of just pdo, really
2014-11-07 14:31:20 +01:00
Johannes Meyer
7b99b74ae1
Prefer Icinga\Application\Config instead of Zend_Config
...
refs #7147
2014-11-07 13:53:03 +01:00
Johannes Meyer
268569114c
Fix that an error is thrown when reading INI files without trailing newlines
2014-11-07 13:38:35 +01:00
Johannes Meyer
4537b2932e
Fix that current(), key(), etc does not work with Config objects
2014-11-07 13:37:09 +01:00
Johannes Meyer
83f386f92a
Do not extend Zend_Config in Icinga\Application\Config
...
refs #7147
fixes #7580
2014-11-06 15:41:31 +01:00
Alexander Fuhr
2e24c53224
Merge branch 'master' into feature/localization-form-6073
...
Conflicts:
application/forms/Config/GeneralForm.php
application/forms/Preference/GeneralForm.php
library/Icinga/Application/Web.php
2014-11-05 13:27:45 +01:00
Johannes Meyer
5a169ee656
Fix "PreservingIniWriter not found"
...
The class was renamed a few commits ago to "IniWriter"
2014-11-04 14:35:57 +01:00
Johannes Meyer
170ded6510
Merge branch 'master' into feature/setup-wizard-7163
...
Conflicts:
library/Icinga/Authentication/Backend/LdapUserBackend.php
library/Icinga/File/Ini/IniWriter.php
2014-11-04 14:22:53 +01:00
Johannes Meyer
581935c26f
Fix database setup and add support for the new schema
...
refs #7163
2014-11-04 13:51:15 +01:00
Eric Lippmann
45d3005f3c
Throw exceptions on PHP warnings
...
Sometimes we miss PHP warnings because our layout overlays them.
2014-11-04 13:20:41 +01:00
Eric Lippmann
e5091ec835
Fix Modules\Manager::getLoadedModules() PHPDoc
2014-10-31 11:22:27 +01:00
Eric Lippmann
0124a33037
Add method Config::isEmpty()
2014-10-31 11:20:17 +01:00
Eric Lippmann
16352fc10c
Move Logger to the Application namespace
...
fixes #7148
2014-10-31 10:27:17 +01:00
Johannes Meyer
9365e3ca94
Remove the setup token from disk upon completion of the wizard
...
refs #7163
2014-10-30 10:36:02 +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 #7163
refs #6172
2014-10-29 16:25:25 +01:00
Johannes Meyer
c8e323e8a7
Improve requirment checks
...
refs #7163
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 #7163
refs #7464
2014-10-29 15:49:14 +01:00
Johannes Meyer
47d9426a1f
Use a hardcoded path where to look for modules
...
refs #7163
2014-10-29 15:43:08 +01:00
Johannes Meyer
ec6948dddf
Fix that the ModulePage does not provide a wizard's requirement info
...
refs #7163
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
Johannes Meyer
dbf5512252
Drop Icinga\Application\Installation and introduce Icinga\Installation
...
refs #7163
2014-10-29 08:38:59 +01:00
Johannes Meyer
a899070606
Move MakeDirStep to Icinga\Web\Setup
...
refs #7163
2014-10-29 08:38:59 +01:00
Johannes Meyer
dd6b045183
Fix that the ModulePage cant find modules when being asked for
...
refs #7163
2014-10-29 08:38:59 +01:00
Johannes Meyer
98acc24869
Create configuration sub directories as part of the setup wizard
...
refs #7163
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 #7163
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 #7163
2014-10-29 08:38:58 +01:00
Matthias Jentsch
2e8c0cffe6
Check privileges of database user accounts before continuing with the setup
...
Implement owner and privilege checks for postgresql, and fix some errors in
existing MySQL privilege checks.
resolves #7389
2014-10-27 15:08:52 +01:00
Johannes Meyer
2f83976f50
Add ModulePage
...
refs #7163
2014-10-24 17:10:17 +02:00
Johannes Meyer
1bd5868a88
Fix access of an array key which does not exist in some circumstances
...
refs #7163
2014-10-24 13:57:30 +02:00
Johannes Meyer
a8dd9c933d
Add the possibility for modules to provide a setup wizard
...
refs #7163
2014-10-24 13:52:26 +02:00
Johannes Meyer
64e6886c9c
Make it possible to pass the module paths directly to the module manager
2014-10-24 13:51:23 +02:00
Johannes Meyer
d90d6fe6a9
Improve summary page layout a bit
...
refs #7163
2014-10-23 15:16:25 +02:00
Johannes Meyer
a6cbde54c5
Move summary HTML generation from the view script to each install step
...
refs #7163
2014-10-23 15:15:59 +02:00
Johannes Meyer
216c072024
Implement installation routines modularly
...
This allows us to "merge" module installation
routines with our main installer routines.
refs #7163
2014-10-23 11:41:16 +02:00
Johannes Meyer
f5c4708ae2
Add a default file mode for new configuration files
...
The file mode which can be configured in the general configuration is now
used when creating new configuration files with the PreservingIniWriter.
2014-10-21 17:02:21 +02:00
Johannes Meyer
e72f2cac24
Fix that page information gets deleted when navigating back
...
refs #7163
2014-10-17 15:42:06 +02:00
Johannes Meyer
24b6274f01
Fix logging configuration installation
...
refs #7163
refs #6933
2014-10-17 13:05:56 +02:00
Johannes Meyer
9f127be1dc
Merge branch 'master' into feature/setup-wizard-7163
...
Conflicts:
application/forms/Config/General/LoggingConfigForm.php
2014-10-17 13:04:59 +02:00
Johannes Meyer
a54c81b2a7
Adjust button labels only in WebSetup::addButtons(), not in view scripts
...
refs #7163
2014-10-17 11:20:20 +02:00
Eric Lippmann
6c59c22044
Bootstrap: Remove logging configuration directives which do not override defaults
2014-10-16 15:59:56 +02:00
Eric Lippmann
6dfefb0e73
CLI: Fix logging setup
2014-10-16 15:59:35 +02:00
Eric Lippmann
985154d3d8
Throw an ErrorException on E_STRICT errors
2014-10-16 15:51:18 +02:00
Johannes Meyer
d73423ceee
Style summary page
...
Dropped also the layout logic as it was too generic.
refs #7163
2014-10-16 14:52:26 +02:00
Johannes Meyer
45e179d939
Fix that `type' is missing for installed ldap authentication backends
...
refs #7163
2014-10-15 10:44:08 +02:00
Johannes Meyer
13678bb33e
Add useful @todo hint
...
refs #7163
2014-10-13 09:35:00 +02:00
Johannes Meyer
52016d81b9
Consider `root_dn' and `base_dn' when installing config files
...
refs #7163
2014-10-13 09:34:22 +02:00
Johannes Meyer
ca6eca6b67
Quote database names, usernames and passwords when setting up the db
...
refs #7163
2014-10-09 16:02:18 +02:00
Johannes Meyer
78b130a4f3
Fix that the LDAP discovery page is shown for non-LDAP authentication
...
refs #7163
2014-10-09 15:05:21 +02:00
Johannes Meyer
169a646a1a
Fix that LDAP discovery suggestions are not populated
...
I've broke this when re-commiting the changes made by Matthias and fixed
this by populating dependent pages directly in WebSetup::setupPage.
refs #7163
2014-10-09 10:47:45 +02:00
Matthias Jentsch
e29a568bff
Add LDAP discovery pages
...
refs #7163
2014-10-09 10:20:07 +02:00
Johannes Meyer
7c202dd8fa
Improve the db-summary text and db-creation/-resource step handling
...
refs #7163
2014-10-08 15:36:26 +02:00
Johannes Meyer
8fa8642917
Do not show the db-creation step when the db-resource step was skipped
...
refs #7163
2014-10-08 15:35:12 +02:00
Johannes Meyer
89ae05899b
Query a particular login name and create database logins using the DbTool
...
refs #7163
2014-10-08 15:33:51 +02:00
Johannes Meyer
baa6abdb00
Relax schema check
...
Checking one table for its existence is more than enough. Creating a diff
implies conditional CREATE TABLE instructions and the like, what we want
to avoid.
refs #7163
2014-10-08 11:24:05 +02:00
Johannes Meyer
393191ced1
Add admin creation routine
...
refs #7163
2014-10-08 10:26:12 +02:00
Johannes Meyer
abc34a5f1a
Add database setup routines
...
refs #7163
2014-10-07 17:08:50 +02:00
Johannes Meyer
7da11b83f5
Fix that the database is displayed instead of the login in the db summary
...
refs #7163
2014-10-07 17:06:51 +02:00
Johannes Meyer
1136a09741
Wrap report message registration in a specific method
...
refs #7163
2014-10-07 17:05:55 +02:00
Johannes Meyer
627a19a2a9
Fix warning "references should be passed by variable"
2014-10-07 15:57:00 +02:00
Johannes Meyer
04ff2e271a
Drop dependent page data more earlier
...
Not only the "setup_authentication_backend" page depends on the auth
type but also the "setup_admin_account" page, so just drop both entries
once a new auth type gets submitted.
refs #7163
2014-10-06 16:52:19 +02:00
Johannes Meyer
ad7965228c
Add install routines for all INI files
...
This is just a quick&dirty implementation. Once we know how modules are
being processed/installed this needs to be revisited.
refs #7163
2014-10-06 16:49:29 +02:00
Johannes Meyer
ac255eeda0
Change form name of GeneralConfigPage to "setup_general_config"
...
Used to be "setup_application_config".
refs #7163
2014-10-06 13:52:32 +02:00
Johannes Meyer
9cbd7e945d
Do not permit the user to give equal names to multiple resources
...
refs #7163
2014-10-06 09:43:50 +02:00
Johannes Meyer
b4a1364a92
Add summary report
...
refs #7163
2014-10-06 09:30:51 +02:00
Johannes Meyer
f29705fc59
Add summary page
...
refs #7163
2014-10-02 17:11:00 +02:00
Johannes Meyer
0f302bfc0a
Fix form population in case the user navigates backwards to make changes
...
refs #7163
2014-10-02 17:08:55 +02:00
Johannes Meyer
4f52da95ac
Drop page data when skipping a page that was displayed before
...
refs #7163
2014-10-02 16:35:41 +02:00
Johannes Meyer
464fefa578
Fix exception in case the database access credentials are invalid
...
refs #7163
2014-10-01 15:44:43 +02:00
Johannes Meyer
08d259eccf
Add database creation page
...
refs #7163
2014-10-01 09:16:53 +02:00
Johannes Meyer
c78b016d74
Remove boiler plate code
2014-09-30 10:26:10 +02:00
Johannes Meyer
cbadaa78d6
Merge branch 'master' into feature/setup-wizard-7163
2014-09-29 15:35:52 +02:00
Johannes Meyer
28d16a8961
Add web setup
...
Page config and dependency handling is implemented and works like a
charm. Though there is one known bug that occurs when navigating back,
taking changes and moving onward to a page that needs to update its
state due to the changes while adding some elements that have similar
names as the ones shown before. This is only an issue with hidden elements.
refs #7163
2014-09-29 14:30:34 +02:00
Johannes Meyer
2d24828230
Add web installer
...
Logic is still missing and follows later.
refs #7163
2014-09-29 14:23:42 +02:00
Johannes Meyer
5b3d549e5c
Add some more platform related calls
...
refs #7163
2014-09-29 11:21:56 +02:00
Alexander Fuhr
c8a24f72b8
Introduce getValue() in Preferences and fix the loading of values
2014-09-26 14:15:50 +02:00
Eric Lippmann
c13823d406
bootstrap: Fix error reporting level not including E_STRICT
2014-09-19 13:19:24 +02:00
Eric Lippmann
c51b05296e
Merge branch 'master' into bugfix/commands-6593
2014-09-19 13:18:47 +02:00
Alexander Fuhr
b38ef9c0bd
Implement plural and context based translation functionality
...
refs #6982
2014-09-16 15:19:23 +02:00
Alexander Fuhr
e2b5e05f21
Implement plural translation (testing)
2014-09-15 14:11:42 +02:00
Alexander Fuhr
583fd46f15
Experimental Plural Translation Implementation
...
Personal BACKUP
2014-09-11 18:04:10 +02:00
Johannes Meyer
83772c6684
Merge branch 'master' into bugfix/rebuild-form-builder-5525
2014-09-09 16:03:22 +02:00
Alexander Fuhr
7386ae5ef5
Update Module img_ route to get image subfolders
2014-09-08 11:31:05 +02:00
Johannes Meyer
ae9e5a40cc
Merge branch 'master' into bugfix/rebuild-form-builder-5525
...
Conflicts:
application/forms/Preference/GeneralForm.php
2014-09-08 08:46:53 +02:00
Marius Hein
a300877878
Time detection: Add receiever to bootstrap method
...
refs #6078
2014-09-05 15:24:13 +02:00
Alexander Fuhr
1eacde0233
Implement modules self provided search configuration
...
refs #6495
2014-09-04 16:31:10 +02:00
Thomas Gelf
b60b811335
ApplicationBootstrap: list "core" translations
...
Just to make application fit module capabilities. We might find a better
place for both later on.
refs #7054
2014-09-02 16:51:17 +02:00