summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* bcfg2: Ignore "-l" if configuring from a fileHolger Weiß2011-09-121-17/+17
| | | | | | | | | The "-f" option, which tells the client to configure from a file rather than querying the server, cannot be combined with the "-l" option (nor with the equivalent setting in the bcfg2.conf(5) file), as a decision list won't be available. Instead of crashing (with a KeyError: 'decision_list'), the client will now ignore the "-l" option if the "-f" option also is specified.
* 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-072-2/+4
| | | | | The client now makes sure that an entry won't be reported as modified if the Install() method which handled the entry returned False.
* Don't omit "important" entries from reportsHolger Weiß2011-09-041-0/+1
| | | | | Fix the problem that modified entries weren't included in the client statistics if their "important" attribute was set to "true".
* 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>
* fixed stupid typoChris St. Pierre2011-08-081-1/+1
|
* do not start/stop services with "-s disabled"Chris St. Pierre2011-08-081-3/+4
|
* Chkconfig: Use LANG=C to avoid locale conflicts (Resolves #1028 and #926)Sol Jerome2011-07-221-0/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* as per http://trac.mcs.anl.gov/projects/bcfg2/ticket/1026Josh Koenig2011-07-201-1/+1
| | | | piping stderr to /dev/null to prevent failure
* Remove useless parenthesesHolger Weiß2011-06-301-4/+4
|
* New Info attribute: "sensitive"Holger Weiß2011-06-291-5/+9
| | | | | | The contents/diffs of <Path>s which are marked as "sensitive" are now omitted from the reports transmitted to the server, so that they won't end up in the statistics database.
* YUMng: arch may not be specifiedJack Neely2011-06-221-1/+6
| | | | | If the arch is specified use it to select the package in VerifyPackage() otherwise just work with the default arch.
* YUMng: correct syntax in list compJack Neely2011-06-221-1/+1
|
* Packages are uniquely identified by both name and archJack Neely2011-06-221-2/+2
| | | | | | So a package is not "installed" if a package of the same name but different arch is. This will enable YUMng to handle multilib package installs.
* Frame: Fix 'important' interactive installation (#1015)Sol Jerome2011-06-211-9/+12
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Add recursive permissions (Ticket #871)Sol Jerome2011-06-181-2/+57
| | | | | | | This allows for a recursive='true' attribute such that the owner/group can be set recursively for a directory when using Path type='permissions'. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Client Tools: Add PY3K compatibilitySol Jerome2011-06-156-22/+49
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Addition Yum error handlingJack Neely2011-06-141-16/+34
| | | | | | Address ticket #955 and attempt to capture the exceptions that may possibly be generated from Yum or Yum's plugins and return some sort of error message.
* Make -q turn off package verification in YUMngJack Neely2011-06-141-0/+3
| | | | | | This make the YUMng verification behavior like the APT tool. Before hand we just turned off package checksums which only worked with very new versions of Yum.
* POSIX: Detect missing cache directory failuresSol Jerome2011-06-141-2/+9
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUMng: Fix typo in last commitSol Jerome2011-06-141-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUM: Make YUMng the preferred client tool on RPM systemsSol Jerome2011-06-142-3/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Frame: Fix 'important' entry installation in decision mode (Reported by m4z ↵Sol Jerome2011-06-141-36/+50
| | | | | | on irc) Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Create non-ASCII diffsHolger Weiß2011-06-142-10/+21
| | | | | | | | | | | The client now also transmits diffs of files which include non-US-ASCII data (using the encoding setting from Options.py), unless they look like binary files. In the past, non-ASCII files were transmitted as Base64 blobs. In addition, "bcfg2 -I" no longer refuses to display non-ASCII diffs. Resolves ticket #999.
* POSIX: Clarify normalization error (Reported by Tim Goodaire)Sol Jerome2011-06-141-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Add two filters for deprecated API accessesHolger Weiß2011-06-141-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-06-141-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
|