summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Frame: Modify list comprehension so that it doesn't require lxmlSol Jerome2010-04-141-2/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5825 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add sources.list* to __important__ listSol Jerome2010-04-132-9/+24
| | | | | | | | | | | | 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
* 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