summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
Commit message (Collapse)AuthorAgeFilesLines
* Add a number of features to SSHbase:Chris St. Pierre2011-10-273-150/+219
| | | | | | | * Support for group-specific host keys * Support for fully static host- and group-specific ssh_known_hosts * (Support for totally generic host keys and ssh_known_hosts, too, but that's pretty useless.) * Support for info.xml, info, and :info files; only info.xml is likely to be useful, with the <Path> directive
* ensure that source cache files do not get cleared on server startupChris St. Pierre2011-10-241-2/+3
|
* added timestamp attribute to Probe dataChris St. Pierre2011-10-241-7/+20
|
* SSHbase: ECDSA key support from ticket #1063Sol Jerome2011-10-201-2/+10
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Don't cache StructFile entriesHolger Weiß2011-10-201-8/+4
| | | | | | Re-parse the contents of a StructFile each time they are requested, instead of caching them. This makes sure that any group membership changes are taken into account when <Group> tags are parsed.
* avoid backtrace when bcfg2-yum-helper does not existChris St. Pierre2011-10-191-1/+8
|
* Various Packages plugin fixes:Chris St. Pierre2011-10-196-367/+231
| | | | | | | | | | | | | * Added bcfg2-yum-helper to offload Yum API calls to a short-lived process. As absurd as this is, it appears to be the standard way to get around Yum's atrocious memory handling (cf. yum-updatesd). * Added SourceInitError for non-fatal errors instantiating new sources. * Fixed bug that caused all cached data to be removed on server startup (reported by mikemccllstr on IRC). * Fixed a number of overly aggressive caching issues. * Fixed the way sources are loaded at server startup. * Fixed handling of Yum package groups.
* Improve error handling of Packages plugin.Mike McCallister2011-10-157-40/+42
| | | | | | | | | | | | Provide a descriptive error message that avoids logging a traceback. Error out (instead of continuing) upon receiving an HTTP error or an indication that the URL is malformed. Only write data to the cache file if it was successfully retrieved from the URL. Make log messages for Packages plugin use consistent "Packages:" prefix.
* Replaced print statements in Packages with logger calls.Mike McCallister2011-10-152-4/+4
|
* Implement the preceeding change for SGenshi, too.Mike McCallister2011-10-151-1/+2
| | | | This is where the mistaken Bundle names were being generated.
* Avoid reporting Genshi bundles as missingMike McCallister2011-10-151-1/+2
| | | | | | | | | | | | | Genshi bundles were reported as missing in the configuration with error messages like the following: Client CLIENTNAME configuration missing bundles: GBUNDLE1:GBUNDLE2 This seems to be caused by the Bundle name being derived from the filename, which was assumed to end in a four character extension of ".xml". When the extension was actually ".genshi", the ".ge" portion was left behind, and the code couldn't match up the requested bundles with the generated bundles.
* improve error logging during LDAP query processingTorsten Rehn2011-10-131-7/+14
| | | | | | | | This replaces the mostly useless error messages likes LdapPlugin error: list index out of range with information about which query failed and a traceback for debugging
* fixed inclusion of group packagesChris St. Pierre2011-10-122-4/+12
| | | | fixed loading of sources at server startup
* Cfg: Add support for .cheetah filesJoe Digilio2011-10-121-1/+30
|
* only cache packages from a package set, not unknownsChris St. Pierre2011-10-121-5/+7
|
* Cfg: Use two-digit group prioritiesSol Jerome2011-10-111-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* fixed variable name typoChris St. Pierre2011-10-101-3/+3
|
* don't cache collections by hostname; this could lead to bad data if a host ↵Chris St. Pierre2011-10-072-30/+17
| | | | changes OS
* * Added support for yum libraries (if available and configured). ThisChris St. Pierre2011-10-0711-1344/+2163
| | | | | | | | | | | | | | | | | | can dramatically reduce memory usage, and fixed several bugs: * #1014 (Package plugin can't resolve dependencies for rpms with Require: tags for full paths that aren't Provided explicitly) * #991 (Dependency Resolution difference between Package and yum) * #996 (Packages high memory usage) * Added support for Yum package groups when using yum libraries (#1039) * Fixed #911 (bcfg2 output for wrong package version with Packages is misleading) * YUMng turns down the Yum debug level itself depending on the debug/verbosity level requested by bcfg2 so you don't have to reduce the Yum debug level on a global basis * Added support for Pulp repositories, including registering Pulp consumers and binding to repositories * Added ability to disable magic OS groups
* fixed issue with bogus filenames in Bundler in a more generic way for all ↵Chris St. Pierre2011-10-052-10/+4
| | | | DirectoryBacked plugins
* make Bundler skip unknown filenames; this prevents an occasional stack trace ↵Chris St. Pierre2011-10-051-2/+7
| | | | when the Svn2.Update procedure is called
* Core: Fix log message for #1053Sol Jerome2011-09-221-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-lint: Honor the "empty" attributeHolger Weiß2011-09-211-1/+2
| | | | | When checking <Path type="file"> entries, don't complain about missing text if the "empty" attribute is set to true.
* bug fix : pop vs. removeChris St. Pierre2011-09-211-1/+1
|
* fixed previous commit so that SingleXMLFileBacked plugins use xinclude, and ↵Chris St. Pierre2011-09-192-24/+31
| | | | GroupPatterns uses SingleXMLFileBacked correctly
* made all XMLFileBacked plugins (e.g., GroupPatterns) support XIncludeChris St. Pierre2011-09-192-11/+31
|
* added Defaults pluginChris St. Pierre2011-09-196-52/+130
|
* Cleaned up path handling in bcfg2-admin init.Kamil Kisiel2011-09-171-12/+13
| | | | | | | Now uses absolute paths so the config file works correctly if the user inputs relative paths. Also simplified the config file template a bit as a result.
* Simplified py3k compatibility in bcfg2-admin initKamil Kisiel2011-09-171-77/+26
|
* Reports: Fix exception handling (#1035)Sol Jerome2011-09-151-3/+11
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* fixed bugs introduced by <Group>/<Client> tags in templated bundlesChris St. Pierre2011-09-153-6/+4
|
* made templated bundles understand <Group> and <Client> tagsChris St. Pierre2011-09-151-4/+22
|
* Fix predicate call from PkgmgrCalen Pennington2011-09-141-2/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Packages: Properly detect when user didn't create sources.xmlanatoly techtonik2011-09-121-1/+4
|
* Packages: Fix traceback when sources.xml is missing (#1043)Sol Jerome2011-09-121-1/+6
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* make it clear that default list of plugins is taken from ↵anatoly techtonik2011-09-101-7/+2
| | | | Options.SERVER_PLUGINS.default
* Admin: Fix traceback when missing section from bcfg2.confSol Jerome2011-09-101-1/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* fixed indentation bug in SSHbase introduced in ↵Chris St. Pierre2011-09-061-26/+24
| | | | cb8b988774c573bb8f6840aa60be0ced60323940
* Make database_port setting optionalHolger Weiß2011-09-041-1/+4
| | | | | | Make the database_port configuration parameter optional (as documented in doc/reports/dynamic.txt). The default port will now be used if the database_port is not explicitly set.
* fix traceback when packages.conf doesn't exist or there is no [global]Joe Digilio2011-09-021-0/+2
| | | | | section. (cherry picked from commit 54e70421bd1aea5bdd495cf48767b88cfe82b3b1)
* Version bump to 1.2.0rc1v1.2.0rc1Sol Jerome2011-09-011-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg : doesn't add a LineFeed after patching of filesKioob2011-09-021-3/+1
|
* Cfg : do not strip() end of lines before applying .diff filesKioob2011-09-011-2/+1
|
* fixed tracebacks introduced by 5360af9fe752850b1647Chris St. Pierre2011-09-011-1/+2
|
* fixed traceback introduced by 5360af9fe752850b1647Chris St. Pierre2011-09-011-2/+3
|
* Plugin.py: Add filename to error message (Reported by Kioob on IRC)Sol Jerome2011-08-311-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* anchor rules regexes at both ends to avoid bogus matchesChris St. Pierre2011-08-311-7/+3
|
* fixed logic with selecting correct rule from previous commitChris St. Pierre2011-08-311-2/+2
|
* added regex support to RulesChris St. Pierre2011-08-312-11/+56
|
* Metadata: Add missing sys import (Resolves #1032)Sol Jerome2011-08-281-0/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>