summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Base: Deprecate Base in favor of BundlerSol Jerome2011-06-031-0/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-server: Add the ability to listen on specific interfaces (#1013)Sol Jerome2011-06-034-12/+47
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* guarantee that timeout is a floatChris St. Pierre2011-06-011-1/+1
|
* added -t option to set client timeoutChris St. Pierre2011-06-014-7/+15
|
* Cfg: Fix traceback for non-ascii filesSol Jerome2011-05-311-0/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Clarify normalization error (Reported by Tim Goodaire)Sol Jerome2011-05-251-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* allow setting whitelist/blacklist mode in bcfg2.confChris St. Pierre2011-05-241-0/+1
|
* don't run lint server plugins if serverless plugins produced errors; avoids ↵Chris St. Pierre2011-05-201-2/+14
| | | | an ugly stack trace if a file fails to validate
* removed debugging output from Validate pluginChris St. Pierre2011-05-201-3/+0
|
* Merge pull request #35 from weiss/fix-genshi-encodingSol Jerome2011-05-201-2/+3
|\ | | | | Cfg: Fix the output encoding of Genshi templates
| * Cfg: Fix the output encoding of Genshi templatesHolger Weiß2011-04-131-2/+3
| | | | | | | | | | | | Encode the configuration files generated from Genshi templates according to the encoding setting from Options.py instead of unconditionally using UTF-8.
* | APT: Add two filters for deprecated API accessesHolger Weiß2011-05-201-0/+2
|/ | | | | These accesses are triggered by <Package> configuration entries which don't have the "version" attribute set to "auto" or "any".
* Revert "bcfg2: Write cached config using encoding from Options.py"Holger Weiß2011-05-191-1/+1
| | | | | | | | | | | This reverts commit 5d69ff7e966c4ffa911c78d11a6879b48e90aef8. As the "rawconfig" variable now holds a UTF-8 encoded string, it would have to be decoded before re-encoding it using a different encoding. However, the cached configuration shouldn't be written using a non-UTF-8 encoding anyway, as "bcfg2 -f <configuration>" currently doesn't accept any other encodings. (If this is to be changed, the XML encoding declaration of the configuration would have to be adjusted accordingly.)
* bcfg2: Convert specification from Unicode to UTF-8Holger Weiß2011-05-111-1/+1
| | | | | | | | | The client receives the configuration specification as a Unicode string and then hands it over to the XML() function, which expects a UTF-8 encoded string. Therefore, the configuration specification is now converted to UTF-8. Resolves ticket #1009.
* fixed several major bugs in bcfg2-lint Validate pluginChris St. Pierre2011-05-182-8/+15
|
* Merge branch 'master' of https://github.com/solj/bcfg2Chris St. Pierre2011-05-171-1/+1
|\
| * bcfg2-info: Fix traceback when no args specifiedSol Jerome2011-05-171-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | added bcfg2-lint MergeFiles plugin to suggest config files and probesChris St. Pierre2011-05-172-10/+104
|/ | | | | | that are very similar and could be merged added text wrapping to bcfg2-lint error handling
* bcfg2-info help returns help without starting a server instanceChris St. Pierre2011-05-161-1/+4
|
* Cfg: Fix bcfg2-admin pull behavior for genshi templates (#1010)Sol Jerome2011-05-131-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge pull request #31 from weiss/fix-typoSol Jerome2011-05-131-2/+2
|\ | | | | Fix a typo in an SSL error message
| * Fix a typo in an SSL error messageHolger Weiß2011-05-111-2/+2
| |
* | Fix bcfg2-reports --badentry and --extraentryHolger Weiß2011-05-011-4/+4
|/ | | | | | | | | The reporting system schema has been changed. This change lead to exceptions such as | AttributeError: 'Entries_interactions' object has no attribute 'name' when running bcfg2-reports with the --badentry or --extraentry options.
* Plugin: Fix nasty list comprehension bugSol Jerome2011-05-111-2/+2
| | | | | | | It appears as though Python 2 kept around variables assigned within a list comprehensions which caused this to go unnoticed. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg: Fix PluginExecutionErrorTim Laszlo2011-05-111-1/+1
| | | | Replaces PluginExecutionError with Bcfg2.Server.Plugin.PluginExecutionError. Reported by emias.
* Added FileProbes plugin.Chris St. Pierre2011-05-112-1/+180
|
* Fixed error messages from info.xml bcfg2-lint checkChris St. Pierre2011-05-111-5/+5
|
* Improved Svn2 error handling -- ClientError may not have a message attribute.Chris St. Pierre2011-05-111-4/+4
|
* SSHbase: Fix PY3K tracebacks for known_hosts fileSol Jerome2011-05-101-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Logger: Fix non-string loggingSol Jerome2011-05-101-10/+13
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Logger: Statement always was True in python 2Sol Jerome2011-05-091-15/+10
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Logger: Use bytes for PY3KSol Jerome2011-05-091-1/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge pull request #30 from trehn/masterSol Jerome2011-05-092-0/+2
|\ | | | | import sys for SGenshi and Bundler
| * add yet another missing sys importTorsten Rehn2011-05-091-0/+1
| |
| * add another missing sys importTorsten Rehn2011-05-091-0/+1
| |
* | Merge pull request #29 from trehn/plugin-ldap-dev-trehnSol Jerome2011-05-091-1/+10
|\ \ | | | | | | Two small fixes for Ldap plugin
| * | log more useful error message if python-ldap is not installedTorsten Rehn2011-05-091-1/+9
| | |
| * | add missing sys importTorsten Rehn2011-05-091-0/+1
| | |
* | | Upstart: Fix typo reported by justintime on IRCSol Jerome2011-05-091-1/+1
| |/ |/| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | DBStats: Stop duplicating data in reports_reasonTim Laszlo2011-05-091-6/+3
|/
* Add missing import sys.Raul Cuza2011-05-061-0/+1
|
* Pass keypath to create_conf function.Raul Cuza2011-05-061-2/+2
|
* Add missing import.Raul Cuza2011-05-061-0/+1
|
* TCheetah: Fix local variable bug reported by trehn on IRCSol Jerome2011-05-061-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* TGenshi: Fix local variable bug reported by trehn on IRCSol Jerome2011-05-061-3/+4
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> (cherry picked from commit 071ef1a1fbe6368b1abb81855e1ab95e316e6911)
* Fixed several bugs with last commit. Sorry, I'm a doofus.Chris St. Pierre2011-05-061-11/+10
|
* Rewrote NagiosGen config to use NagiosGen/config.xml, whichChris St. Pierre2011-05-062-89/+91
| | | | | | | | | | | | understands <Group> and <Client> tags, rather than the client-specific Properties/NagiosGen.xml and the group-specific but limited NagiosGen/parents.xml. Includes schema and bcfg2-lint updates necessary. Wrote conversion tool, nagiosgen-convert.py, which converts everything but the <default/> tag in the old NagiosGen.xml, which cannot be reasonably converted to StructFile format. Also removed a _lot_ of string modification in NagiosGen.py, which should make it a fair bit faster.
* Core: Raise error on failed lxml import (Reported by Raul Cuza on IRC)Sol Jerome2011-05-051-1/+5
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* made bcfg2-lint error handling configurable on a much more granular levelChris St. Pierre2011-05-059-96/+197
|
* Packages: Solve byte string incompatibility in a different waySol Jerome2011-05-031-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>