summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add bcfg2.conf option so that client can always run in paranoid modeSol Jerome2009-10-143-3/+8
| | | | | | | | | | | You currently must specify the -P command line option in order to run the client in paranoid mode. In order to allow for consistent usage (as specified in ticket #763), this commit adds an option to bcfg2.conf so that the client will always be run in paranoid mode. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5482 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: patch version checking code to work on releases with strings in the ↵Narayan Desai2009-10-121-1/+1
| | | | | | | | names. Patch from Guilhem Lettron (Resolves Ticket #761) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5481 ce84e21b-d406-0410-9b95-82705330c041
* Implement support for M2Crypto on the bcfg2 client.Mike McCallister2009-10-082-19/+133
| | | | | | | | | | | | | | | | | | | | While Python 2.6's ssl module is the way of the future, support for M2Crypto helps the Bcfg2 client run on machines with older versions of Python. This commit provides basic support. More work remains to be done on general SSL support within Bcfg2. Reference the following work-in-progress document (or its successors) for things to consider: http://tools.ietf.org/html/draft-saintandre-tls-server-id-check-02 See also the following thread for other thoughts: http://thread.gmane.org/gmane.comp.sysutils.bcfg2.devel/3563 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5480 ce84e21b-d406-0410-9b95-82705330c041
* Enhanced bcfg2-info to implement a new "builddir" command.Mike McCallister2009-10-081-0/+81
| | | | | | | | | | | | | | | This new command is similar to the "build" command, except that instead of writing the complete config to a single file, it writes the ConfigFile elements from the config into separate files in their appropriate locations in a directory tree. This is based on the functionality (and implementation) found in the tools/bcfg2-export-config script, which does not currently work due to being out of sync with updates made to Bcfg2 library functions on which it depends. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5479 ce84e21b-d406-0410-9b95-82705330c041
* Perf: Fix syntax errorSol Jerome2009-10-071-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5478 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-0752-289/+381
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Remove GBundler plugin (this functionality already exists in Bundler)Sol Jerome2009-10-072-40/+0
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5476 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: Set type to 'configfile' for Path entriesSol Jerome2009-10-061-2/+4
| | | | | | | | | | When binding Path entries using Cfg, we need to set the entry type to 'configfile' so that the POSIXCompat plugin can properly map it to an old-style entry. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5475 ce84e21b-d406-0410-9b95-82705330c041
* Admin-modes: Implement plugin whitelists/blacklists for modes that don't requireNarayan Desai2009-10-022-2/+11
| | | | | | | a full server Viz : Use the new blacklist option to speed up viz performance git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5474 ce84e21b-d406-0410-9b95-82705330c041
* Viz: remove spurious raise SystemExitNarayan Desai2009-10-021-1/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5473 ce84e21b-d406-0410-9b95-82705330c041
* Fix nasty core hang, which would manifest itself as a lockup upon shutdown ↵Narayan Desai2009-10-024-3/+16
| | | | | | | | | | | | | | | | | | | for bcfg2-{server,info,admin} The root cause of this issue was our use of external threads. Without a channel for data requesting plugin (and hence thread) shutdown, plugin threads would continue, unabated, forever. This would cause the python interpreter to hang forever waiting for a futex. Added a new shutdown method to Bcfg2.Server.Plugin.Plugin which sets a state flag upon shutdown request. Plugin threads must cycle periodically, even if no work is available, to ensure that the shutdown flag is honored in a reasonable amount of time. Also, the shutdown method is triggered using atexit. This means that scripts may need to explicitly sys.exit or raise SystemExit, depending on circumstances. This addresses at least one, but probably more tickets, however I am currently offline. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5472 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2.init: Fix case statement for ticket #752 (Patch from Travis Campbell)Sol Jerome2009-10-021-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5471 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add block/character/fifo devices (ticket #477)Sol Jerome2009-10-015-23/+112
| | | | | | | | | | This commit adds support for posix device types via Path entries in Bundler. The 'type' attribute for Path entries is now all lowercase. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5470 ce84e21b-d406-0410-9b95-82705330c041
* schema: Add description attribute for Bundles (ticket #689)Sol Jerome2009-09-291-0/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5469 ce84e21b-d406-0410-9b95-82705330c041
* Client Frame: Do not run updates for unspecified bundles (Fix for ticket #751)Sol Jerome2009-09-281-10/+13
| | | | | | | | | | | Do not allow client tool drivers to be called for bundles which are not specified when running in bundle mode (-b). I believe this case only shows up for Actions run always currently, however, we should keep the interface consistent and ignore unspecified bundles completely. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5468 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix bulk package removal backtrace (Resolves Ticket #749)Narayan Desai2009-09-281-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5467 ce84e21b-d406-0410-9b95-82705330c041
* schema: Add schema for Path entriesSol Jerome2009-09-263-0/+34
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5466 ce84e21b-d406-0410-9b95-82705330c041
* Changed name and implementation to "bcfg2-server" so that the serverMike McCallister2009-09-261-2/+2
| | | | | | | logs to syslog as "bcfg2-server". git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5465 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add support for nonexistent Path entry typesSol Jerome2009-09-263-7/+27
| | | | | | | | | | Allow specification of Path entries which should not exist on the client. This gives the user the ability to explicitly remove Path entries if they exist on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5464 ce84e21b-d406-0410-9b95-82705330c041
* Schema: Add restart attribute to the servicetype schemaSol Jerome2009-09-251-0/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5463 ce84e21b-d406-0410-9b95-82705330c041
* Added Fossil to Plugins init and Fossil and Bzr to man 5 bcfg2.confDaniel Joseph Barnhart Clark2009-09-252-0/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5462 ce84e21b-d406-0410-9b95-82705330c041
* Bcfg2 man page: Keep ordering of options consistentSol Jerome2009-09-241-3/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5461 ce84e21b-d406-0410-9b95-82705330c041
* Packages: pylint fixesNarayan Desai2009-09-241-41/+63
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5460 ce84e21b-d406-0410-9b95-82705330c041
* Packages: immediately add dependencies for packages added as single-choice ↵Narayan Desai2009-09-241-1/+10
| | | | | | virtual deps (Resolves Ticket #745) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5459 ce84e21b-d406-0410-9b95-82705330c041
* Add better debug logging to Fossil plugin, like Bzr.py hasDaniel Joseph Barnhart Clark2009-09-241-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5458 ce84e21b-d406-0410-9b95-82705330c041
* Support for [http://fossil-scm.org Fossil] SCM Distributed Version Control ↵Daniel Joseph Barnhart Clark2009-09-241-0/+50
| | | | | | System (DVCS) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5457 ce84e21b-d406-0410-9b95-82705330c041
* Decisions: Catch initialization error for non-existent Decisions directorySol Jerome2009-09-241-2/+10
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5456 ce84e21b-d406-0410-9b95-82705330c041
* Component: remove unneeded call to umask (Resolves Ticket #714)Narayan Desai2009-09-231-1/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5455 ce84e21b-d406-0410-9b95-82705330c041
* Packages: rework apt dependency choicesNarayan Desai2009-09-231-4/+9
| | | | | | | | | | | | Don't force use of a particular prereq choice. This causes additional unknown entries in package dep resolution, but removes incorrect dependency choice hardwiring. This effect can be mitigated by listing package prereq choices explicitly. Eventually, we should implement apt's choice of last resort algorithm for Packages. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5454 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix infinite loop problem with cyclic deps (Reported by david strauss)Narayan Desai2009-09-231-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5453 ce84e21b-d406-0410-9b95-82705330c041
* Revision returned by Bzr should be a scalar value.David Strauss2009-09-231-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5452 ce84e21b-d406-0410-9b95-82705330c041
* Initial Bazaar VCS support.David Strauss2009-09-232-0/+46
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5451 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix case where item is completely unknown (hence pset is unset) ↵Narayan Desai2009-09-231-2/+3
| | | | | | (Resolves #743) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5450 ce84e21b-d406-0410-9b95-82705330c041
* Packages: make package alternatives work properly when specified (Resolves ↵Narayan Desai2009-09-221-17/+48
| | | | | | Ticket #738) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5449 ce84e21b-d406-0410-9b95-82705330c041
* TGenshi: Ensure backward/forward api compatibility for genshiNarayan Desai2009-09-221-2/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5448 ce84e21b-d406-0410-9b95-82705330c041
* Packages: sort auto-added package entriesNarayan Desai2009-09-221-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5447 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix extra / inclusion in repomd urls (Resolves Ticket #740)Narayan Desai2009-09-221-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5446 ce84e21b-d406-0410-9b95-82705330c041
* Services: Use the 'target' attribute for custom servicesSol Jerome2009-09-211-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5445 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement config file reloadsNarayan Desai2009-09-181-8/+27
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5444 ce84e21b-d406-0410-9b95-82705330c041
* Xcmd: Improve error handling for unknown rmi methodsNarayan Desai2009-09-182-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5443 ce84e21b-d406-0410-9b95-82705330c041
* SSLServer: Fix rmi method exportNarayan Desai2009-09-181-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5442 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin xcmd: improve error handling (Resolves Ticket #734)Narayan Desai2009-09-181-1/+15
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5441 ce84e21b-d406-0410-9b95-82705330c041
* SSLServer: don't pass address argument to methods with dotted namesNarayan Desai2009-09-181-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5440 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: refuse to write build output outside of /tmp without -f flag ↵Narayan Desai2009-09-181-3/+11
| | | | | | (Resolves Ticket #737) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5439 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin: implement xcmd modeNarayan Desai2009-09-152-1/+37
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5438 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement remote cache update callNarayan Desai2009-09-151-0/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5437 ce84e21b-d406-0410-9b95-82705330c041
* SSLServer: Re-implement support for plugin rmi callsNarayan Desai2009-09-151-0/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5436 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: Implement tunable socket timeoutsNarayan Desai2009-09-151-6/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5435 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add list of packages and dependencies on clientSol Jerome2009-09-152-2/+8
| | | | | | | | | | | Now that we have Packages, it is useful to be able to determine whether your package was specified directly in your configuration or was added by Packages. This commit allows you to view this information in debug mode on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5434 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: Fix traceback when client has no bundlesSol Jerome2009-09-151-1/+2
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5433 ce84e21b-d406-0410-9b95-82705330c041