Commit Graph

278 Commits

Author SHA1 Message Date
Eric Lippmann 70f080313d setup: Use schema path from setup's config or default
refs #8232
2015-01-19 11:43:38 +01:00
Eric Lippmann ef412688e9 setup: Require to set a path to the schema files
refs #8232
2015-01-19 11:43:38 +01:00
Johannes Meyer 8c87a9df13 Replace t() and mt() with translate() in setup module's forms
refs #7551
2015-01-19 11:07:39 +01:00
Eric Lippmann e93e8f6330 setup: Convert octal directory mode to decimal notation
PHP's chmod sets wrong permissions when using 2770 as directory mode for example.

fixes #8233
2015-01-16 17:01:41 +01:00
Rene Moser 3961a44769 setup-welcome: fix cli doc
* `createDirectory` does not exist, this should be `direcotory`.
* For changing the group option `--group` must be used.
* Default config directory is `/etc/icingaweb2` not `/etc/icingaweb`.

Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
2015-01-13 13:04:04 +01:00
Eric Lippmann 80730e0bb2 cli/setup: Remove is_string checks for switches of the webserver generation 2014-12-30 18:49:47 +01:00
Eric Lippmann 9f545535a0 cli/setup: Issue nice error messages when creating the config directory fails 2014-12-30 16:03:05 +01:00
Eric Lippmann 865b5c126a cli/setup: Do not exit setup config directory when the directory already exists
mkdir may succeed but chmod or chgrp may fail. The next time the command is called
it will ll exit before trying to chmod or chgrp again because the directory already exists.
2014-12-30 15:56:42 +01:00
Eric Lippmann 90fb44122b cli/setup: Do not translate \n again 2014-12-30 15:55:14 +01:00
Eric Lippmann f9ca0296a4 cli/setup: Do not return false; after $this->fail()
$this-fail() throws an exception.
2014-12-30 15:54:07 +01:00
Eric Lippmann 9de1b20d3c cli/setup: Issue an error if chmod fails when setting up the configuration directory 2014-12-30 15:51:00 +01:00
Eric Lippmann 9c40372b61 cli/setup: Do not translate \n 2014-12-30 15:49:11 +01:00
Eric Lippmann 672500029c cli/setup: Add sanity check for the --mode switch when creating the config directory 2014-12-30 15:46:22 +01:00
Eric Lippmann d3dcf152fb setup: Do not use umask(0)
chmod is not affected in any way by the umask.
2014-12-30 15:40:06 +01:00
Eric Lippmann f84a9a6529 cli/setup: Do not use umask(0)
chmod is not affected in any way by the umask.
2014-12-30 15:33:01 +01:00
Eric Lippmann 082cdd6dd2 cli/setup: Rename --path switch to --config for the directory action
All other actions use --config too.
2014-12-30 15:24:31 +01:00
Eric Lippmann bad7aad05e cli/setup: Do not use the webserver user's group but 'icingaweb2' 2014-12-30 15:22:53 +01:00
Eric Lippmann 861252b1e7 setup: Rename createDirectory to diretory
'icingacli setup config directory' does not suffer from camel case notation and explains
pretty much what it does.
2014-12-30 14:59:23 +01:00
Eric Lippmann 4b6ea55cbb setup: Add --config switch to TokenCommand::createAction()
refs #7906
2014-12-30 14:55:44 +01:00
Eric Lippmann aea7b068da setup: Add --config switch to TokenCommand::showAction()
refs #7906
2014-12-30 14:43:19 +01:00
Eric Lippmann 2d69e44846 setup: Set default URL path to /icingaweb2 2014-12-30 14:42:42 +01:00
Eric Lippmann 60b74ddcec Cli: Fix parameter documentation for ConfigCommand::webserverAction()
We speak of icingaweb2 not icingaweb now.
2014-12-30 14:41:35 +01:00
Eric Lippmann 5e812c72f1 cli/webserver config: Fix --config sanity check 2014-12-30 14:37:34 +01:00
Eric Lippmann fc05f4d53e setup: Fix the mode of created directories 2014-12-29 17:55:34 +01:00
Eric Lippmann ff17c3729c setup: Use 'icingaweb2' as default authentication backend name 2014-12-29 16:06:34 +01:00
Eric Lippmann 2bd9d27e05 Do not validate the mode of the setup.token
Relying on the mode of the configuration directory must be sufficient.
2014-12-29 14:33:37 +01:00
Eric Lippmann daaf242145 Fix the default configuration path in our web wizard 2014-12-29 14:33:07 +01:00
Eric Lippmann 19387b24ab Do not use a new function for getting the configuration directory in our web wizard 2014-12-29 14:32:20 +01:00
Johannes Meyer 4c4c0c97a5 Fix incorrect token generation example on the wizard's welcome page
fixes #8135
2014-12-22 08:30:08 +01:00
Johannes Meyer cc9ee93311 Clarify that php-gd is mandatory to export views to PDF
refs #8112
2014-12-18 16:21:25 +01:00
Johannes Meyer bca28a5ae2 Display inline pie-charts also in views exported to PDF
fixes #6463
2014-12-15 13:55:20 +01:00
Johannes Meyer ebf908b1b5 Make db requirement checks more sensitive
fixes #7837
2014-12-01 15:38:10 +01:00
Johannes Meyer 2b2b28915d Fix granting privileges on a mysql host
In case current_user() reports a wildcard identification for the user's
host (e.g. user@%) the percent sign was not escaped causing sprintf
to complain as there were too few arguments in this case.

