summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Admin.py
Commit message (Collapse)AuthorAgeFilesLines
* DBSettings: Call django.setup() right after configuring the settingsAlexander Sulfrian2016-11-281-4/+0
| | | | | | If required the DBSettings config hook will call django.setup right after configuring django with the required settings. So we can drop the calls to django.setup from all other places.
* Admin: Remove extraneous quoteSol Jerome2016-09-281-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-admin: Check for django before checking django versionDmitri Iouchtchenko2016-09-111-1/+1
|
* Admin: Add expirecache commandAlexander Sulfrian2015-10-131-0/+19
| | | | | | | Expirecache is now part of bcfg2-admin and will call expire_metadata_cache from Core via XML-RPC. This will expire the metadata cache of the supplied clients (or the complete cache if no arguments are supplied) on a running bcfg2-server.
* Merge branch 'fix/django1.7' of https://github.com/AlexanderS/bcfg2Sol Jerome2015-10-011-5/+12
|\
| * Server/Admin: Remove load_models() callAlexander Sulfrian2015-09-231-1/+0
| | | | | | | | | | | | The models should be loaded during the options parsing and so this call issues a warning message from django, that the models are already registered.
| * Server/Admin: Remove call of django.setupAlexander Sulfrian2015-09-231-3/+0
| | | | | | | | django.setup() is already called from the option parsing before.
| * added django.setup() calls to src/lib/Bcfg2/DBSettings.pyJonas Jochmaring2015-09-231-2/+2
| |
| * some more django 1.7 compatibility fixesJonas Jochmaring2015-09-231-1/+4
| |
| * make Bcfg2-web compatible with django 1.7Jonas Jochmaring2015-09-231-4/+12
| | | | | | | | | | | | - reports.wsgi uses get_wsgi_application() now - old south-based migrations have been moved - manage.py has been updated
* | bcfg2-admin: Add command to generate migrationsAlexander Sulfrian2015-09-211-1/+13
|/ | | | Add makemigration for django>1.7 or schemamigration for django<=1.6 with south.
* Bcfg2/Server/Admin: fix the Help subcommandAlexander Sulfrian2014-11-251-1/+3
| | | | | At least the Help subcommand does not provide a setup method. So we need to exclude if from the setup() call.
* call shutdown on subcommand registriesChris St. Pierre2014-11-101-2/+5
|
* testsuite: Added unit tests for new option parsingChris St. Pierre2014-11-101-11/+3
|
* Preliminary support for seperate reporting databaseMichael Fenn2014-03-211-6/+7
| | | | | | | | | | | | | This commit implements a Django database router which routes each Django application to a database whose name matches a key in the database dict, falling back to the default database if no matching key is found. This support is plumbed through to the config file via database.reporting_* database connection config options. These options mirror ones available for the default database config. If database.reporting_engine is not specified in the config, then the configuration falls back to the traditional single-database way of doing things with the database router becoming a no-op.
* Merge branch 'maint'Chris St. Pierre2013-12-091-19/+46
| | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/fedora.txt misc/bcfg2.spec schemas/types.xsd src/lib/Bcfg2/Encryption.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Client.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgEncryptedGenerator.py src/lib/Bcfg2/Server/Plugins/Probes.py src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgEncryptedGenerator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py testsuite/common.py testsuite/install.sh
* Merge branch 'maint'Chris St. Pierre2013-11-121-2/+2
| | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Admin/Reports.py src/lib/Bcfg2/Server/Hostbase/hostbase/urls.py src/lib/Bcfg2/Server/Hostbase/urls.py src/sbin/bcfg2-crypt tools/upgrade/1.3/migrate_dbstats.py
* DB: fixed how Django settings are loadedChris St. Pierre2013-10-301-13/+11
|
* Pylint/PEP8 fixesSol Jerome2013-09-061-2/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Admin: Use string.ascii_lettersSol Jerome2013-09-011-1/+1
| | | | | | | | | The code using string.letters won't work with python 3 due to library changes. http://docs.python.org/3.0/whatsnew/3.0.html#library-changes Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* man: updated bcfg2-admin man pageChris St. Pierre2013-08-131-1/+1
|
* Merge branch 'maint'Chris St. Pierre2013-08-121-0/+1
| | | | | | Conflicts: src/lib/Bcfg2/Server/Admin/Viz.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py
* testsuite: fixed more unit testsChris St. Pierre2013-08-121-9/+10
|
* testsuite: fixed most pylint complaintsChris St. Pierre2013-08-091-15/+41
|
* Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-66/+57
| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Init.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/base.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/Server/SSLServer.py src/lib/Bcfg2/Utils.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-test src/sbin/bcfg2-yum-helper tools/bcfg2-profile-templates.py
* Options: migrated bcfg2-admin to new parserChris St. Pierre2013-06-271-0/+1164