summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-212-2/+18
| | | | | | 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-212-15/+22
| | | | | | | 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-213-23/+75
| | | | | | | 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.
* Server/Lint: Include RequiredBundle in referenced bundlesDmitri Iouchtchenko2017-03-171-0/+4
|
* Merge pull request #362 from AlexanderS/fix/missing-config-fileAlexander Sulfrian2017-03-102-3/+7
|\ | | | | Options: Missing config file is not a fatal error
| * TestOptions: Do not try to parse the cmd args of the testsAlexander Sulfrian2016-10-041-2/+3
| |
| * testsuite: Missing config file should not raise SystemExit anymoreAlexander Sulfrian2016-09-281-1/+4
| |
| * Options: Missing config file is not a fatal errorAlexander Sulfrian2016-09-281-1/+1
| | | | | | | | | | If the config file is not available, it should not be a fatal error, but bcfg2 should just use the default config values.
* | Merge pull request #382 from AlexanderS/feature/multiline-debug-scriptsAlexander Sulfrian2017-03-101-3/+1
|\ \ | | | | | | Fix multiline scripts in bcfg2-info debug mode
| * | Fix multiline scripts in bcfg2-info debug modes19n2017-03-091-3/+1
| | |
* | | Merge pull request #381 from AlexanderS/feature/READMEAlexander Sulfrian2017-03-102-2/+2
|\ \ \ | | | | | | | | README enhancements
| * | | README: First heading should be different levelAlexander Sulfrian2017-03-091-1/+1
| | | |
| * | | README: Rename README to enable github formattingAlexander Sulfrian2017-03-092-1/+1
| |/ /
* | | Merge pull request #375 from solj/fix-missing-importAlexander Sulfrian2017-03-091-0/+1
|\ \ \ | | | | | | | | Reporting: Fix missing sys import
| * | | Reporting: Fix missing sys importSol Jerome2017-01-101-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | | Merge pull request #380 from AlexanderS/fix/augeas-masterAlexander Sulfrian2017-03-091-2/+1
|\ \ \ \ | |_|/ / |/| | | testsuite: Use python-augeas from PyPI with pip
| * | | testsuite: Use python-augeas from PyPI with pipAlexander Sulfrian2017-03-071-2/+1
|/ / / | | | | | | | | | | | | | | | fedorahosted.org was retired on March 1st, 2017. So we need to pull python-augeas from anywhere else, let's simply install it with pip from PyPI.
* | | Merge pull request #377 from viiru-/manpage-typo-fixesAlexander Sulfrian2017-01-194-4/+4
|\ \ \ | |/ / |/| | Manpage typo fixes
| * | Fix typo in bcfg2.conf.5Arto Jantunen2017-01-192-2/+2
| | |
| * | Fix typo in bcfg2.1Arto Jantunen2017-01-192-2/+2
|/ /
* | testsuite: Restrict the sphinx versionAlexander Sulfrian2017-01-101-1/+1
| | | | | | | | | | The current version of sphinx has problems fetching the intersphinx inventory files: https://github.com/sphinx-doc/sphinx/issues/3234
* | testsuite: Fix XMLSyntaxError initializationArach2017-01-101-2/+1
| | | | | | | | lxml-3.7.0 requires integers as arguements for XMLSyntaxError.
* | Merge pull request #345 from AlexanderS/fix/django-1.10Alexander Sulfrian2017-01-103-36/+36
|\ \ | | | | | | Fixes for django 1.10
| * | testsuite: Bump django versionAlexander Sulfrian2016-08-181-1/+1
| | | | | | | | | | | | We should be compatible with django-1.10 now.
| * | Reporting/Compat: Add patterns compat methodAlexander Sulfrian2016-08-181-1/+13
| | | | | | | | | | | | | | | django 1.10 removed the patterns method, so we define it manually a bit easier than the old upstream variant but sufficient for our needs.
| * | Reporting: Ensure we have an empty prefix in the url patternsAlexander Sulfrian2016-08-181-21/+22
| | |
| * | Reporting: Remove outdated commentsAlexander Sulfrian2016-08-181-13/+0
| | |
* | | Merge pull request #373 from AlexanderS/fix/django1.9/report-collectorAlexander Sulfrian2017-01-106-40/+42
|\ \ \ | | | | | | | | Fix bcfg2-report-collector for django-1.9
| * | | DBSettings: Call django.setup() right after configuring the settingsAlexander Sulfrian2016-11-285-28/+18
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Reporting/Storage: Reordering of the importsAlexander Sulfrian2016-11-211-10/+9
| | | |
| * | | Reporting/Storage: Removed unused importAlexander Sulfrian2016-11-211-1/+0
| | | |
| * | | Reporting/Storage: Load django models after option parsingAlexander Sulfrian2016-11-211-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | django get setup during option parsing and we cannot acces "django.db.models" before. So we need to delay the import of the models until the option parsing is ready.
| * | | Reporting/Storage: Remove wildcard importAlexander Sulfrian2016-11-211-1/+4
| | | |
* | | | 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
| | | | |
* | | | | Merge pull request #372 from AlexanderS/fix/nagiosgenAlexander Sulfrian2016-11-292-9/+4
|\ \ \ \ \ | | | | | | | | | | | | Some small fixes for NagiosGen
| * | | | | 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.
| * | | | | doc: Remove outdated NagiosGen informationAlexander Sulfrian2016-11-231-4/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | The NagiosGen backwards-compatibility layer was removed in 3b3ecb4fcba471d33dbd118c02798e6f3f4b9927.