| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
|
| |
Catch I/O errors which might occur while reading a file specified as
argument to --badentry, --extraentry, or --modifiedentry.
|
|
|
|
|
| |
On getopt errors, print a proper usage message instead of spitting out a
traceback.
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
|
|
| |
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 now shows modified entries if it's called with
--modifiedentry, -m, or -s.
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
| |
|
|
|
|
| |
an ugly stack trace if a file fails to validate
|
|
|
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
(cherry picked from commit beb08649193f2c799017024bb738dc31b3420cb2)
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
|
|
|
| |
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'.
|
|
|
|
|
|
| |
combine config files
get full stack trace from failed plugins for easier troubleshooting
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
group file
|
| |
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | | |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
"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.
|
|/
|
|
|
|
| |
* bcfg2-repo-validate does not chase XIncludes if --stdin has been
specified, but just validates the Metadata files you provide on
stdin
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|\ |
|
| |
| |
| |
| | |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|/
|
|
|
|
|
|
|
| |
* --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).
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
| |
#975)
|
|
|
|
|
|
|
|
| |
* Handle keyboard interrupts (fixes a traceback)
* Fix default plugin list (missing punctuation)
* Various PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|
|
|
|
| |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
|