fixes #7853
2014-12-01 11:00:12 +01:00
Johannes Meyer ca1dafeec3 Add hint to the requirements page's refresh button to restart the webserver
fixes #7839
2014-11-26 10:42:44 +01:00
Johannes Meyer d25a3a1704 Show path to the php.ini on the wizard's requirements page
refs #7839
2014-11-26 10:38:39 +01:00
Johannes Meyer e82cc35043 Re-add a description to the setup wizard
If someone has a better alternative don't hesitate
to replace this with a valid description.

fixes #7836
2014-11-26 08:58:09 +01:00
Johannes Meyer ff19696429 Add --path argument to the setup's welcome page examples if necessary
refs #7581
2014-11-26 08:58:08 +01:00
Johannes Meyer a288535347 Use the `host' and `port' directives when using a zend adapter in DbTool
fixes #7781
fixes #7798
2014-11-25 16:03:06 +01:00
Johannes Meyer c288a68ed5 Merge branch 'master' into bugfix/drop-zend-config-7147
Conflicts:
	application/forms/LdapDiscoveryForm.php
2014-11-18 13:21:18 +01:00
Johannes Meyer 7621f6642d Adjust usages of Icinga\Application\Config
refs #7147
2014-11-18 13:11:52 +01:00
Matthias Jentsch 5f8fcf4005 Fix Ldap server discovery
Add a new connection member that stores whether settings were guessed or product of a discovery, move discovery methods into seperate class.

fixes #7691
2014-11-18 09:45:54 +01:00
Thomas Gelf da47c7fc7e Merge remote-tracking branch 'origin/master' into feature/redesign-7144 2014-11-14 21:32:57 +01:00
Johannes Meyer ddf2ef5cc9 Remove $request parameter from Form::onSuccess and Form::onRequest
fixes #7552
2014-11-14 14:59:29 +01:00
Johannes Meyer d64ec0aa3c Rename Icinga\Module\Setup\Form to Icinga\Module\Setup\Forms
refs #7553
2014-11-14 11:01:16 +01:00
Johannes Meyer 775c20d9ad Rename namespace Icinga\Form to Icinga\Forms
refs #7553
2014-11-14 10:57:14 +01:00
Johannes Meyer 1c4a5ce86f Leave it up to Icinga\Web\Form to instantiate our own form elements 2014-11-14 10:15:27 +01:00
Bernd Erk 20be45e8da Enable icon font 2014-11-13 20:08:58 +01:00
Bernd Erk 6201858a68 Merge branch 'master' into feature/redesign-7144 2014-11-13 17:47:26 +01:00
Bernd Erk 205ba64781 Installer styling 2014-11-13 17:20:06 +01:00
Eric Lippmann b52adcc2ab Merge branch 'master' into feature/generate-webserver-config-6120 2014-11-13 15:09:34 +01:00
Johannes Meyer 688c016f2d Re-enable requirement checks for Zend_Db_Adapter_*
refs #7464
2014-11-13 14:34:31 +01:00
Johannes Meyer 4595b51318 Remove Zend version check
refs #7464
2014-11-13 14:34:04 +01:00
Eric Lippmann 7c8e9e6f56 CLI/Webserver Setup: Rename webPath to urlPath
This is how the apache docs call it. Nginx speaks of uri.

