summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
Commit message (Collapse)AuthorAgeFilesLines
* APT: produce reasonable interactive messages for version=auto entriesNarayan Desai2010-04-081-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5811 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: preinstall /etc/yum.d/*Narayan Desai2010-04-081-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5808 ce84e21b-d406-0410-9b95-82705330c041
* RcUpdate: Add supervised service installSol Jerome2010-03-261-5/+13
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5800 ce84e21b-d406-0410-9b95-82705330c041
* Removed unnecessary variable. Fixed usage of uninitialized variable.Sol Jerome2010-03-261-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5799 ce84e21b-d406-0410-9b95-82705330c041
* We don't call the init script anymore.Sol Jerome2010-03-261-8/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5798 ce84e21b-d406-0410-9b95-82705330c041
* We don't do that, this is done by __init__.py.Sol Jerome2010-03-261-10/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5797 ce84e21b-d406-0410-9b95-82705330c041
* Fixed a bug in the last commit. Is_enabled now really checks ifSol Jerome2010-03-261-11/+11
| | | | | | something is enabled, not, if it is running. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5796 ce84e21b-d406-0410-9b95-82705330c041
* Reworked RcUpdate.py. VerifyService now checks if running services areSol Jerome2010-03-261-34/+61
| | | | | | enabled. InstallService now respects supervised mode. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5795 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add support to properly verify new POSIX entries (directories)Sol Jerome2010-03-221-1/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5787 ce84e21b-d406-0410-9b95-82705330c041
* Portage.py: Fix equery usage for newer versions of gentoolkit (Patch from ↵Sol Jerome2010-03-221-1/+3
| | | | | | | | Philipp Riegger) Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5784 ce84e21b-d406-0410-9b95-82705330c041
* Client/Tools/__init__.py: Report return value in lower bits of cmdstatSol Jerome2010-03-221-1/+4
| | | | | | | | | | The return value was being stored in the upper eight bits of cmdstat. This change shifts that value to the lower bits so that comparisons in calling methods will be reliable. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5783 ce84e21b-d406-0410-9b95-82705330c041
* Upstart: Properly verify service statusSol Jerome2010-03-182-4/+19
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5781 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add support for using non-standard tool paths (Resolves Ticket #773Sol Jerome2010-03-131-9/+25
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5766 ce84e21b-d406-0410-9b95-82705330c041
* Upstart: Add new upstart client toolSol Jerome2010-03-132-3/+83
| | | | | | | | | | Due to the nature of the way Upstart handles service specification, turning 'servicename' off and on can be done via a configuration file located at /etc/init/<servicename>.conf. Enabling a disabled service can be done by making sure that the Upstart configuration file and the service are bundled together. Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* APT: add support for new debsums (Patch from Nicolas Dandrimont)Narayan Desai2010-03-131-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5761 ce84e21b-d406-0410-9b95-82705330c041
* FreeBSDInit: Add __init__ call (Resolves Ticket #814)Sol Jerome2010-02-171-0/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5729 ce84e21b-d406-0410-9b95-82705330c041
* SMF: Spelling fixSol Jerome2010-02-171-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5728 ce84e21b-d406-0410-9b95-82705330c041
* Remove duplicate definitions (reported by zed on irc) [bugfix]Sol Jerome2010-02-101-8/+0
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5719 ce84e21b-d406-0410-9b95-82705330c041
* rpmtools: Use hashlib for 2.5 or greater clientsSol Jerome2010-02-011-2/+11
| | | | | | | | | | This patch uses the hashlib module included in python2.5 or greater by default. It will still fall back to the old behavior for clients which have 2.4 or earlier. This resolves ticket #840. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5710 ce84e21b-d406-0410-9b95-82705330c041
* RcUpdate: Fix Service detection on Gentoo (Patch from Thorsten Lockert #825) ↵Sol Jerome2010-01-201-0/+10
| | | | | | | | [bugfix] Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5689 ce84e21b-d406-0410-9b95-82705330c041
* Code cleanupsSol Jerome2009-12-301-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5648 ce84e21b-d406-0410-9b95-82705330c041
* RPMng: fix ignore filename handing (Resolves Ticket #811)Narayan Desai2009-12-091-4/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5617 ce84e21b-d406-0410-9b95-82705330c041
* IPS: Fix typo (Patch from Matthew Baker) [bugfix]Sol Jerome2009-12-041-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5611 ce84e21b-d406-0410-9b95-82705330c041
* MacPorts: Preliminary attempt at a workable macports client toolSol Jerome2009-11-302-2/+62
| | | | | | | | | | This commit adds support for installing macports via 'port install' and verifying the presence of installed packages. We can't expect to be able to do much more than this at the moment. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5597 ce84e21b-d406-0410-9b95-82705330c041
* rpmtools: Spelling/pep8 fixesSol Jerome2009-11-301-22/+22
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5596 ce84e21b-d406-0410-9b95-82705330c041
* launchd: fixed return code checks when (un)installing servicesKamil Kisiel2009-11-251-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5595 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Use tag name in interactive mode to prevent confusionSol Jerome2009-11-241-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5594 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Remove support for old-style posix entriesSol Jerome2009-11-191-5/+0
| | | | | | | | | | | This commit forces the user to specify <Path> entries on the server side while still maintaining compatibility with old clients via the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5582 ce84e21b-d406-0410-9b95-82705330c041
* launchd: minor spacing fixSol Jerome2009-11-191-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5580 ce84e21b-d406-0410-9b95-82705330c041
* RPMng: supress prelink runs in dryrun mode (Resolves Ticket #794) [bugfix]Narayan Desai2009-11-111-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5573 ce84e21b-d406-0410-9b95-82705330c041
* RcUpdate: Fix final regression caused by [5178] (Patch from Thorsten Lockert)Sol Jerome2009-11-071-1/+1
| | | | | | | | Resolves ticket #790. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5558 ce84e21b-d406-0410-9b95-82705330c041
* APT: suppress apt driver api warningsNarayan Desai2009-11-051-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5546 ce84e21b-d406-0410-9b95-82705330c041
* RPMng: Fix modlist usage (resolves verification issue reported by drtns)Narayan Desai2009-11-051-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5527 ce84e21b-d406-0410-9b95-82705330c041
* Gentoo: Fix RemovePackages() so that packages can be removedSol Jerome2009-11-051-4/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5526 ce84e21b-d406-0410-9b95-82705330c041
* Moved launchd plist cache to __init__ function.Kamil Kisiel2009-11-031-21/+24
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5524 ce84e21b-d406-0410-9b95-82705330c041
* Added checks for Snow Leopard (10.6) to launchd client toolKamil Kisiel2009-11-021-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5523 ce84e21b-d406-0410-9b95-82705330c041
* Greatly sped up launchd client tool. Also made services reload correctly.Kamil Kisiel2009-11-021-25/+33
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5522 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: remove call to yum api that breaks plugin use (Resolves Ticket #765)Narayan Desai2009-10-301-2/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5517 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: File file comparison in cases where unicode mismatches occur ↵Narayan Desai2009-10-301-1/+0
| | | | | | (Resolves Ticket #772) (Patch from Nicolas Dandrimont) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5514 ce84e21b-d406-0410-9b95-82705330c041
* Action: Implement per-action toggle to prevent execution in build mode ↵Narayan Desai2009-10-241-0/+4
| | | | | | (Resolves Ticket #747) (can set build='false' in actions to suppress execution in build mode) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5501 ce84e21b-d406-0410-9b95-82705330c041
* Actions: Fix bundle filtering of actions (Resolves Ticket #766)Narayan Desai2009-10-241-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5499 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: pass through verify flags for multi-instance packagesNarayan Desai2009-10-241-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5498 ce84e21b-d406-0410-9b95-82705330c041
* RPMng: Fix package verification when verify=falseNarayan Desai2009-10-241-10/+18
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5497 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: simplify codepaths for debug modeNarayan Desai2009-10-211-4/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5489 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add support for all new POSIX types in the client codeSol Jerome2009-10-161-3/+48
| | | | | | | | | | | The client should now understand old and new POSIX entries. It is compatible with 0.9.6, 1.0 using POSIXCompat, and new 1.0 Path entries. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5485 ce84e21b-d406-0410-9b95-82705330c041
* Fix incorrect mappings and change configfile type to fileSol Jerome2009-10-161-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5484 ce84e21b-d406-0410-9b95-82705330c041
* SYSV fixes: (Resolves Ticket #762) (Patch from ITS Systems Team)Narayan Desai2009-10-161-1/+9
| | | | | | | - Flush noaskfile changes to disk - Handle package names better git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5483 ce84e21b-d406-0410-9b95-82705330c041
* Add bcfg2.conf option so that client can always run in paranoid modeSol Jerome2009-10-141-2/+3
| | | | | | | | | | | 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
* POSIX: Add block/character/fifo devices (ticket #477)Sol Jerome2009-10-011-12/+89
| | | | | | | | | | 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