summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow to run directly from a git checkout (#1037)Sol Jerome2012-03-241-353/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'fix-svn-keywords'Sol Jerome2012-03-171-1/+0
|\
| * Remove svn keywordsSol Jerome2012-02-191-1/+0
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Remove python2.3 compatibility codeSol Jerome2012-02-201-4/+0
|/ | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* fixed mistake in previous commitChris St. Pierre2012-01-261-0/+1
|
* track service restarts to prevent a service from being restarted multiple ↵Chris St. Pierre2012-01-261-5/+13
| | | | times by a single bcfg2 run (#853)
* implemented something like service removal (#1075)Chris St. Pierre2012-01-241-0/+7
|
* Mark entry as modified only if Install() succeededHolger Weiß2011-09-071-1/+2
| | | | | The client now makes sure that an entry won't be reported as modified if the Install() method which handled the entry returned False.
* Client/Tools: Get rid of popen2 (in favor of subprocess)Sol Jerome2011-04-281-45/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* SvcTool: adding interactive_only modeTim Laszlo2011-04-251-1/+3
|
* Client: PY3K + PEP8 fixesSol Jerome2011-04-071-5/+14
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Service: Allow services that are both supervised and custom (Ticket #979)Chris St. Pierre2011-02-241-4/+2
|
* POSIX: Remove client-side support for old POSIX typesSol Jerome2010-10-181-2/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* 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
* Add the ability to specify important entries via info/info.xmlSol Jerome2010-06-221-0/+3
| | | | | | | | | | | | 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
* Updated files to match PEP 257Fabian Affolter2010-06-071-31/+31
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 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: Add new upstart client toolSol Jerome2010-03-131-3/+20
| | | | | | | | | | 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>
* MacPorts: Preliminary attempt at a workable macports client toolSol Jerome2009-11-301-2/+2
| | | | | | | | | | 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
* 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
* Client tools: Remove unnecessary extra whitespaceSol Jerome2009-08-161-3/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5408 ce84e21b-d406-0410-9b95-82705330c041
* Client tools: Prompt for service restart in Interactive mode (Patch from ↵Sol Jerome2009-07-251-0/+4
| | | | | | | | | | | | | | Leif Ryge) This commit causes the client tools prompt for a service restart when running in interactive mode. This keeps the client interface consistent with what happens when installing other configuration types. This commit also fixes ticket #605 Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5385 ce84e21b-d406-0410-9b95-82705330c041
* Client: relax verification modlist to include all entries in all bundlesNarayan Desai2009-07-231-7/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5381 ce84e21b-d406-0410-9b95-82705330c041
* APT/Client: Suppress known warningsSol Jerome2009-06-261-1/+11
| | | | | | | | | APT: Suppress APT api warning Client/Tools/__init__.py: Suppress popen2 deprecation warning Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5301 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Remove last traces of popen2 from client code"Sol Jerome2009-05-271-12/+38
| | | | | | | | | | | This reverts commit 5167. We are still supporting python2.3 on the client. This can be redone once we start supporting 2.4 or greater. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5257 ce84e21b-d406-0410-9b95-82705330c041
* Remove deprecated RPM and Yum driversNarayan Desai2009-05-151-2/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5237 ce84e21b-d406-0410-9b95-82705330c041
* Python 2to3 updates for the Client toolsSol Jerome2009-04-241-4/+10
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5178 ce84e21b-d406-0410-9b95-82705330c041
* Remove last traces of popen2 from client codeSol Jerome2009-04-151-38/+12
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5167 ce84e21b-d406-0410-9b95-82705330c041
* Initial IPS (Opensolaris) driverNarayan Desai2009-04-011-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5146 ce84e21b-d406-0410-9b95-82705330c041
* Implement improved client-side error checking (will allow better error ↵Narayan Desai2009-02-181-0/+10
| | | | | | messages in cases of bind failures, etc) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5082 ce84e21b-d406-0410-9b95-82705330c041
* revert subprocess changes for the moment as wellNarayan Desai2009-02-091-12/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5070 ce84e21b-d406-0410-9b95-82705330c041
* Client tools infrastructure update for python 2.6 (From Kamil Kisiel)Narayan Desai2009-02-061-4/+12
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5067 ce84e21b-d406-0410-9b95-82705330c041
* Simplify service configuration; make all services use common restart frameworkNarayan Desai2009-01-231-16/+43
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5040 ce84e21b-d406-0410-9b95-82705330c041
* Do not stop services in build mode (Partially resolves Ticket #624)Sol Jerome2008-12-111-4/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4993 ce84e21b-d406-0410-9b95-82705330c041
* pylint fixes for client codeNarayan Desai2008-12-081-4/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4991 ce84e21b-d406-0410-9b95-82705330c041
* Pylint formatting fixes for client tool driversSol Jerome2008-09-271-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4923 ce84e21b-d406-0410-9b95-82705330c041
* Fix two typos in error messagesNarayan Desai2008-08-211-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4886 ce84e21b-d406-0410-9b95-82705330c041
* revert mistaken prunedir changeNarayan Desai2008-08-051-5/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4855 ce84e21b-d406-0410-9b95-82705330c041
* SSHbase: improve tempfile handling (patch from f.pauget) (Resolves Ticket #588)Narayan Desai2008-08-051-2/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4854 ce84e21b-d406-0410-9b95-82705330c041
* - Add preliminary support for rc under FreeBSDRobert Gogolok2008-05-081-2/+2
| | | | | | | - TODOs git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4602 ce84e21b-d406-0410-9b95-82705330c041
* Remove validation states from Tool instances (in preparation for ↵Narayan Desai2008-03-171-18/+18
| | | | | | DecisionList stuff) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4423 ce84e21b-d406-0410-9b95-82705330c041
* Check for null attributesNarayan Desai2008-01-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4243 ce84e21b-d406-0410-9b95-82705330c041
* Implement data collection on incomplete entry path for POSIXNarayan Desai2007-11-031-0/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3911 ce84e21b-d406-0410-9b95-82705330c041
* Fix error in state handling (Resolves Ticket #479)Narayan Desai2007-11-031-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3908 ce84e21b-d406-0410-9b95-82705330c041
* Pass through modlist data for non package entriesNarayan Desai2007-10-111-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3794 ce84e21b-d406-0410-9b95-82705330c041
* Change incomplete entry reason to be an error, and include all missing ↵Narayan Desai2007-07-301-4/+11
| | | | | | attributes (Resolves Ticket #474) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3579 ce84e21b-d406-0410-9b95-82705330c041
* Switch default to RPMng/YUMng (RPM/Yum are still around just not enabled by ↵Narayan Desai2007-07-231-1/+1
| | | | | | default) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3548 ce84e21b-d406-0410-9b95-82705330c041
* Added debugging when verify or install fails due to lack of an attribute.Daniel Joseph Barnhart Clark2007-07-061-8/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3421 ce84e21b-d406-0410-9b95-82705330c041
* Add preliminary support for FreeBSD Packages (from gogo)Narayan Desai2007-06-021-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3223 ce84e21b-d406-0410-9b95-82705330c041