summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
Commit message (Collapse)AuthorAgeFilesLines
* POSIX: Clarify normalization error (Reported by Tim Goodaire)Sol Jerome2011-05-251-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Add two filters for deprecated API accessesHolger Weiß2011-05-201-0/+2
| | | | | These accesses are triggered by <Package> configuration entries which don't have the "version" attribute set to "auto" or "any".
* Upstart: Fix typo reported by justintime on IRCSol Jerome2011-05-091-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* 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>
* SvcTools: Change return from mode="manual" to false so the entries report a ↵Tim Laszlo2011-04-256-6/+6
| | | | Bad state
* SvcTool: adding interactive_only modeTim Laszlo2011-04-251-1/+3
|
* Fix the bcfg2 client -r optionJonathan Billings2011-04-251-2/+2
| | | | | | | The man page for 'bcfg2' says to use -r 'all', 'Service' or 'Package', but the code only responded to -r 'all', 'service' or 'package'. Update the client to allow 'all', 'service', 'Service', 'package' and 'Package'.
* Lots of cleanup for bcfg2-repo-validate rewrite:Chris St. Pierre2011-04-211-11/+11
| | | | | | | | | * Changed all references to bcfg2-repo-validate in the documentation to bcfg2-lint * Wrote man pages for bcfg2-lint and bcfg2-lint.conf * Cleaned up straggling references to bcfg2-repo-validate in Makefiles, spec files, and the POSIX tool * A few minor bug fixes
* Add basic support for systemd services.Jeffrey C. Ollie2011-04-191-0/+59
| | | | | | | | To use, add "Systemd" to the "drivers" option in the "client" section of bcfg2.conf on the client. Then, define services on the server like this: <Service name="rabbitmq-server" status="on" reload="restart" type="systemd"/>
* VCS: Initial commit (#754)Sol Jerome2011-04-131-0/+137
| | | | | | | | | Preliminary support for version control checkouts onto the client. This client tool is still fairly picky and has some known problems (incorrect git index file, for one). All the abstraction libraries left quite a bit to be desired. Also, none were packaged in popular distributions. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Tools: Skip Installation for mode='manual' services (#965)Sol Jerome2011-04-126-0/+30
| | | | | | | | | This allows for verification of specified services, but skips installation completely when mode is set to manual. This means that incorrect services will still show up in reports, but they won't be modified in an automated way. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Client: PY3K + PEP8 fixesSol Jerome2011-04-076-50/+88
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Catch apt-python initialization failures (#1001)Sol Jerome2011-04-061-1/+5
| | | | | | | This still needs to be fixed in apt-python, but we can at least give the user a smarter failure and disable the client tool properly here. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* add ability to ignore a debian ServiceJoe Digilio2011-03-252-0/+8
|
* Add error checking to make sure gpg-pubkeys have all needed informationJack Neely2011-03-171-0/+8
| | | | (cherry picked from commit 81fce09fb9671c652703c37a5f9b48d020a34307)
* Better handling of backup files in paranoid mode (Patch from mkd ticket #995)Sol Jerome2011-03-061-3/+4
| | | | | | | | | | | | | | | | | | | | 1. Client removes only one excess backup copy at every configfile change, even if there are more backup copies eligible for deletion. Moreover, lowering the max_copies parameter could cause client to never remove any excess files from there. 2. Space character in backup file names is mildly annoying - datetime.isoformat() will put a 'T' there instead. 3. More robust handling of 'paranoid' attribute values from info.xml (paranoid='True' should also be allowed - currently only paranoid='true' works as expected). A simple patch (attached) addresses all these issues. /mkd Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT/YUMng: Remove stray punctuationSol Jerome2011-03-012-2/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUMng: Fix handling of gpg-pubkey packages by yum 3.2.20 on SLESChris St. Pierre2011-02-241-1/+6
|
* Service: Allow services that are both supervised and custom (Ticket #979)Chris St. Pierre2011-02-241-4/+2
|
* POSIX: Implement recursive attribute for nonexistent PathsSol Jerome2011-02-211-6/+30
| | | | | | | | The POSIX client tool now has the ability to recursively remove the contents of a specified directory provided there are no other managed entries under the directory. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* SMF: Reports current service status when using the Solaris SMF driver. ↵Sol Jerome2011-02-141-0/+1
| | | | | | | | (Resolves #988) Patch made available in ticket report. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* client tools: Add verification failure suggestion (Resolves #724)Sol Jerome2011-01-222-0/+6
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'master' of https://github.com/jdigilio/bcfg2Sol Jerome2011-01-221-17/+24
|\
| * Support ability to pass parameters to Upstart servicesJoe Digilio2011-01-221-17/+24
| |
* | Chkconfig: track supervised services properly (Resolves Ticket #856)Narayan Desai2011-01-221-2/+2
|/
* APT: Enforce appearance of /usr/sbin and /sbin in PATH (Resolves Ticket #968)Narayan Desai2011-01-221-1/+5
|
* YUM24: New client tool from Jack Neely for older yum clients (Resolves ↵Sol Jerome2011-01-131-0/+421
| | | | | | Ticket #935) Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* DebInit: Account for future lenny updates (Resolves Ticket #977)Sol Jerome2011-01-121-5/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Enable debugging output from apt-getRichard Connon2011-01-111-8/+9
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUMng: Sync Joe Digilio's patch over from svnSol Jerome2010-11-021-0/+7
| | | | | | | | | | | | | | Jack Neely's commit message: Add a patch from Joe Digilio to include a verify_flags knob. I've added a line to also load this from the config file, and log in debug mode. Specifying 'verify_flags' with an Instance will override the values from the config file. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Pacman: Fix traceback for exception handlerSol Jerome2010-11-021-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Pacman: Use logging infrastructure for printing messagesSol Jerome2010-11-021-13/+9
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUMng: syntax errorTim Laszlo2010-11-021-1/+1
|
* POSIX: Remove client-side support for old POSIX typesSol Jerome2010-11-025-326/+331
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Client Tools: Pylint/PEP8 fixesSol Jerome2010-11-0215-78/+133
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* changed package type to 'pacman', if request package version is 'auto' and ↵Asaf2010-11-021-8/+13
| | | | its installed dont re-install
* Packages plugin / Client tools : add support for pacman based distros(arch, ↵asaf2010-11-021-0/+81
| | | | parabola), needs some more work
* Keep interpreter specifications consistentSol Jerome2010-11-021-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