summaryrefslogtreecommitdiffstats
path: root/src/sbin
Commit message (Collapse)AuthorAgeFilesLines
* fixed bug in previous commitChris St. Pierre2011-08-181-0/+1
|
* added --altsrc flag to bcfg2-info buildfileChris St. Pierre2011-08-181-3/+14
|
* Fix typo in "bcfg2-info buildbundle" usage outputHolger Weiß2011-08-091-1/+1
|
* added buildbundle command to bcfg2-info to render a bundle templateChris St. Pierre2011-08-031-0/+26
|
* bcfg2-lint should read both bcfg2.conf and bcfg2-lint.confChris St. Pierre2011-08-011-15/+6
|
* bcfg2-admin: Revert some changes that are not py3k compatibleSol Jerome2011-07-211-2/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Miscellaneous bcfg2-admin bug fixes:Chris St. Pierre2011-07-211-27/+28
| | | | | | * Fixed mode argument parsing when a config file is supplied * Fixed loading help messages when Reports is not configured * Improved option parsing; used Bcfg2.Options.OptionParser
* bcfg2-info: Remove "generators" commandHolger Weiß2011-07-061-7/+0
| | | | | | | The command "bcfg2-info generators" didn't spit out anything useful, just an unexpanded $Id$ keyword for each of the current generators. It's been that way for quite some time now, and nobody seemed to miss the command.
* bcfg2-admin: Fix traceback when help argument omittedSol Jerome2011-06-291-0/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-reports: Catch "--badentry=/tmp/nonexistent"Holger Weiß2011-06-301-36/+48
| | | | | Catch I/O errors which might occur while reading a file specified as argument to --badentry, --extraentry, or --modifiedentry.
* bcfg2-reports: Catch getopt exceptionsHolger Weiß2011-06-291-38/+51
| | | | | On getopt errors, print a proper usage message instead of spitting out a traceback.
* bcfg2: Catch tracebacks (Tickets #1016 and #1017)Sol Jerome2011-06-211-0/+8
| | | | | | | This also moves the exception handling added in #1012 to the bcfg2 code for consistency (as per Holger Weiß's suggestion). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-info: Fix print formattingSol Jerome2011-06-131-7/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-reports: Revert shebang line modificationSol Jerome2011-06-081-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-reports: Show total numbers of entriesHolger Weiß2011-06-081-3/+43
| | | | | | Add a "-t NAME" option which reports the total (and good) number of managed entries on the host NAME. Also, allow for specifying "total", "good", and "bad" fields via --fields and --sort.
* bcfg2-reports: Show modified entriesHolger Weiß2011-06-071-26/+69
| | | | | bcfg2-reports now shows modified entries if it's called with --modifiedentry, -m, or -s.
* bcfg2-server: Add the ability to listen on specific interfaces (#1013)Sol Jerome2011-06-031-0/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* added -t option to set client timeoutChris St. Pierre2011-06-011-4/+6
|
* 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
* 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-181-2/+5
|
* bcfg2-info: Fix traceback when no args specifiedSol Jerome2011-05-171-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-info help returns help without starting a server instanceChris St. Pierre2011-05-161-1/+4
|
* 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.
* made bcfg2-lint error handling configurable on a much more granular levelChris St. Pierre2011-05-051-31/+54
|
* bcfg2: Fix typosSol Jerome2011-04-291-2/+2
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> (cherry picked from commit beb08649193f2c799017024bb738dc31b3420cb2)
* src/sbin: Add full PY3K compatibilitySol Jerome2011-04-278-109/+128
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Fix the bcfg2 client -r optionJonathan Billings2011-04-251-1/+6
| | | | | | | The man page for 'bcfg2' says to use -r 'all', 'Service' or 'Package', but the code only responded to -r 'all', 'service' or 'package'. Update the client to allow 'all', 'service', 'Service', 'package' and 'Package'.
* changed [main] section of bcfg2-lint.conf to [lint] to make it possible to ↵Chris St. Pierre2011-04-251-6/+2
| | | | | | combine config files get full stack trace from failed plugins for easier troubleshooting
* Misc. bcfg2-lint fixes and tweaks:Chris St. Pierre2011-04-211-4/+11
| | | | | | * fixed bcfg2-lint bug with older pythons * made bcfg2-lint silent by default on success * adjusted bcfg2-lint defaults and alerting levels to work better out-of-the-box
* Lots of cleanup for bcfg2-repo-validate rewrite:Chris St. Pierre2011-04-211-6/+5
| | | | | | | | | * Changed all references to bcfg2-repo-validate in the documentation to bcfg2-lint * Wrote man pages for bcfg2-lint and bcfg2-lint.conf * Cleaned up straggling references to bcfg2-repo-validate in Makefiles, spec files, and the POSIX tool * A few minor bug fixes
* repo-validate: Recreate as a symlink to bcfg2-lintSol Jerome2011-04-201-0/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Rewrote bcfg2-repo-validate as bcfg2-lint, which uses a pluginChris St. Pierre2011-04-202-328/+167
| | | | | | | | | interface to be lots more flexible and extensible. Added several more tests. If bcfg2-lint is run as bcfg2-repo-validate, it roughly emulates the functionality of that program. TODO: Need to figure out correct way to symlink bcfg2-repo-validate to bcfg2-lint on install.
* fixed XInclude magic and determination of whether a file is a client or ↵Chris St. Pierre2011-04-151-19/+49
| | | | group file
* fixed typo from mergeChris St. Pierre2011-04-141-1/+1
|
* resolved bcfg2-repo-validate conflictsChris St. Pierre2011-04-141-4/+5
|\
| * Merge branch 'py3k'Sol Jerome2011-04-137-150/+201
| |\
| | * src/sbin: PY3K + PEP8 fixesSol Jerome2011-04-137-150/+201
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | only check for multiple default groups if groups.xml is included in validationChris St. Pierre2011-04-141-9/+8
| | |
* | | A property file can now have a matching .xsd file (e.g.,Chris St. Pierre2011-04-131-65/+109
|/ / | | | | | | | | | | | | | | "Properties/foo.xml" and "Properties/foo.xsd") which specifies a schema for that property file. bcfg2-repo-validate will check the property file against its schema. Updated bcfg2-repo-validate man page with several new options.
* / * Made Metadata files validate whether or not XIncludes had been processedChris St. Pierre2011-04-131-24/+25
|/ | | | | | * bcfg2-repo-validate does not chase XIncludes if --stdin has been specified, but just validates the Metadata files you provide on stdin
* repo-validate: Remove unused prefix optionSol Jerome2011-04-111-1/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* merged upstream changesChris St. Pierre2011-04-111-17/+15
|\
| * repo-validate: Verify genshi bundle listSol Jerome2011-04-081-19/+17
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Added two flags to bcfg2-repo-validate:Chris St. Pierre2011-04-111-37/+66
|/ | | | | | | | | * --schema allows you to specify a custom path to the XML Schema files * --stdin allows you to specify a list of files on stdin and bcfg2-repo-validate will only validate those files. This is particularly useful to speed up validation checks in post-commit hooks (or similar).
* man: Add man page for bcfg2-ping-sweep (#997)Sol Jerome2011-03-171-10/+11
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-reports: Fail gracefully when missing statisticsSol Jerome2011-03-171-1/+7
| | | | | | | | | This fix is to address the traceback at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608613. We need to inform the user about the [statistics] section in bcfg2.conf so that they can go and find the necessary information needed to set up reports. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-reports: Fix usage helpSol Jerome2011-03-011-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Implement recursive attribute for nonexistent PathsSol Jerome2011-02-211-1/+1
| | | | | | | | The POSIX client tool now has the ability to recursively remove the contents of a specified directory provided there are no other managed entries under the directory. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>