refs #6120
2014-11-13 14:18:14 +01:00
Eric Lippmann 459fc77fc7 CLI/Webserver Setup: Allow to define Icinga Web 2's configuration directory
refs #6120
2014-11-13 14:05:13 +01:00
Eric Lippmann 0e64a8d573 CLI/Webserver Setup: Prefix URL paths with '/' if missing
refs #6120
2014-11-13 13:47:08 +01:00
Eric Lippmann 36d3c3e3d5 CLI/Webserver Setup: Don't print "# Your %s configuration"
I want to copy the config only.

refs #6120
2014-11-13 13:42:22 +01:00
Eric Lippmann a0d4b6eee6 CLI/Webserver Setup: Don't use camelCase arguments
refs #6120
2014-11-13 13:40:39 +01:00
Eric Lippmann e0f6ce36ea CLI/Webserver Setup: Fix argument sanity checks
refs #6120
2014-11-13 13:30:07 +01:00
Eric Lippmann 8594dc068a CLI/Webserver Setup: Rename publicPath to documentRoot
refs #6120
2014-11-13 13:17:59 +01:00
Eric Lippmann 0d4ed40cb2 CLI/Webserver Setup: Remove sapi stuff becuase it's nowhere used
refs #6120
2014-11-13 13:17:53 +01:00
Eric Lippmann 2ad2127ae3 Merge branch 'master' into feature/generate-webserver-config-6120
Conflicts:
	application/clicommands/SetupCommand.php
2014-11-13 12:50:55 +01:00
Johannes Meyer 79bd743900 Add missing use statement for IcingaException in SetupException 2014-11-12 17:49:05 +01:00
Johannes Meyer c3e28a42fb Remove configuration option for setting the access mode on new files 2014-11-12 09:40:07 +01:00
Johannes Meyer 4992140326 Hardcode the access mode to use when creating files
refs #7163
2014-11-12 09:39:18 +01:00
Johannes Meyer ca66480ba7 Hardcode the access mode to use when creating directories
refs #7163
2014-11-12 09:18:19 +01:00
Johannes Meyer 4974f582d3 Add page titles
refs #7163
2014-11-11 15:27:14 +01:00
Johannes Meyer 79c2758ff5 Require a specific version of the Zend Framework
refs #7163
2014-11-11 14:04:17 +01:00
Johannes Meyer 7b804e4747 Provide some default values in the wizard
refs #7163
2014-11-11 12:41:02 +01:00
Johannes Meyer af99f62843 Prefer Icinga\Application\Config over Zend_Config
refs #7163
2014-11-11 12:11:14 +01:00
Johannes Meyer d2f8fd750f Remove WIP note
We are close to the first public release so it is not necessary to introduce
this in the master

refs #7163
2014-11-11 11:38:43 +01:00
Johannes Meyer 856b159d50 Show the full path to the CLI if possible
refs #7163
2014-11-11 10:19:32 +01:00
Johannes Meyer eb4672923f Require the OpenSSL module instead of providing an unsafe fallback
refs #7163
2014-11-11 10:19:09 +01:00
Johannes Meyer e1f75b5f5f Use mt() instead of just t() in the setup module
refs #7163
2014-11-11 09:24:53 +01:00
Johannes Meyer e827e6ddcf Make use of the new CLI module command namespaces
It's now not `icingacli setup showToken' anymore but
`icingacli setup token show' etc.

refs #7163
2014-11-10 16:45:20 +01:00
Johannes Meyer a8e28bfee4 Change route icingaweb/setup/setup to icingaweb/setup
refs #7163
2014-11-10 16:43:37 +01:00
Johannes Meyer cb748fa379 Move wizard css code back into the app's namespace
This is necessary to get the layout of the wizard to work.
We should elaborate whether it is possible to give modules more
control on how their css is applied!

refs #7163
2014-11-10 16:41:43 +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