summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins
Commit message (Collapse)AuthorAgeFilesLines
* Remove broken django version checksJonah Brüchert2024-05-231-5/+1
|
* encode the string data before writing in CfgKonstantin L. Metlov2024-04-201-1/+1
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* Run 2to3 on the entire projectJonah Brüchert2024-04-1922-58/+58
|
* SSLCA: SSLCAFormat is now a GeneratorAlexander Sulfrian2022-02-141-20/+27
| | | | | We do not need to create files for the different certificat formats, because all data could and should be recreated from the current certificate files.
* SSLCA: Verify all certsAlexander Sulfrian2022-02-141-9/+11
| | | | | Even verify self signed certificates to recreate the certificate if it is expired.
* SSLCA: Add generator for custom cert/key formatsAlexander Sulfrian2022-02-141-0/+116
| | | | | This generator will not generate a new ssl key or ssl cert, but it will generate a custom format of already existing ssl keys and certs.
* SSLCA: Allow to create self signed certificatesAlexander Sulfrian2022-02-141-10/+16
|
* Cfg: Block for FAM events after creating filesAlexander Sulfrian2022-01-302-3/+4
| | | | | | | After a CfgCreator wrote a file, it should block until the fam events are processed. The newly created files might be required by another Cfg plugin (like CfgPrivateKeyCreator and CfgPublicKeyCreator) and the fam events should be processed before the other plugin is invoked.
* SSLCA: root_ca is a BooleanOptionAlexander Sulfrian2022-01-301-2/+1
| | | | This will fix: 'bool' object has no attribute 'lower'
* Merge branch 'packages'Alexander Sulfrian2022-01-2315-43/+406
|\
| * PkgVars: Add support for multiple valuesAlexander Sulfrian2022-01-232-4/+10
| | | | | | | | | | If multiple values specified for one package all values are joined together in a set.
| * PkgVars: Add new plugin to set vars for packagesAlexander Sulfrian2022-01-234-7/+92
| | | | | | | | | | This plugins allows the setting of varius flags per package. It should be used f.e. to specify pinnings for debian packages.
| * 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.
* | Merge branch 'fix/partial-chain-validation'Alexander Sulfrian2022-01-161-7/+4
|\ \
| * | SSLCA: Fix certificate validationAlexander Sulfrian2022-01-161-7/+4
| |/ | | | | | | | | | | | | | | | | | | | | We should favour "-trusted" over "-CAfile" because it will skip the system-wide CAs and ensure that the certificate is relay validated against the specified CA. For validation against an intermediate certificate, only an additional "-partial_chain" is required. With "-untrusted" we previously added an unstrusted intermediate certificate only and validated the cert against default system wide installed CAs.
* | 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.
* 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