summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server
Commit message (Collapse)AuthorAgeFilesLines
* Fix string conversion for Python 3py3-serverJonah Brüchert2024-05-232-3/+3
|
* Adapt database migrations to current django APIJonah Brüchert2024-05-231-10/+9
|
* Remove broken django version checksJonah Brüchert2024-05-233-18/+4
|
* added on_delete=models.CASCADE to all models.OneToOneField invocationsKonstantin L. Metlov2024-04-201-1/+1
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* added on_delete=models.CASCADE to all ForeignKey invocationsKonstantin L. Metlov2024-04-201-6/+8
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* encode the string data before writing in CfgKonstantin L. Metlov2024-04-201-1/+1
| | | | Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
* Default to using the highest available TLS versionJonah Brüchert2024-04-201-4/+6
|
* Run 2to3 on the entire projectJonah Brüchert2024-04-1950-236/+237
|
* bcfg2-lint: correctly parse threshold optionMichael Laß2024-01-311-3/+3
| | | | We need to convert from str to float before doing the comparison.
* 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 'debconf'Alexander Sulfrian2022-01-301-0/+1
|\
| * debconf: Add ConfEntry to ReportingAlexander Sulfrian2022-01-301-0/+1
| |
* | Merge branch 'packages'Alexander Sulfrian2022-01-2316-44/+408
|\ \
| * | 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-235-8/+94
| | | | | | | | | | | | | | | 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.
* | 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.
* | | 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.
* | 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.