summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* POSIX: Add block/character/fifo devices (ticket #477)Sol Jerome2009-10-012-19/+98
| | | | | | | | | | 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
* 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
* 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
* Added Fossil to Plugins init and Fossil and Bzr to man 5 bcfg2.confDaniel Joseph Barnhart Clark2009-09-251-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5462 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-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
* Pull.py: Fix traceback for ticket #731Sol Jerome2009-09-141-1/+6
| | | | | | | | | | While the pull mode of bcfg2-admin will not work unless a statistics plugin is enabled, we should not allow it to traceback in the case a user tries to call it without having one enabled. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5432 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix spelling error (Reported by David Strauss)Sol Jerome2009-09-141-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5431 ce84e21b-d406-0410-9b95-82705330c041
* FreeBSDInit: Add check to see if we are on a FreeBSD systemSol Jerome2009-09-111-0/+5
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5430 ce84e21b-d406-0410-9b95-82705330c041
* *Genshi: Don't strip whitespace (Resolves Ticket #730)Narayan Desai2009-09-112-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5429 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Improve clarity of debug messages (Resolves Ticket #728)Narayan Desai2009-09-101-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5427 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix typo (Resolves Ticket #726)Narayan Desai2009-09-101-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5426 ce84e21b-d406-0410-9b95-82705330c041
* POSIXCompat: Change name of Compat plugin to POSIXCompatSol Jerome2009-09-093-14/+37
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5425 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add error message when clients do not match any Packages sources ↵Narayan Desai2009-09-091-0/+3
| | | | | | (Resolves Ticket #723) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5424 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Make Packages handle urls not terminated with /'s properly ↵Narayan Desai2009-09-091-0/+4
| | | | | | (Resolves Ticket #716) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5423 ce84e21b-d406-0410-9b95-82705330c041
* Packages: automatically include placeholder values for version and component ↵Narayan Desai2009-09-091-1/+7
| | | | | | fields of sources git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5422 ce84e21b-d406-0410-9b95-82705330c041
* Compat: old clients will not accept entries containing a type attributeSol Jerome2009-09-091-0/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5420 ce84e21b-d406-0410-9b95-82705330c041
* Compat: Fix plugin to generate proper spec for older clientsSol Jerome2009-09-071-7/+11
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5418 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add hard link support for ticket #588Sol Jerome2009-09-071-5/+47
| | | | | | | | Add support for HardLink entries using the new unified POSIX interface. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5417 ce84e21b-d406-0410-9b95-82705330c041