summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Yum: Add back disableMetaData methodSol Jerome2013-07-271-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation string for this method led me to believe that we could remove it. However, after looking closely, it appears as though disableMetaData is still undefined for Collection objects in __init__.py. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | | Merge branch 'maint'Sol Jerome2013-07-271-10/+25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: doc/appendix/guides/ubuntu.txt src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/settings.py
| * | | 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
| | | |
* | | | Yum: Add back self.cmdSol Jerome2013-07-181-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | | Merge branch 'maint'Sol Jerome2013-07-183-25/+98
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Properties.py
| * | | 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.
* | | | Merge branch 'maint'Sol Jerome2013-07-081-1/+2
|\| | | | |/ / |/| | | | | | | | | | | Conflicts: src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt
| * | Plugins/Packages: add missing format string parameterAlexander Sulfrian2013-06-281-1/+2
| | |
* | | Merge branch 'maint'Chris St. Pierre2013-06-271-15/+38
|\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/tcheetah.txt src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
| * | 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
| |/
* | Merge branch 'maint'Sol Jerome2013-06-021-2/+2
|\| | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: doc/installation/distributions.txt doc/server/snapshots/index.txt src/lib/Bcfg2/Server/Plugin/helpers.py src/sbin/bcfg2-server
| * 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
| |
* | Merge branch 'maint'Chris St. Pierre2013-05-211-2/+3
|\ \
| * | Packages: don't cache package collections with no sourcesChris St. Pierre2013-05-211-2/+3
| |/
* | fixed unit testsChris St. Pierre2013-05-201-1/+1
| |
* | Replaced XMLSrc with StructFileChris St. Pierre2013-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | XMLSrc and StructFile were very different implementations of basically the same thing. StructFile has gotten lots and lots of improvements, while XMLSrc, with its wonky, unintuitive interface, has floundered. This replaces XMLSrc with StructFile (nearly) everywhere, and rebases everything that inherited from XMLSrc with StructFile. XMLSrc lives on somewhat in the Pkgmgr plugin's PNode and PkgSrc objects, where originally inherited from the XMLSrc and INode objects but are now the only implementation of that older interface. Pkgmgr was left as-is because a) it's a little-used plugin; b) it's in need of a rewrite anyway; and c) it has deep, deep hooks into the guts of XMLSrc and INode, and rewriting it with StructFile was deeply nontrivial.
* | Merge branch 'maint'Chris St. Pierre2013-05-173-2/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/centos.txt doc/server/plugins/grouping/metadata.txt setup.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/SSHbase.py src/sbin/bcfg2-lint
| * 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>
* | Fixing unit testsChris St. Pierre2013-04-251-0/+1
| |
* | Merge branch 'maint'Chris St. Pierre2013-04-245-37/+45
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Perf.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/Fam.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Base.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Cvs.py src/lib/Bcfg2/Server/Plugins/Darcs.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/FileProbes.py src/lib/Bcfg2/Server/Plugins/Fossil.py src/lib/Bcfg2/Server/Plugins/Git.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/Server/Plugins/__init__.py src/lib/Bcfg2/Server/__init__.py src/sbin/bcfg2-build-reports src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * 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
| |
| * Revert "Packages: expose full source list via Connector interface"Chris St. Pierre2013-03-251-3/+1
| | | | | | | | This reverts commit fe7a3e9c7a7d66cccbd825465cefcf88165a0c3a.
| * Revert "Packages: properly implemented deepcopy() for PackagesSources objects"Chris St. Pierre2013-03-253-26/+4
| | | | | | | | This reverts commit 432f448983ff27452d82d62314d91c942f31bce5.
| * Packages: properly implemented deepcopy() for PackagesSources objectsChris St. Pierre2013-03-253-4/+26
| |
* | Merge branch '1.4.x'Chris St. Pierre2013-04-237-186/+87
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/bcfg2-server.install doc/server/plugins/grouping/metadata.txt src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Tools/Portage.py src/lib/Bcfg2/Client/Tools/RcUpdate.py src/lib/Bcfg2/Client/Tools/YUM24.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Client/Tools/launchd.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/models.py src/lib/Bcfg2/Utils.py src/sbin/bcfg2-info src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * use Executor class for better subprocess calling on serverChris St. Pierre2013-03-141-31/+18
| |
| * Merge branch 'master' into 1.4.xChris St. Pierre2013-02-202-43/+52
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/contributors.txt schemas/bundle.xsd src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/Encryption.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/TemplateHelper.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py tools/bcfg2-profile-templates.py