summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages
Commit message (Collapse)AuthorAgeFilesLines
* Packages/Apt: Essential could be "no"Alexander Sulfrian2014-07-281-1/+2
| | | | | | The "Essential" field in the package control fields could be "yes" or "no". Only yes sould define the package as essential. The value "no" sould be handled same as not having the field at all.
* Enable bcfg2-yum-helper to depsolve for arches incompatible with serverJohn Morris2014-04-211-4/+25
| | | | | | | | | | | | | | | | By default, the yum dependency resolver uses the host's architecture to filter compatible packages. This prevents dependency resolution when the bcfg2 client's architecture is incompatible with the server's. This workaround checks the <Arch/> element for each of the client's yum sources, and if they are all identical, passes that architecture to bcfg2-yum-helper to override the default. The rpmUtils.arch module may only be configured for a single architecture. If multiple architectures are configured in yum sources, we don't know which one to pick, so use the default behavior instead.
* Fixed typoChris St. Pierre2014-02-211-1/+1
| | | | Note to self: do not push code before 9 am
* Yum: fix pylint testsChris St. Pierre2014-02-211-2/+2
|
* Yum: only fork to find bcfg2-yum-helper once, for realChris St. Pierre2014-02-211-2/+2
|
* testsuite: Fixed several pylint 1.0 issuesChris St. Pierre2014-02-212-3/+3
|
* Merge pull request #149 from danfoster/apt-essential-cacheChris St. Pierre2014-02-101-0/+1
|\ | | | | Essential package list cache is not cleared when Packages is refreshed
| * Reset essential package list to an empty set when Packages is refreshedDan Foster2013-12-291-0/+1
| |
* | fixed pylint testsChris St. Pierre2014-01-301-1/+2
| |
* | load correct JSON library on py2.4Chris St. Pierre2014-01-291-1/+2
| |
* | Packages: fixed metadata.Packages["sources"]Chris St. Pierre2013-10-091-1/+1
| |
* | Packages: always add collections to group/package cacheChris St. Pierre2013-08-091-4/+8
| | | | | | | | | | | | | | This fixes cases where the collection itself would not be cached because a host had no sources, or multiple sources of different types; we still want to cache package group results and package sets (both of which will be empty).
* | MultiprocessingCore: added a way to dispatch RMI calls to child processesChris St. Pierre2013-08-071-0/+3
| |
* | Plugin: added new Caching interfaceChris St. Pierre2013-08-071-0/+5
| | | | | | | | | | | | | | This gives a single unified interface for expiring caches, no matter the plugin. This will be particularly useful with the MultiprocessingCore, as certain calls must be dispatched to child processes to expire their caches.
* | Packages: cache group and package selectionsChris St. Pierre2013-08-071-5/+32
| |
* | Yum: better errors when yum helper output isn't valid JSONChris St. Pierre2013-08-051-3/+8
| |
* | Yum: suppress warning about class variable assignmentChris St. Pierre2013-08-011-0/+2
| |
* | Yum: Fixed class-scope variable assignmentsChris St. Pierre2013-08-011-4/+6
| |
* | Packages: reduce source_from_xml() calls on startupChris St. Pierre2013-07-311-6/+6
| |
* | Yum: record helper location in class variable so it's only detected onceChris St. Pierre2013-07-311-1/+2
| |
* | Packages: instantiate Executor before determining path to helperChris St. Pierre2013-07-221-5/+4
| |
* | Packages: Added timeout to bcfg2-yum-helper callsChris St. Pierre2013-07-221-34/+20
| | | | | | | | | | | | | | This involved making the Yum backend use Bcfg2.Utils.Executor to call bcfg2-yum-helper instead of subprocess.Popen directly. This was cherry-picked (kinda) from 3d06f311274d6b942ee89d8cdb13b2ecc99af1b0, so will likely break the maint -> master merge in spectacular ways.
* | Packages: added lock to yum cache updateChris St. Pierre2013-07-181-0/+13
| |
* | Packages: make opportunistic yum cache creation respect metadata=disabledChris St. Pierre2013-07-181-1/+22
| |
* | Yum: Removed unused importChris St. Pierre2013-07-181-2/+1
| |
* | Packages: fixed read-only yum cacheChris St. Pierre2013-07-181-29/+4
| | | | | | | | | | | | Replaced incredibly stupid (mea culpa!) and race-condition-prone system that toggled filesystem permissions (what was I thinking?!?) with judicious application of the yum cacheonly option.
* | Packages: better stringification/representation of OnDemandDictChris St. Pierre2013-07-181-1/+1
| |
* | Packages: use a separate yum persistdir per cacheChris St. Pierre2013-07-181-0/+1
| |
* | Packages: added missing docstringChris St. Pierre2013-07-151-0/+3
| |
* | Read-only yum cacheChris St. Pierre2013-07-153-27/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the yum cache read-only so that bcfg2-yum-helper cannot update the cache on the fly, which should help avoid locking issues with the yum caches that can cause client runs to fail. It also makes the Packages plugin behave more consistently, since use of yum libraries won't cause the cache to be refreshed at random times on the fly, but rather more predictably as with the Apt cache or the yum cache without using yum libraries. Unlike those two cases, though, the caches will not all be downloaded initially, but rather opportunistically as needed. In order for this to work, the Bcfg2 server must not run as root. Root ignores the 'w' permissions bit, so the cache cannot be made read-only.
* | Plugins/Packages: add missing format string parameterAlexander Sulfrian2013-06-281-1/+2
| |
* | Yum: fixed logging bcfg2-yum-helper error outputChris St. Pierre2013-06-191-1/+3
| |
* | Yum: fixed yum-helper logging for real this time, i totally swearChris St. Pierre2013-06-131-1/+1
| |
* | Yum: fixed verbose logging from bcfg2-yum-helperChris St. Pierre2013-06-131-1/+1
| |
* | Yum: handle and log helper errors betterChris St. Pierre2013-06-131-5/+16
| |
* | Packages: handle bcfg2-yum-helper failures more gracefullyChris St. Pierre2013-06-031-10/+22
|/
* Yum: prevent traceback with empty repositoryChris St. Pierre2013-05-211-2/+2
|
* Packages: don't cache package collections with no sourcesChris St. Pierre2013-05-211-2/+3
|
* Packages: handle URLErrors (e.g., timeouts) when downloading GPG keys betterChris St. Pierre2013-05-101-2/+2
|
* APT: Allow specification of deb-src lines (Resolves #1148)Sol Jerome2013-05-102-0/+9
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Packages: Fix Apt dependency resolution for py3kSol Jerome2013-04-121-0/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Packages: Read cache files using binary formatSol Jerome2013-04-111-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Packages: Write Packages cache in binary formatSol Jerome2013-04-111-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* remove some unnecessary __all__ variablesChris St. Pierre2013-03-291-1/+2
|
* Change generated APT sources default to someplace APT will actually look, ↵Phil Miller2013-03-281-1/+1
| | | | and avoid potential name conflicts there
* testsuite: fixed more unit test stuffChris St. Pierre2013-03-261-0/+1
|
* testsuite: fixed issues found by latest version of pylintChris St. Pierre2013-03-263-5/+5
|
* testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-264-18/+18
|
* Handle FAM monitor failures more gracefully:Chris St. Pierre2013-03-251-8/+3
| | | | | | | | | * Where possible, create the file or directory that is about to be monitored. This ensures that content can be added later without need to restart Bcfg2. (Otherwise, adding the monitor would fail, and so when you did create the file in question, bcfg2-server would never be notified of it.) * When not possible, give better error messages.
* Packages: add and expose get_config() function to get configs for other hostsChris St. Pierre2013-03-252-2/+11
|