summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
Commit message (Collapse)AuthorAgeFilesLines
* bcfg2-admin init: fix traceback (reported by somekool on irc)Narayan Desai2009-07-131-2/+3
| | | | | | Apparently classmethods aren't callable from subclasses if overridden git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5322 ce84e21b-d406-0410-9b95-82705330c041
* Rework SSHbase alias/address supportNarayan Desai2009-07-112-54/+51
| | | | | | | | | | | | | | | | | | | Rework metadata so that each instance has addresses and aliases instance attributes containing manually specified addresses and alias names. Unify pub key resolution loop to process this data once per client. Change: only clients with active metadata will be included in ssh_known_hosts data now. Other keys can be stored in *.static, in final known_hosts file format. Also, a more exhaustive search for ip addresses is now performed. DNS resolution for the client hostname, as well as all aliases is performed. Manually specified addresses are added included as well. This should also fix some tracebacks reported by Cory and Teknix, as well as improve performance. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5319 ce84e21b-d406-0410-9b95-82705330c041
* Deps: fix tb due to change in metadata.groups type (Reported by teknix)Narayan Desai2009-07-101-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5318 ce84e21b-d406-0410-9b95-82705330c041
* Trigger: Add Trigger pluginNarayan Desai2009-07-092-1/+34
| | | | | | | | | Implement Trigger plugin. Can be used to call out when clients upload statistics packets. This plugin will call each executable within the Trigger spool directory, passing <hostname> -p <profile> -g <grouplist> The group list is delimited with colons. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5316 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Smarten up Yum dep resolverNarayan Desai2009-07-081-10/+13
| | | | | | | | Track all providers of required files; this allows us to use the common framework for multiple providers and gets rid of pathological behavior relating to packaging oddities (in particular, package kdebindings offering /usr/lib64/python2.4 on centos 5.2) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5315 ce84e21b-d406-0410-9b95-82705330c041
* Made fixes to Metadata, Client, and Init, and added methods for bcfg2-admin ↵James Yang2009-07-071-22/+124
| | | | | | group and bundle.x git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5312 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix YumSource file map pruningNarayan Desai2009-07-071-1/+1
| | | | | | Propertly keep all files that are referenced by any packages in the source. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5309 ce84e21b-d406-0410-9b95-82705330c041
* Changed how bcfg2-admin init handles plugins and added update_client to ↵James Yang2009-06-301-0/+30
| | | | | | metadata for changes in 5305 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5306 ce84e21b-d406-0410-9b95-82705330c041
* Metadata - Fix method referenceNarayan Desai2009-06-301-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5304 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix file architecture tagging for YumSources (patch from slack)Narayan Desai2009-06-291-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5303 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: implement get_clients/get_groups interfaceNarayan Desai2009-06-291-3/+8
| | | | | | Add method to get list of all group names, change all client interface to match. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5302 ce84e21b-d406-0410-9b95-82705330c041
* update to new Connector APIRick Bradshow2009-06-251-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5300 ce84e21b-d406-0410-9b95-82705330c041
* 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