summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
Commit message (Collapse)AuthorAgeFilesLines
* YUMng: syntax errorTim Laszlo2010-10-181-1/+1
|
* POSIX: Remove client-side support for old POSIX typesSol Jerome2010-10-185-326/+331
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Client Tools: Pylint/PEP8 fixesSol Jerome2010-10-1715-78/+133
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Keep interpreter specifications consistentSol Jerome2010-10-141-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Install missing configuration files (Fixes Ticket #622)Sol Jerome2010-10-121-1/+3
| | | | | | | | | We used to not do this because the user may have removed the configuration file in question on purpose. However, now that we have support for nonexistent entries, we can afford to add this option without any consequences. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Group paths to prune as an elementTim Laszlo2010-09-261-1/+4
| | | | | | | Avoids a potential problem where paths with a : in the name are not removed. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6071 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: correct the __req__Jack Neely2010-09-261-14/+6
| | | | | | | | Catch possible traceback if we are handed an instance not in our list. (This seems to be a bug with duplicate instances.) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6065 ce84e21b-d406-0410-9b95-82705330c041
* DebInit: implement support for dependency-based boot in Squeeze and beyondNarayan Desai2010-09-261-2/+18
| | | | | | (patch from https://www.google.com/accounts/o8/id?id=AItOawlG5aiZZ6D7CrCtcInFhXmj7TC9AOKTyb8) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6060 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Deal with any possible Yum verify exceptionsJack Neely2010-09-131-1/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6054 ce84e21b-d406-0410-9b95-82705330c041
* Client/Tools: Remove debsums.py client tool (accidentally committed)Sol Jerome2010-09-121-11/+0
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6053 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: patch from Tim Laszlo to handle verifying broken symlinksJack Neely2010-09-041-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6049 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: fix bug #931Jack Neely2010-09-041-1/+0
| | | | | | | getinstalledgpg() is an RPMng method and is no longer needed in YUMng. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6047 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix Path type='ignore' traceback (Reported by Thomas Ackermann)Sol Jerome2010-08-301-3/+8
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6046 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: speed improvements, multilib verify bug fixes, configuration knobsJack Neely2010-08-301-43/+97
| | | | | | | | | | | The pkg_checks, pkg_verify, installed_action, version_fail_action, and verify_fail_action configuration knobs are all wired back up. Caching implemented to help speed up the package verify routine. Work arounds for Yum bug: http://yum.baseurl.org/ticket/573 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6045 ce84e21b-d406-0410-9b95-82705330c041
* Tools/__init__.py: Pylint/PEP8 fixesSol Jerome2010-08-271-5/+15
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6038 ce84e21b-d406-0410-9b95-82705330c041
* Tools/__init__.py: Autoload client tools present in the Tools directorySol Jerome2010-08-271-26/+9
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6037 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Speed improvements, Enable reinstallsJack Neely2010-08-271-17/+107
| | | | | | | | | | | | We no longer use RPMng in YUMng. This improves speed by not calling prelink as yum takes care of that for us. Yum can do reinstalls on package verify fail so lets wire that up. Not all the knobs in /etc/bcfg2.conf are hooked up yet. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6035 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: All gpg-pubkey must be in the proper work queue to be installed.Jack Neely2010-08-181-7/+10
| | | | | | | | | | gpg-pubkeys are not packages, yet we treat them as so. They require special handling for all install/upgrades/etc. This corrects a condition where gpg-pubkeys were "upgraded" rather than "installed." git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6027 ce84e21b-d406-0410-9b95-82705330c041
* YUMng.py: correct undefined variableJack Neely2010-08-181-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6026 ce84e21b-d406-0410-9b95-82705330c041
* YUMng display classes, always compare string versions of packages.Jack Neely2010-08-181-2/+2
| | | | | | | | The package object here can be either a yum PO or a string. Comparing strings to POs tracebacks. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6025 ce84e21b-d406-0410-9b95-82705330c041
* Display classes for the YUMng driverJack Neely2010-08-141-3/+57
| | | | | | | | | These callback classes pipe Yum's and RPM's logging output into our own logger, cut down on verbosity, and allow us to fine tune what logging goes where. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6018 ce84e21b-d406-0410-9b95-82705330c041
* YUMng re-implementation of VerifyPackage using the Yum API.Jack Neely2010-08-111-89/+318
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6008 ce84e21b-d406-0410-9b95-82705330c041
* debian: Merge in changes from Arto JantunenSol Jerome2010-08-111-1/+2
| | | | | | | | | bcfg2.init: Remove agent mode (no longer exists) POSIX.py: Fix hardcoded errno value Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6005 ce84e21b-d406-0410-9b95-82705330c041
* 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
* Commit whitelist/blacksupport for glob style entriesNarayan Desai2010-07-301-6/+19
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5986 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-072-15/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5898 ce84e21b-d406-0410-9b95-82705330c041
* 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
* Frame.py: Fix handling of ^C on CentOS 5Sol Jerome2010-04-221-0/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5835 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>