summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
Commit message (Collapse)AuthorAgeFilesLines
* SSHBase: Make SSHBase aware of aliasesSol Jerome2009-06-232-4/+34
| | | | | | | | | | | SSHBase is now aware of aliases listed in the clients.xml file. ClientMetadata now includes `addresses` which are a mapping from an alias to an (ip, name) tuple. The ip addresses can be specified either in clients.xml as an address attribute to the Alias or in DNS. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5295 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix handling of architectures for RawURL YumSourcesNarayan Desai2009-06-231-17/+23
| | | | | | Add dictionary tracking YumSource architecture mappings for cache files git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5292 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: Fix traceback from imd updatesSol Jerome2009-06-201-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5289 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin: Migrate query to new Metadata query interfaceSol Jerome2009-06-201-10/+0
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5288 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: improve resolution performanceNarayan Desai2009-06-191-2/+0
| | | | | | | | | | | Remove vestiages of the old .all interface; previously we needed to use copy.deepcopy to ensure that ClientMetadata consumers could not modify data structures from templates, etc. This also has the nice side effect of speeding up metadata resolution by a factor of 50 (0.5s -> 0.01s) in my repository. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5287 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: Implement query interfaceNarayan Desai2009-06-191-37/+38
| | | | | | | | | | | | | | Clean up all of the ad-hoc interface to global metadata, replacing it with a consistent interface. ClientMetadata instances now have a query attribute which has the following methods: - by_name -- resolve client metadata by primary name - by_groups -- resolve client metadata for clients belonging to multiple groups - by_profiles -- resolve client metadata for clients with given profiles - names_by_groups -- return names of clients belonging to multiple groups - names_by_profiles -- return names of clients using given profiles - all_names -- return names of all clients git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5286 ce84e21b-d406-0410-9b95-82705330c041
* Packages: add parse-caching support for YumSourcesNarayan Desai2009-06-191-3/+4
| | | | | | | This commit caches the result of startup parsing, reducing startup time for YumSources. bcfg2-info startup time on my repo was reduced by 60%. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5285 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Improve YumSource performance dramaticallyNarayan Desai2009-06-181-6/+13
| | | | | | | Track needed file paths so that the contents of all packages do not need to be tracked. This reduces memory consumption ~60% on my test repository (360MB -> 60MB for bcfg2-info). woo! git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5283 ce84e21b-d406-0410-9b95-82705330c041
* Implement zultron's inter-client metadata stuffNarayan Desai2009-06-181-3/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5282 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement caching for APTNarayan Desai2009-06-141-26/+60
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5275 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement repomd support for yum sourcesNarayan Desai2009-06-141-16/+45
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5274 ce84e21b-d406-0410-9b95-82705330c041
* Fix Yum URL sourcesNarayan Desai2009-06-111-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5273 ce84e21b-d406-0410-9b95-82705330c041
* Improve bundler error handling for .genshi filesNarayan Desai2009-06-111-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5272 ce84e21b-d406-0410-9b95-82705330c041
* Implement RawURL supportNarayan Desai2009-06-111-7/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5271 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix cases where arch group mappings are unexpectedNarayan Desai2009-05-291-3/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5265 ce84e21b-d406-0410-9b95-82705330c041
* Send messages to loggerSol Jerome2009-05-291-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5263 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix traceback with missing config.xml (Reported by Jack Neely)Sol Jerome2009-05-291-1/+6
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5262 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Make cache directory creation recursiveSol Jerome2009-05-291-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5261 ce84e21b-d406-0410-9b95-82705330c041
* Fix fd leak caused by our use of the subprocess APINarayan Desai2009-05-221-5/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5251 ce84e21b-d406-0410-9b95-82705330c041
* Packages: improve terseness of resolver debug messagesNarayan Desai2009-05-201-5/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5249 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement dependency resolver debugging (and fix some bugs shown ↵Narayan Desai2009-05-201-7/+18
| | | | | | by it) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5248 ce84e21b-d406-0410-9b95-82705330c041
* Log auth changes for bootstrap modeNarayan Desai2009-05-201-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5247 ce84e21b-d406-0410-9b95-82705330c041
* Implement cert bootstrap mode for SSL authNarayan Desai2009-05-201-2/+13
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5246 ce84e21b-d406-0410-9b95-82705330c041
* Fix Pkgmgr virtual package target binding (Reported by TimL)Narayan Desai2009-05-201-0/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5245 ce84e21b-d406-0410-9b95-82705330c041
* Implement reporting for deprecated plugins, improve reporting for ↵Narayan Desai2009-05-071-0/+1
| | | | | | experimental plugins git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5207 ce84e21b-d406-0410-9b95-82705330c041
* Implement support for .genshi bundles in BundlerNarayan Desai2009-05-073-9/+48
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5206 ce84e21b-d406-0410-9b95-82705330c041
* fixed external reverse zone buildingKen Raffenetti2009-05-061-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5201 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Implement certificate verificationNarayan Desai2009-05-061-2/+30
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5193 ce84e21b-d406-0410-9b95-82705330c041
* Get basic auth working again with new ssl frameworkNarayan Desai2009-05-061-2/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5189 ce84e21b-d406-0410-9b95-82705330c041
* SGenshi: improve error handlingNarayan Desai2009-04-241-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5176 ce84e21b-d406-0410-9b95-82705330c041
* Packages: improve error handing (Patch from Tim Laszlo)Narayan Desai2009-04-231-4/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5175 ce84e21b-d406-0410-9b95-82705330c041
* Packages patch from Tim LaszloNarayan Desai2009-04-231-6/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5171 ce84e21b-d406-0410-9b95-82705330c041
* Remove hacks for sets in python 2.3Sol Jerome2009-04-231-10/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5169 ce84e21b-d406-0410-9b95-82705330c041
* Remove unused imports for pylintSol Jerome2009-04-173-6/+8
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5168 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: fix Statistics data location in importerNarayan Desai2009-04-151-5/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5166 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix ptype error handlingNarayan Desai2009-04-151-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5165 ce84e21b-d406-0410-9b95-82705330c041
* More spelling fixesSol Jerome2009-04-081-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5157 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix default group assertionNarayan Desai2009-04-061-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5154 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement proper support for provides targets with multiple providersNarayan Desai2009-04-061-3/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5153 ce84e21b-d406-0410-9b95-82705330c041
* Fix multi-arch yum sourcesNarayan Desai2009-04-061-2/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5152 ce84e21b-d406-0410-9b95-82705330c041
* fix typoNarayan Desai2009-04-021-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5150 ce84e21b-d406-0410-9b95-82705330c041
* Remove hardcoded group names from plugin body, instead, auto-activate based ↵Narayan Desai2009-04-021-1/+3
| | | | | | on active sources git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5149 ce84e21b-d406-0410-9b95-82705330c041
* updated BB plugin to match new API for return types, and also fixed a small ↵Rick Bradshow2009-04-011-4/+3
| | | | | | bug with FQDN. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5147 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Fix extra entry data importNarayan Desai2009-03-211-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5135 ce84e21b-d406-0410-9b95-82705330c041
* Add revision and correct fields to snapshot class; should simplify most queriesNarayan Desai2009-03-211-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5133 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement full yum dep resolver and improve error handlingNarayan Desai2009-03-191-78/+217
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5127 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: delta file regex bugfixNarayan Desai2009-03-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5119 ce84e21b-d406-0410-9b95-82705330c041
* Update for properties switchNarayan Desai2009-03-101-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5117 ce84e21b-d406-0410-9b95-82705330c041
* Raise exception when cached files do not existSol Jerome2009-03-091-0/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5116 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Finish off importer (for old-style statistics)Narayan Desai2009-03-061-25/+58
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5108 ce84e21b-d406-0410-9b95-82705330c041