| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
With the CallableDict the LdapQueries will only be executed, if the values
are used.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Now you can also specify simple values for the OnDemandDict.
|
|
|
|
| |
The OnDemandDict could be used by different plugins.
|
| |
|
|\
| |
| | |
Options: Missing config file is not a fatal error
|
| |
| |
| |
| |
| | |
If the config file is not available, it should not be a fatal error,
but bcfg2 should just use the default config values.
|
|\ \
| | |
| | | |
Fix multiline scripts in bcfg2-info debug mode
|
| | | |
|
|/ /
| |
| |
| | |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|\ \
| | |
| | | |
Fixes for django 1.10
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix bcfg2-report-collector for django-1.9
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Lint: Some fixes of the required attributes
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
owner, group and mode are required for all path entries representing files
or directories.
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Some small fixes for NagiosGen
|
| | | | | | |
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, having a ca specified in the client bcfg2.conf which pointed
to a file that didn't exist resulted in the following:
Unknown failure: [Errno 2] No such file or directory (IOError)
Unknown failure: [Errno 2] No such file or directory (IOError)
Unknown failure: [Errno 2] No such file or directory (IOError)
Fatal error: Failed to declare version: Unknown failure: [Errno 2] No such file or directory (IOError)
This commit provides more information about the actual cause of the
issue.
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Cfg: Fix SSLCA key generation
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
|\ \ \ \
| | | | |
| | | | | |
Client/Tools/POSIX: Avoid lxml features in Augeas
|
| |/ / / |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
Admin: Remove extraneous quote
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|/ / /
| | |
| | |
| | | |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|\ \ \ |
|
| | |/
| |/| |
|
|\ \ \
| |/ /
|/| | |
|
| | | |
|
| | | |
|