summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server
Commit message (Collapse)AuthorAgeFilesLines
* Lint: Import lint plugins with package nameAlexander Sulfrian2019-05-101-1/+4
| | | | | When importing packages we should not pollute the global modules namespace and always import new modules with their package name.
* Fix server shutdownAlexander Sulfrian2018-10-121-0/+4
|
* Merge branch 'feature/ldap-enhancements' of https://github.com/AlexanderS/bcfg2Sol Jerome2017-08-314-85/+191
|\
| * Server/Plugins/Ldap: Fix module nameAlexander Sulfrian2017-03-211-1/+2
| | | | | | | | | | | | | | | | | | If the module name contains slashes, python will issue an warning: > Ldap/config.py:1: RuntimeWarning: Parent module '__Ldap_/root/repo/Ldap/config' not found while handling absolute import > from Bcfg2.Server.Plugins.Ldap import LdapConnection, LdapQuery So we simply use the basename without the file extension for the module name.
| * Server/Plugins/Ldap: Support arbitrary ldap optionsAlexander Sulfrian2017-03-211-2/+7
| | | | | | | | | | | | You can now set arbitrary ldap option for the connection by specifying a dict with the key and the value. You should use the constants from python-ldap.
| * Server/Plugins/Ldap: Support specifying the ldap uriAlexander Sulfrian2017-03-211-6/+12
| | | | | | | | | | | | | | You can now specify the server to connect by either host (and optionally port) or by specifying the full ldap uri. If you specify host and port the connection will use the plain (unencrypted) ldap protocol by default. Only if you specify the port "636", it will use ldaps now.
| * Server/Plugins/Ldap: Cache the results of the Ldap queriesAlexander Sulfrian2017-03-211-17/+52
| | | | | | | | | | | | | | Using the OnDemandDict removes the results of Ldap queries from the client_metadata cache. We add a new cache per hostname cache for the single ldap queries and add a new configuration option to enable caching until the cache is expired manually via XML-RPC.
| * Server/Plugins/Ldap: Add missing argumentAlexander Sulfrian2017-03-211-1/+2
| |
| * Server/Cache: Return the number of expired itemsAlexander Sulfrian2017-03-211-4/+13
| |
| * Server/Plugins/Ldap: Use CallableDictAlexander Sulfrian2017-03-211-14/+28
| | | | | | | | | | With the CallableDict the LdapQueries will only be executed, if the values are used.
| * Server/Plugin: CallableDict is an OnDemandDict without cachingAlexander Sulfrian2017-03-211-16/+46
| | | | | | | | | | | | Add a CallableDict (like OnDemandDict, but without caching the results) to have a dict-like class, that can be cached with the client metadata without caching the dynamic values.
| * Server/Plugin: Support functions and values for OnDemandDictAlexander Sulfrian2017-03-211-4/+9
| | | | | | | | Now you can also specify simple values for the OnDemandDict.
| * Server/Plugin: Move OnDemandDict to helpersAlexander Sulfrian2017-03-212-50/+50
| | | | | | | | The OnDemandDict could be used by different plugins.
* | Probes: Remove wrong lineAlexander Sulfrian2017-03-221-1/+0
| | | | | | | | | | | | This line brakes django detection for the Probes! It resets the global variable just after the detection. This line was left while changing the placement of the detection in fa0d86aba32c40d829f9f94411403221a48283e8.
* | Server/Info: Fix encoding declarationAlexander Sulfrian2017-03-211-1/+1
|/ | | | | It seems to be, that there must not be any Python statement before the magic comment.
* Server/Lint: Include RequiredBundle in referenced bundlesDmitri Iouchtchenko2017-03-171-0/+4
|
* Fix multiline scripts in bcfg2-info debug modes19n2017-03-091-3/+1
|
* Merge pull request #373 from AlexanderS/fix/django1.9/report-collectorAlexander Sulfrian2017-01-103-25/+16
|\ | | | | Fix bcfg2-report-collector for django-1.9
| * DBSettings: Call django.setup() right after configuring the settingsAlexander Sulfrian2016-11-283-25/+16
| | | | | | | | | | | | 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.
* | Merge pull request #369 from AlexanderS/fix/lint/augeasAlexander Sulfrian2016-11-291-59/+107
|\ \ | | | | | | Lint: Some fixes of the required attributes
| * | Server/Lint: Replace dict with {}Alexander Sulfrian2016-11-291-59/+99
| | |
| * | Server/Lint: Fix code styleAlexander Sulfrian2016-11-211-4/+9
| | |
| * | Server/Lint: Add missing required attributesAlexander Sulfrian2016-11-211-1/+3
| | | | | | | | | | | | | | | owner, group and mode are required for all path entries representing files or directories.
| * | Server/Lint: Add required attrs for augeas path entriesAlexander Sulfrian2016-11-211-0/+2
| | |
| * | Server/Lint: name attribute is required for all Path entriesAlexander Sulfrian2016-11-211-20/+19
| |/
* | Server/Plugins/NagiosGen: Remove the list conversionAlexander Sulfrian2016-11-231-5/+3
| |
* | Server/Plugins/NagiosGen: Always include default groupAlexander Sulfrian2016-11-231-1/+1
|/ | | | | | | | | The default group file should be included, even if no server is in the 'default' hostgroup. It allows to include global definitions (like a service template). The behaviour is documented and was broken by 590a1314bca44f29fc34bd27f0d49599b7eeab10.
* Merge pull request #368 from solj/fix-ssl-futurewarningAlexander Sulfrian2016-11-211-2/+2
|\ | | | | Cfg: Fix SSLCA key generation
| * Cfg: Fix SSLCA key generationSol Jerome2016-11-181-2/+2
| | | | | | | | | | | | | | The previous check resulted in a "FutureWarning" and also did not work as expected and reset the key values in every case. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Packages: Cleanup pkgnamesAlexander Sulfrian2016-11-173-1/+4
|/ | | | | | The pkgnames should be reset before parsing the source files. If a package was removed for a source, it should be removed from the pkgnames set, too. The packages plugin should look for the next source containing the package.
* Admin: Remove extraneous quoteSol Jerome2016-09-281-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'pacman' of https://github.com/0/bcfg2Sol Jerome2016-09-151-14/+128
|\
| * Packages/Pac: Handle groupsDmitri Iouchtchenko2016-09-121-1/+38
| |
| * Packages/Pac: Parse dependenciesDmitri Iouchtchenko2016-09-121-13/+90
| |
* | Merge branch 'fix/testsuite/db-tests' of https://github.com/AlexanderS/bcfg2Sol Jerome2016-09-121-29/+5
|\ \
| * | Revert "Revert "removed duplicate plugins option""Alexander Sulfrian2016-09-121-29/+5
| |/ | | | | | | This reverts commit 8bcd3b7d717186f14bdd2482e46c2a6feee51767.
* | Merge branch 'django-check' of https://github.com/0/bcfg2Sol Jerome2016-09-121-1/+1
|\ \
| * | bcfg2-admin: Check for django before checking django versionDmitri Iouchtchenko2016-09-111-1/+1
| |/
* / Packages: Strip ':any' suffix from APT dependenciesDmitri Iouchtchenko2016-09-081-0/+11
|/
* Merge pull request #340 from rbuch/masterAlexander Sulfrian2016-08-181-3/+7
|\ | | | | Add support for rawurl in Apt
| * Add support for rawurl in AptRonak Buch2016-08-171-3/+7
| |
* | doc: Escape underscoresAlexander Sulfrian2016-08-181-1/+1
|/ | | | | Double underscore mark anonymous hyperlinks. To include '__' literally we need to escape it.
* Server/models: Exclude the Reporting pluginAlexander Sulfrian2016-08-171-0/+4
| | | | | The reporting database is not handled within Bcfg2.Server but in the Bcfg2.Reporting app.
* Bcfg2/Server: Add migrations for Bcfg2.ServerAlexander Sulfrian2016-08-174-0/+115
| | | | | Django1.9 requires every app to have migrations. You cannot create a tables without having migrations.
* Server/Plugins/Ldap: Module should be importable without the python-ldapAlexander Sulfrian2016-08-171-6/+11
|
* Revert "removed duplicate plugins option"Alexander Sulfrian2016-08-171-5/+25
| | | | This reverts commit 30634d07d5489f260f37cc86d150315f02c40865.
* Server/Core: Ignore pylint errorAlexander Sulfrian2016-08-171-1/+1
| | | | | pylint should ignore this method, because it is only used as fallback for older django versions and does not exists in newer versions.
* Server/Plugins/Metadata: Initialize django _before_ creating modelsAlexander Sulfrian2016-08-171-3/+3
|
* Server/Plugins/Probes: Initialize django before useAlexander Sulfrian2016-08-171-0/+5
|
* Merge pull request #320 from AlexanderS/fix/more-django-fixesAlexander Sulfrian2016-07-171-0/+4
|\ | | | | Some more django fixes