summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins
Commit message (Collapse)AuthorAgeFilesLines
* Packages: Allow to filter provided packagesAlexander Sulfrian2022-01-231-1/+6
| | | | | The provides packages of a source should be filtered by the Blacklist or Whitelist tags for the source.
* Packages: Add possibility to customize User-AgentAlexander Sulfrian2022-01-231-4/+10
| | | | Some mirror might block the default python urllib User-Agent.
* Packages: Add repo options to additional_dataAlexander Sulfrian2022-01-231-0/+2
|
* Packages: Add 'pin' attributeAlexander Sulfrian2022-01-231-2/+5
|
* Packages: Add priority to sources and sort themAlexander Sulfrian2022-01-232-2/+9
|
* Packages: Add "pyapt" source typeAlexander Sulfrian2022-01-173-9/+105
| | | | | | | | Pyapt is a new source that is using the apt python bindings to parse the Packages files from debian repositories. Compared to the python implementation it is faster and more robust. It will use the dependencies of the newest version of a package from a specific source (because it can use the python bindings to compare the version numbers).
* Packages: Support different compression methodsAlexander Sulfrian2022-01-1710-20/+173
| | | | | | | The new Reader classes implement different compression methods for the files parsed by the Packages backends. Each source can specify a default compression format. The user can configure a compression format per Source and the filename and extension for the metadata files are generated automatically.
* Do not encode py3 strings to utf-8 again. Compat.unicode matches strings and ↵xschlef2019-07-181-1/+2
| | | | unicode in py3.
* Merge branch 'feature/ldap-enhancements' of https://github.com/AlexanderS/bcfg2Sol Jerome2017-08-312-80/+96
|\
| * 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/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: Move OnDemandDict to helpersAlexander Sulfrian2017-03-211-49/+3
| | | | | | | | 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.
* Merge pull request #373 from AlexanderS/fix/django1.9/report-collectorAlexander Sulfrian2017-01-102-21/+16
|\ | | | | Fix bcfg2-report-collector for django-1.9
| * DBSettings: Call django.setup() right after configuring the settingsAlexander Sulfrian2016-11-282-21/+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.
* | 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.
* 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
| |
* | Packages: Strip ':any' suffix from APT dependenciesDmitri Iouchtchenko2016-09-081-0/+11
|/
* Add support for rawurl in AptRonak Buch2016-08-171-3/+7
|
* Server/Plugins/Ldap: Module should be importable without the python-ldapAlexander Sulfrian2016-08-171-6/+11
|
* 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
| * Metadata: Add fix for django1.7Alexander Sulfrian2015-11-171-0/+4
| | | | | | | | | | The Metadata database backend also uses django1.7 and we have to run django.setup() here, too.
* | Merge branch 'yum-helper-2' of https://github.com/gordonmessmer/bcfg2Sol Jerome2016-07-102-26/+28
|\ \
| * | Set value for data in case accept_input is false.Gordon Messmer2016-04-211-1/+2
| | |
| * | Bcfg2.Options.Subcommand must not access Options.setup in __init__.Gordon Messmer2016-04-211-8/+14
| | |
| * | Only read input if accept_input is True.Gordon Messmer2016-04-211-7/+8
| | |
| * | Remove PositionalArgument. It was incomplete and did not work as intended, ↵Gordon Messmer2016-04-211-4/+1
| | | | | | | | | | | | requiring two positional args instead of one.
| * | Fix format error in logger call.Gordon Messmer2016-04-211-2/+2
| | |
| * | Handle rid intelligently, to avoid infinite loop.Gordon Messmer2016-04-211-5/+2
| | |
* | | Fix long line.Gordon Messmer2016-04-011-1/+2
| | |
* | | Generate ed25519 keys.Gordon Messmer2016-03-311-1/+7
|/ /
* | Merge branch 'setup-options' of https://github.com/gordonmessmer/bcfg2Sol Jerome2016-03-032-0/+3
|\ \ | |/ |/|
| * Add dest= arg to fix option that is referenced as cfg_validation.Gordon Messmer2016-02-171-0/+1
| |
| * Add dest= arg to fix LDAP options.Gordon Messmer2016-02-171-0/+2
| |
* | Merge pull request #299 from AlexanderS/fix/cachingChris St. Pierre2015-10-058-23/+76
|\ \ | | | | | | Expire metadata cache in all Connector plugins.
| * | Properties: Expire the metadata cache during reload of the filesAlexander Sulfrian2015-07-271-11/+30
| | |
| * | Probes: Use core.metadata_cache instead of Bcfg2.Server.CacheAlexander Sulfrian2015-07-271-7/+8
| | |
| * | AWSTags: Expire metadata cache at start of client runAlexander Sulfrian2015-07-271-0/+5
| | | | | | | | | | | | | | | | | | | | | AWSTags cannot know whether the tags change, so it cannot expire the metadata cache correctly. Instead we have to expire the cache at beginning of each client run. This practically disables agressive client metadata caching, so we print a warning.