summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
Commit message (Collapse)AuthorAgeFilesLines
* Client/Tools/POSIX: only execute needed directory installsdebian/1.2.3-15Alexander Sulfrian2013-06-071-4/+12
| | | | | Remember the purge actions per Path entry, so that only needed install actions are executed.
* Client/Tools/POSIX: fix prune actionsdebian/1.2.3-14Alexander Sulfrian2013-06-071-0/+2
| | | | | | | | The prune actions was not run. The fix that does not add multiple prune actions on multiple Verify runs in 7077358b1 does not set the pruneTrue flag during the later Verify runs and therefor the prune actions are ignored. This set the pruneTrue flag if the first Verify run, detected some entries that should be pruned.
* Client/Tools/POSIX: fix indentationAlexander Sulfrian2013-06-071-1/+1
|
* Client/Tools/POSIX: catch multiple VerifyDirectory callsdebian/1.2.3-11Alexander Sulfrian2013-05-021-1/+3
| | | | | | If a directory should be pruned from all unknown files VerifyDirectory created a new entry each call and the second fails because the file was already removed.
* Client/Tools/APT: save new package version for auto pkgsAlexander Sulfrian2013-05-021-3/+5
| | | | | | For auto/any packages, currently only auto/any is stored in the statistics as the new installed version. This patch changes this behavior, so that the exact version string is saved additionaly.
* Client: allow pre-Actions and important-Paths to enable installsAlexander Sulfrian2013-03-061-0/+5
| | | | | | | This is used to first update the apt repositories and than install all current versions in one bcfg2-run. Also the installation of software from custom repositories (that are configured on the client via bcfg2) should be possible on the first run.
* mark dependencies as automatic installedAlexander Sulfrian2013-01-301-0/+23
|
* YUMng: Fix DBStats hooks for centos5Tim Laszlo2012-06-191-3/+3
| | | | | On centos5 the hooks raise a TypeError. Replacing the keys with attributes.
* Adding DBStats hooks into YUMngJohn 'Skip' Reddy2012-06-191-0/+7
| | | | | YUMng did not have any hooks to save data via the DBStats plugin, so no statistics have been saved.
* use provided logger throughout POSIX driver, to make bcfg2-info builddir quieterChris St. Pierre2012-05-221-19/+29
|
* Fixed launchd to correctly parse label from plist, and added a warning when ↵Luke Cyca2012-04-161-3/+4
| | | | it can't be parsed.
* MacPorts now respects version="any" and logs version mismatches like other ↵Luke Cyca2012-04-161-1/+8
| | | | plugins.
* Fixed MacPorts pkgtool tuple and cleaned up logger outputLuke Cyca2012-04-131-2/+2
|
* launchd: Remove popen2 callsSol Jerome2012-03-271-18/+32
| | | | 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
|
* disable yum debug entirely by defaultChris St. Pierre2012-01-171-1/+1
|
* fixed setting yum debuglevelChris St. Pierre2012-01-131-0/+1
|
* abstracted two separate YumBase instantiations into _loadYumBase()Chris St. Pierre2012-01-121-37/+48
|
* Reload all Yum configuration before any install operation.Jack Neely2012-01-111-0/+10
| | | | | | | | | | This fixes a condition where it would take two Bcfg2 runs to properly deploy new packages. Prior, if new specification deployed a new Yum .repo file and new packages from that new repo, Bcfg2 would not be able to install the new packages until the second run. This change causes Yum to reload all of its configuration and incorperate any new .repo files before attempting to install packages. (cherry picked from commit 059d37b2c385a848764c631d0d735a51908de0cf)
* fixed setting debuglevel on SLES 11 yumChris St. Pierre2012-01-091-1/+1
|
* Revert "Correct syntax for try/except statements."Raul Cuza2011-12-101-1/+1
| | | | | | | | This commit is not compatable with Python 2.4 and below. Our goal is to support for the foreseeable future 2.4+ for Bcfg2 server and 2.3+ for Bcfg2 client. This reverts commit 4310284f6df01caf1b686c9bac8955364a895755.
* Correct syntax for try/except statements.Raul Cuza2011-12-091-1/+1
| | | | | | In earlier versions of python commas (,) could be used in except statements. The new way is to use 'as'.
* Remove problematic tabs from file.Raul Cuza2011-12-091-1/+1
| | | | * Ticket 1080
* make yum debug level adjustments work with older yumChris St. Pierre2011-12-021-4/+10
|
* improved error/debugging messages from YUMngChris St. Pierre2011-11-291-4/+9
|
* Use new python-apt API and fall back to the old API when new API isn't availableJeroen Dekkers2011-11-231-23/+52
|
* Chkconfig: Minor PEP8 fixSol Jerome2011-11-101-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Portage: Turn off pipe detection in equerySol Jerome2011-11-061-2/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Portage: Add globbing to produce old gentoolkit behaviorSol Jerome2011-11-041-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Show prompt when only the permissions of a file have changed, and notJoe Digilio2011-11-041-0/+6
| | | | the contents.
* VCS: Fix traceback when destination directory existsSol Jerome2011-11-041-0/+13
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* properly initialize content so that non-existant files don't get readChris St. Pierre2011-10-311-0/+1
|
* initialize longtime correctlyChris St. Pierre2011-10-281-1/+1
|
* Made Verifyfile() much more efficient and resilient:Chris St. Pierre2011-10-281-99/+148
| | | | | | | | | | * Use file size to do an initial comparison to see if the file on disk differs from the data in the config; * Only do diffs if necessary: unified diff if -I is used, ndiff if a file is not sensitive or binary; * Both diffs have timeouts; * Fixed edge case where null-content binary files would produce stack traces, not errors.
* APK: Pylint/PEP8 fixesSol Jerome2011-10-111-8/+12
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'apk' of https://github.com/fabaff/bcfg2Sol Jerome2011-10-113-4/+62
|\
| * Initial support for the APK management in Alpine Linux. Fabian Affolter2011-10-111-0/+58
| | | | | | | | | | This is highly experimental. All credits goes to Cameron Banta.
| * Minor changesFabian Affolter2011-10-112-4/+4
| |
* | * Added support for yum libraries (if available and configured). ThisChris St. Pierre2011-10-071-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | can dramatically reduce memory usage, and fixed several bugs: * #1014 (Package plugin can't resolve dependencies for rpms with Require: tags for full paths that aren't Provided explicitly) * #991 (Dependency Resolution difference between Package and yum) * #996 (Packages high memory usage) * Added support for Yum package groups when using yum libraries (#1039) * Fixed #911 (bcfg2 output for wrong package version with Packages is misleading) * YUMng turns down the Yum debug level itself depending on the debug/verbosity level requested by bcfg2 so you don't have to reduce the Yum debug level on a global basis * Added support for Pulp repositories, including registering Pulp consumers and binding to repositories * Added ability to disable magic OS groups
* | APT: Add filter for deprecated API accessHolger Weiß2011-09-181-0/+1
| | | | | | | | This access is triggered by running "bcfg2 -r Packages".
* | POSIX: Honor the user's umaskHolger Weiß2011-09-141-7/+7
| | | | | | | | | | | | | | | | The umask was set to zero in order to address the issue that mknod(2)'s mode argument is modified by the process's umask. However, this umask setting also affected auto-created parent directories of configuration entries: their permissions were set to `drwxrwxrwx'. So, we now call chmod(2) after mknod(2) instead of setting the umask to zero.
* | DebInit: Always initialize "start_sequence"Holger Weiß2011-09-121-0/+1
| | | | | | | | | | | | Make sure the "start_sequence" variable is initialized. This fixes a traceback which occurred when a <Service> "sequence" has been specified on Debian systems which use dependency-based booting.
* | DebInit: Check for .legacy-bootordering fileHolger Weiß2011-09-121-1/+2
| | | | | | | | | | | | If the file /etc/init.d/.legacy-bootordering exists, dependency-based booting isn't used, even when running on Debian releases newer than lenny.
* | 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.
* POSIX: Unset umask (Resolves #1031)Sol Jerome2011-08-261-0/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Add type='ignore' support (patch from tie on IRC)Sol Jerome2011-08-171-2/+11
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Action: Fix decision mode installation (resolves #1029)mkd2011-08-161-5/+21
| | | | | | | This fix is more complete than 8059a36 and also fixes issues relating to the use of wildcards in Decisions. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Action: Fix whitelist mode (Resolves #1029)Sol Jerome2011-08-101-1/+5
| | | | | | Don't run 'post' Action entries if they are unlisted in whitelist mode. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>