summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'supgid-filter'Alexander Sulfrian2022-01-161-4/+23
|\ \
| * | POSIXUsers: Add filters for supplementary gidsAlexander Sulfrian2022-01-161-4/+23
| |/ | | | | | | | | | | There are now separate filters for supplementary groups of a managed POSIXUser. If neither a blacklist or a whitelist for the supplementary groups is set, it will default to the same lists like the gid filters.
* | Merge branch 'add-directory-ignore'Alexander Sulfrian2022-01-161-1/+3
|\ \
| * | Server: Ignore directories containing a .bcfg2-ignore fileAlexander Sulfrian2015-04-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DirectoryBacked helper now does not recurse into directories that contains a .bcfg2-ignore file. This makes it possible to ignore some directories for most plugins (Bundler, Defaults, Pkgmgr, Properties, PuppetENC, TemplateHelper, Trigger). You can store for example a python module used by a TemplateHelper in the same directory, without getting strange error messages while TemplateHelper is trying to import each single file of this module.
* | | Client: Add dummy package client toolAlexander Sulfrian2022-01-161-0/+16
| | | | | | | | | | | | This is a no-op client tool to ignore all packages.
* | | Packages: Add 'dummy' packages backendAlexander Sulfrian2022-01-162-1/+36
| | | | | | | | | | | | This backend will not add any packages.
* | | Packages: Ignore unicode errors in pkgng metadataAlexander Sulfrian2022-01-161-3/+1
| | | | | | | | | | | | | | | | | | The messages of the packages in the packagesite file may be encoded in any encoding. We only need the dependencies and just ignore the unicode errors.
* | | Bundler: Use BoundBundle for the RequiredBundlesAlexander Sulfrian2022-01-161-1/+1
| | | | | | | | | | | | The Bundle do not need to be bound by another plugin.
* | | Reporting: Set flag when interaction is fully importedAlexander Sulfrian2022-01-165-3/+327
| | |
* | | APT: Do not install recommended packagesAlexander Sulfrian2022-01-161-0/+1
| | | | | | | | | | | | | | | If the server does not compute the packages as requirement, the client should not install the recommended packages.
* | | APT: Save new package version for auto pkgsAlexander Sulfrian2022-01-161-3/+5
| | | | | | | | | | | | | | | | | | For auto/any packages, currently only auto/any is stored in the statistics as the new installed version. This patch changes this behavior, so that the exact version string is saved additionaly.
* | | APT: Mark dependencies as automatic installedAlexander Sulfrian2022-01-161-0/+23
| |/ |/|
* | Fix default timezone in debian busterupstream/masterJohannes Kampmeyer2019-11-261-1/+1
| | | | | | | | | | | | bcfg2-web will fail without setting a valid time zone in newer django versions. This fix initializes the time zone as utc instead of None, to fix most setups without directly breaking functionality. [reporting] TIME_ZONE = <valid_tz>
* | Merge branch 'fix/recent-interactions' of https://github.com/AlexanderS/bcfg2Sol Jerome2019-10-141-1/+2
|\ \
| * | Reporting: Fix add_url_filter fallbackAlexander Sulfrian2019-06-171-1/+2
| | | | | | | | | | | | | | | | | | django-1.8 deprecated referencing views as strings in the url(), so we need to import the fallback view and referencing the view function directly.
* | | Do not encode py3 strings to utf-8 again. Compat.unicode matches strings and ↵xschlef2019-07-181-1/+2
|/ / | | | | | | unicode in py3.
* | 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
| |
* | POSIX: Don't follow symlinks when changing ownerHolger Weiß2018-05-181-3/+3
| | | | | | | | | | Don't let the client follow symbolic links when changing the owner of a path.
* | Remove superfluous space to make sphinx happyAlexander Sulfrian2018-03-221-1/+1
| |
* | Merge pull request #396 from solj/add-missing-reporting-entriesAlexander Sulfrian2018-03-221-2/+6
|\ \ | | | | | | Reporting: Add SELinux entries
| * | Reporting: Add SELinux entriesSol Jerome2017-11-301-2/+6
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | Reporting: Fix syntax of "cycle" templatetagAlexander Sulfrian2018-03-219-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The backwords compatible syntax was removed in 1.10. The "new" syntax is available since 11 years [1] and was already available in django 1.0 [2]. > Support for the syntax of {% cycle %} that uses comma-separated > arguments is removed. [3] [1]: https://code.djangoproject.com/ticket/208 [2]: https://github.com/django/django/commit/09145d2e5f [3]: https://docs.djangoproject.com/en/2.0/releases/1.10/#features-removed-in-1-10
* | | Reporting: Fix template settings for django 1.10Alexander Sulfrian2018-03-211-9/+29
| | | | | | | | | | | | | | | | | | | | | | | | Django 1.8 deprecated the multiple TEMPLATE_* settings and introduced a single TEMPLATES config option. Django 1.10 stopped creating a backwards-compatible TEMPLATES based on the TEMPLATE_* settings. (See: https://docs.djangoproject.com/en/1.10/ref/templates/upgrading/#the-templates-settings)
* | | Reporting: Use django.shortcuts.renderAlexander Sulfrian2018-03-211-40/+32
| | | | | | | | | | | | | | | | | | | | | Replace django.shortcuts.render_to_response with django.shortcuts.render because the context_instance argument was deprecated in django 1.8 and removed in django 1.10. The render shortcut is available since django 1.3, so we can use it without a version check.
* | | Reporting: Fix compat for "patterns" in django1.10Alexander Sulfrian2018-03-211-2/+2
|/ /
* | 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.
* | | Merge branch 'feature/travis-container' of https://github.com/AlexanderS/bcfg2Sol Jerome2017-08-1814-42/+55
|\ \ \
| * | | Bcfg2/manage.py: Fix pylint errorsAlexander Sulfrian2017-03-291-6/+14
| | | |
| * | | Utils: classproperty should use classmethodAlexander Sulfrian2017-03-291-1/+1
| | | |
| * | | Client: Restore python2.4 compatibilityAlexander Sulfrian2017-03-291-0/+1
| | | |
| * | | Fix errros with old pylint/pep8Alexander Sulfrian2017-03-2912-35/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For Python2.4 we need older version of pylint and pep8, that finds some more errors: - On python2.4 _ast is not available and pylint uses compiler.ast, that seems to have some problems with the line numbers if a comment is following the pylint disable marker. - In python2.4 there is no xml.etree. But we can ignore this error because Client.XML tries to find a suitable library. - Some small formatting issues.
* | | | Merge branch 'import-models' of https://github.com/0/bcfg2 into ↵Sol Jerome2017-07-111-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | add-missing-reporting-entries Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * | | | Reporting/Storage: Import ActionEntryDmitri Iouchtchenko2017-05-081-2/+2
| | | | | | | | | | | | | | | | | | | | It wasn't included in the transition from a wildcard import in 255faaf.
* | | | | Reporting: Add POSIX User/Group Entry typesSol Jerome2017-07-111-2/+4
|/ / / / | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | | Merge pull request #388 from 0/import-serviceentryAlexander Sulfrian2017-05-081-2/+2
|\ \ \ \ | | | | | | | | | | Reporting/Storage: Import ServiceEntry
| * | | | Reporting/Storage: Import ServiceEntryDmitri Iouchtchenko2017-05-051-2/+2
| |/ / / | | | | | | | | | | | | It wasn't included in the transition from a wildcard import in 255faaf.
* / / / 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
| |