summaryrefslogtreecommitdiffstats
path: root/src/sbin
Commit message (Collapse)AuthorAgeFilesLines
* fixed pylint/pep-8 testsChris St. Pierre2014-04-253-5/+3
|
* Default to only (En|De)crypt vars that need itChris Brinker2014-04-251-2/+1
| | | | | | | | | | | | | | For both Encrypting and Decrypting of Properties files, we should by default only attempt to execute on elements that have an "encrypted" attribute defined. The code will already attempt to encrypt every element if nothing in the current document matches this xpath, which catches the case of a user trying to fully encrypt a completely new properties file. Conflicts: src/lib/Bcfg2/Server/Encryption.py
* Enable bcfg2-yum-helper to depsolve for arches incompatible with serverJohn Morris2014-04-211-0/+9
| | | | | | | | | | | | | | | | 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.
* ensure that DB connections are always closed at thread/process exitChris St. Pierre2014-02-181-0/+3
|
* fixed more pylint testsChris St. Pierre2014-01-301-1/+2
|
* load correct JSON library on py2.4Chris St. Pierre2014-01-291-1/+2
|
* bcfg2-crypt: actually skip an element when we say we areChris St. Pierre2013-12-311-0/+1
|
* bcfg2-crypt: handle error when encrypting properties with multiple keysChris St. Pierre2013-11-251-4/+8
|
* bcfg2-crypt: Fixed variable name collisionChris St. Pierre2013-11-121-3/+3
|
* bcfg2-crypt: backported fixes in b5b26415161e715fe4d22d69328b06801ff7124dChris St. Pierre2013-11-121-22/+25
|
* bcfg2-crypt: fixed missing EVPErrorChris St. Pierre2013-11-111-2/+1
|
* bcfg2-crypt: better debugging, error handling with Properties filesChris St. Pierre2013-11-111-3/+37
|
* bcfg2-crypt: fixed completely backwards logicChris St. Pierre2013-11-111-1/+1
|
* bcfg2-crypt: fixed deprecation warningChris St. Pierre2013-11-051-1/+1
|
* Merge pull request #110 from AlexanderS/reporting-model-updatesChris St. Pierre2013-11-051-5/+5
|\ | | | | bcfg2-reports: update to use current models
| * bcfg2-reports: update to use current modelsAlexander Sulfrian2013-06-291-5/+5
| |
* | Plugin: added new Caching interfaceChris St. Pierre2013-08-071-2/+3
| | | | | | | | | | | | | | 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.
* | bcfg2-yum-helper: disable pylint checkChris St. Pierre2013-08-061-1/+2
| |
* | bcfg2-yum-helper: fully download group metadata during makecacheChris St. Pierre2013-08-061-0/+1
| |
* | bcfg2-crypt: prevent traceback for certain decrypt failuresChris St. Pierre2013-08-051-1/+2
| |
* | bcfg2-yum-helper: populate group cache during makecacheChris St. Pierre2013-07-311-0/+4
| | | | | | | | Fixes #128
* | bcfg2-yum-helper: Fix another python3 syntax errorSol Jerome2013-07-271-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | bcfg2-yum-helper: Fix python3 syntax errorSol Jerome2013-07-271-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | bcfg2-yum-helper: added missing docstringChris St. Pierre2013-07-181-0/+2
| |
* | Packages: added lock to yum cache updateChris St. Pierre2013-07-181-0/+32
| |
* | bcfg2-info: fixed expirecacheChris St. Pierre2013-07-181-2/+2
| |
* | bcfg2-info: added expirecache command to expire metadata cacheChris St. Pierre2013-07-181-0/+10
| |
* | bcfg2-info: fixed automatchChris St. Pierre2013-07-181-1/+1
| |
* | Packages: fixed read-only yum cacheChris St. Pierre2013-07-181-5/+26
| | | | | | | | | | | | 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.
* | Read-only yum cacheChris St. Pierre2013-07-151-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Core: apply FAM blocking option to all commands that start a serverChris St. Pierre2013-07-093-3/+3
| |
* | fixed pylintChris St. Pierre2013-07-031-1/+1
| |
* | bcfg2-test: fixed return valueChris St. Pierre2013-07-031-3/+6
| |
* | Rewrote bcfg2-crypt.Chris St. Pierre2013-07-021-303/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds several features and generally makes it work a lot more smoothly by not trying to overoptimize and share too much code. You can now brute-force decrypt a Cfg file (i.e., without specifying a passphrase, it will try all of them). You can also now write a Properties file with `encrypted="passphrase_name"` attributes in place, and then encrypt (and decrypt) it in one fell swoop. Various other minor improvements.
* | bcfg2-info: added command timeout optionChris St. Pierre2013-07-011-1/+2
|/
* bcfg2-test: Move signal handlerSol Jerome2013-06-261-1/+1
| | | | | | | Code was refactored such that this signal handler got put in the wrong place during the revert. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-test: Fix merge thinkoSol Jerome2013-06-261-5/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Revert "Core: properly handle Ctrl-C"Sol Jerome2013-06-261-0/+17
| | | | | | | | | | | | | | This reverts commit 4568c44372c99ba809826e016680da9b881bd8e8. Trying to handle ^c in the core is difficult and can break STDOUT for interactive programs that invoke the core. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Server/Core.py src/sbin/bcfg2-test tools/bcfg2-profile-templates.py
* bcfg2-info: Remove nonexistent optionSol Jerome2013-06-211-1/+0
| | | | | | This option was removed in f157617a5c. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-yum-helper: fixed unit testsChris St. Pierre2013-06-141-5/+8
|
* Yum: handle and log helper errors betterChris St. Pierre2013-06-131-19/+45
|
* fixed unit testsChris St. Pierre2013-06-031-1/+2
|
* bcfg2-admin: set appropriate return values on errorChris St. Pierre2013-06-031-2/+2
|
* Revert "bcfg2-admin: set appropriate return values on error"Chris St. Pierre2013-06-031-2/+2
| | | | | | This reverts commit dae8f399151052fd2a0ce43ac61a56f399a28252. Splitting this into two commits.
* bcfg2-admin: set appropriate return values on errorChris St. Pierre2013-06-031-2/+2
|
* bcfg2-lint: log run time for each lint pluginChris St. Pierre2013-06-031-1/+5
|
* bcfg2-info: Handle IOErrorsSol Jerome2013-06-021-4/+8
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* really fixed pylint issues with cbcfg2-serverChris St. Pierre2013-05-231-4/+3
|
* fixed pylint testChris St. Pierre2013-05-231-1/+2
|
* added multiprocessing server coreChris St. Pierre2013-05-201-10/+21
|