summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Metadata.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* 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
* 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
* SSHBase: Make SSHBase aware of aliasesSol Jerome2009-06-231-3/+18
| | | | | | | | | | | 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
* 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
* 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
* 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
* 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
* Remove unused imports for pylintSol Jerome2009-04-171-1/+5
| | | | | | | 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
* 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
* revert last patchNarayan Desai2009-02-021-4/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5060 ce84e21b-d406-0410-9b95-82705330c041
* Add client aliases to metadata instancesNarayan Desai2009-02-021-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5059 ce84e21b-d406-0410-9b95-82705330c041
* Split out connector interface to allow for additional data generation based ↵Narayan Desai2009-02-021-2/+4
| | | | | | on complete group list git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5055 ce84e21b-d406-0410-9b95-82705330c041
* Finish up Connector API (connector data is now available from ↵Narayan Desai2009-01-101-2/+4
| | | | | | metadata.Probes instead or metadata.probes) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5009 ce84e21b-d406-0410-9b95-82705330c041
* Rework bcfg2-info/showclient to use new metadata interfaceNarayan Desai2009-01-101-4/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5006 ce84e21b-d406-0410-9b95-82705330c041
* This patch is stage 1 of the plugin capabilities reworkNarayan Desai2009-01-051-4/+4
| | | | | | | | - define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
* Implement metadata connector functionalityNarayan Desai2008-12-241-138/+22
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5000 ce84e21b-d406-0410-9b95-82705330c041
* Update dictionary accesses to work with Python 3.0Sol Jerome2008-12-221-17/+17
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4999 ce84e21b-d406-0410-9b95-82705330c041
* Fix search_client for bcfg2-admin client modeSol Jerome2008-10-101-4/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4942 ce84e21b-d406-0410-9b95-82705330c041
* bcfg -> bcfg2Sol Jerome2008-09-261-6/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4921 ce84e21b-d406-0410-9b95-82705330c041
* ClientMetadata add accessor methods for overall metadata (will make life ↵Narayan Desai2008-09-211-0/+20
| | | | | | easier for NagiosGen and never_CC) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4916 ce84e21b-d406-0410-9b95-82705330c041
* Add proper overall metadata informationNarayan Desai2008-09-191-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4915 ce84e21b-d406-0410-9b95-82705330c041
* Log category-based group membership suppression (Resolves Ticket #595)Narayan Desai2008-08-271-3/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4896 ce84e21b-d406-0410-9b95-82705330c041
* Fix traceback in get_probes (Resolves Ticket #597)Narayan Desai2008-08-271-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4895 ce84e21b-d406-0410-9b95-82705330c041
* Switch probes to use plugin name for result routing (Resolves Ticket #594)Narayan Desai2008-08-151-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4879 ce84e21b-d406-0410-9b95-82705330c041
* support for alternate metadata plugins in viz admin modeAndrew Brestick2008-08-011-0/+64
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4846 ce84e21b-d406-0410-9b95-82705330c041
* added support for alternate metadata plugins in bcfg2-adminAndrew Brestick2008-07-311-1/+64
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4845 ce84e21b-d406-0410-9b95-82705330c041
* add pretty printing to new metadata entriesNarayan Desai2008-07-281-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4828 ce84e21b-d406-0410-9b95-82705330c041
* Fix clients when secure='false' (Resolves Ticket #580)Narayan Desai2008-07-261-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4826 ce84e21b-d406-0410-9b95-82705330c041
* loosen up Probe name regex (allow for numbers in probe name)Sol Jerome2008-07-251-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4825 ce84e21b-d406-0410-9b95-82705330c041
* various fixes to bb pluginAndrew Brestick2008-07-161-6/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4799 ce84e21b-d406-0410-9b95-82705330c041
* added support for alternate metadata plugin (BB plugin)Andrew Brestick2008-07-151-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4792 ce84e21b-d406-0410-9b95-82705330c041
* Fix set_profile after xinclude fix (Fixes issue reported by SolJ)Narayan Desai2008-07-081-3/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4759 ce84e21b-d406-0410-9b95-82705330c041
* Fix encoding use for ProbeSetNarayan Desai2008-07-021-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4747 ce84e21b-d406-0410-9b95-82705330c041
* Unicode support (from stousignant) (Resolves Ticket #549)Narayan Desai2008-06-301-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4731 ce84e21b-d406-0410-9b95-82705330c041
* Fixup combination of XINclude and Alias fixesNarayan Desai2008-06-271-7/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4727 ce84e21b-d406-0410-9b95-82705330c041
* fix alias issues in metadata plugin and in bcfg2-admin client modeAndrew Brestick2008-06-261-1/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4721 ce84e21b-d406-0410-9b95-82705330c041
* Fix client assertion with XIncludes are in use (Resolves Ticket #568)Narayan Desai2008-06-241-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4712 ce84e21b-d406-0410-9b95-82705330c041
* Resolves clients.xml overwrite issue in #567, fixes configuration issues ↵Andrew Brestick2008-06-231-1/+4
| | | | | | with certain bcfg2-admin modes git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4706 ce84e21b-d406-0410-9b95-82705330c041
* Probe data loaded whenever Metadata plugin is usedAndrew Brestick2008-06-201-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4702 ce84e21b-d406-0410-9b95-82705330c041
* Resolves ticket #541 and fixes client adding/deletingAndrew Brestick2008-06-191-3/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4701 ce84e21b-d406-0410-9b95-82705330c041
* Change to typed plugin systemNarayan Desai2008-06-091-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4680 ce84e21b-d406-0410-9b95-82705330c041
* Reflect null probe responses in client metadataNarayan Desai2008-06-031-0/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4655 ce84e21b-d406-0410-9b95-82705330c041
* fix typos, #560Robert Gogolok2008-05-231-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4631 ce84e21b-d406-0410-9b95-82705330c041