summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
Commit message (Collapse)AuthorAgeFilesLines
* Don't assume python2.5 is being used on successful hashlib importSol Jerome2010-08-111-7/+7
| | | | | | | | | | | | The hashlib module has been backported to earlier versions of python. If we assume that 2.5 is in use, then python will go crazy looking for stuff that doesn't exist in earlier versions. This patch will allow older versions of python installed alongside a standalone hashlib module to work properly. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6004 ce84e21b-d406-0410-9b95-82705330c041
* IPS: Fix argument ordering for PkgTool.__init__ as wellTim Laszlo2010-08-041-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5995 ce84e21b-d406-0410-9b95-82705330c041
* IPS: init args ordering patch from Rick BradshawSol Jerome2010-07-301-1/+1
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5994 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Better error handling for installsTim Laszlo2010-07-301-2/+8
| | | | | | | Currently a missing package throws an exception during the install. This traps it and gracefully logs an error. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5993 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix spellingSol Jerome2010-07-191-1/+1
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5980 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Add basic Yum error handling on loadTim Laszlo2010-07-081-3/+13
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5965 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Use native Yum APITim Laszlo2010-07-081-134/+96
| | | | | | | Patch submitted by Jack Neely. Replaces the Install and Remove methods with code that directly uses the Yum API. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5964 ce84e21b-d406-0410-9b95-82705330c041
* Add the ability to specify important entries via info/info.xmlSol Jerome2010-06-224-3/+8
| | | | | | | | | | | | We currently have 'important' entries specified only inside the code for various client tools. This provides no room for growing that list outside of adding things to the code itself. With this change, users can now specify important entries via an additional attribute in their info.xml files. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5957 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add more filters for deprecated apt API accesses (Patch from Kioob)Sol Jerome2010-06-211-0/+2
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5955 ce84e21b-d406-0410-9b95-82705330c041
* RPMng, YUMng improvements (patch from slack)Narayan Desai2010-06-212-15/+51
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5944 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Don't install incompletely specified directory entries (Resolves ↵Sol Jerome2010-06-161-1/+9
| | | | | | | | Ticket #884) Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5940 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Don't set perms for unspecified entries (Resolves ticket #893)Sol Jerome2010-06-161-0/+8
| | | | | | | | | | We were previously setting permissions to '0000' for entries that were incorrectly specified (missing 'perms' attribute). This fixes that and requests the user run bcfg2-repo-validate. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5939 ce84e21b-d406-0410-9b95-82705330c041
* Upstart: Fix bug when installing servicesSol Jerome2010-06-161-6/+6
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5938 ce84e21b-d406-0410-9b95-82705330c041
* Add /etc/yum.repos.d to the important list for YUMngTim Laszlo2010-06-141-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5929 ce84e21b-d406-0410-9b95-82705330c041
* APT: Fix nonexistent Path verification failures (Reported by Remi Broemeling)Sol Jerome2010-06-101-0/+6
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5919 ce84e21b-d406-0410-9b95-82705330c041
* tabs -> spacesSol Jerome2010-06-101-5/+5
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* MacPorts/Portage: Fix indentation errorsSol Jerome2010-06-102-2/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Updated files to match PEP 257Fabian Affolter2010-06-0720-180/+182
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 ce84e21b-d406-0410-9b95-82705330c041
* Chkconfig: Fix supervised mode status='off' behavior (Patch from Mathieu Jobin)Sol Jerome2010-05-181-9/+17
| | | | | | Fixes issue reported in Ticket #846. Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* YUMng: Add support for Path type='ignore' entriesSol Jerome2010-04-302-2/+21
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5851 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: make yumng robust again virtual package specs (patch from slack)Narayan Desai2010-04-301-7/+26
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5849 ce84e21b-d406-0410-9b95-82705330c041
* Upstart: Fix traceback for non-upstart services (Resolves Ticket #878)Sol Jerome2010-04-291-2/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5847 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix list comprehension traceback (Reported by Jonathan Billings) [bugfix]Sol Jerome2010-04-291-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5844 ce84e21b-d406-0410-9b95-82705330c041
* Upstart: Fix traceback for services that don't existSol Jerome2010-04-211-10/+16
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* APT: Add sources.list* to __important__ listSol Jerome2010-04-131-9/+10
| | | | | | | | | | | | Frame: Fix bug in handling of __important__ entries This should allow people the easier option of configuring their APT sources in the /etc/sources.list.d dirctory instead of just relying on sources.list to be correct. This commit also fixes a bug where the client was relying on a 'ConfigFile' entry tag even in the case where a Path entry was present. Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* 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