summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* working version of the updated Solaris packaging files. Rick Bradshow2009-07-184-120/+129
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5368 ce84e21b-d406-0410-9b95-82705330c041
* Merged bcfg2-admin init fixes in from my branch.Kamil Kisiel2009-07-182-159/+204
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5362 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: implement more showclient command that displays connector dataNarayan Desai2009-07-181-28/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5359 ce84e21b-d406-0410-9b95-82705330c041
* Ohai: Implement Ohai pluginNarayan Desai2009-07-182-1/+59
| | | | | | | The Ohai plugin runs the Ohai system profiler through the probes interface, stores the information on the server, and makes it available for metadata operations. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5348 ce84e21b-d406-0410-9b95-82705330c041
* Paranoid mode: Make paranoid mode more versatile/configurableSol Jerome2009-07-182-1/+40
| | | | | | | | | | | | | | | | | This commit adds a new [paranoid] section in bcfg2.conf. This allows you to specify a backup path other than the default as well as set a maximum number of copies to keep around. You are now allowed multiple backup copies, which are marked with a timestamp. This should help to prevent accidental deletion when running in paranoid mode multiple times. The paranoid section currently looks something like this: [paranoid] path = /my/custom/backup/path max_copies = 5 Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5345 ce84e21b-d406-0410-9b95-82705330c041
* Fix FileBacked class to catch created files againNarayan Desai2009-07-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5342 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: change profiling options to be more usefulNarayan Desai2009-07-161-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5341 ce84e21b-d406-0410-9b95-82705330c041
* Bundler-genshi: import genshi for error pathNarayan Desai2009-07-161-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5340 ce84e21b-d406-0410-9b95-82705330c041
* TCheetah: handle imports in a way that pylint likesNarayan Desai2009-07-161-8/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5339 ce84e21b-d406-0410-9b95-82705330c041
* Packages: pylint fixesNarayan Desai2009-07-161-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5338 ce84e21b-d406-0410-9b95-82705330c041
* GroupPatterns: short-circuit range matchingNarayan Desai2009-07-161-2/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5337 ce84e21b-d406-0410-9b95-82705330c041
* GroupPatterns: support activation of multiple groups from a single patternNarayan Desai2009-07-162-18/+26
| | | | | | | Add support for the addition of multiple new group memberships based on a single pattern (of either type). Alsa add support in the schema. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5336 ce84e21b-d406-0410-9b95-82705330c041
* FileCaching: only process file updates on exists and changed events (should ↵Narayan Desai2009-07-161-1/+3
| | | | | | cut down on unneeded and expensive startup ops) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5335 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: reduce size of startup event windowNarayan Desai2009-07-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5334 ce84e21b-d406-0410-9b95-82705330c041
* Fix initial event quiescingNarayan Desai2009-07-161-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5333 ce84e21b-d406-0410-9b95-82705330c041
* SSHbase: fix skn caching (Fixes startup behavior (-40s on my repo))Narayan Desai2009-07-161-2/+2
| | | | | | | | Our cache check actually triggered skn build early, causing extremely poor startup performance in general. (and extremely bad performance on repositories with large quantities of keys) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5332 ce84e21b-d406-0410-9b95-82705330c041
* POSIX.py: Fix false error in InstallSymLinkSol Jerome2009-07-161-13/+14
| | | | | | | | | | We were falsely assuming that the path to the symlink existed when installing a new one. However, if a symlink has not yet been created, this path could simply not yet exist. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5331 ce84e21b-d406-0410-9b95-82705330c041
* GroupPatterns: implement NodeRange (node[[001-096,099]]) supportNarayan Desai2009-07-152-5/+48
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5330 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Reverse sorting order for sources, allowing sources to work ↵Narayan Desai2009-07-151-0/+2
| | | | | | similarly to apt-get config. (Resolves Ticket #691) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5329 ce84e21b-d406-0410-9b95-82705330c041
* rpm/deb packaging: Remove remaining Cheetah dependenciesSol Jerome2009-07-155-3/+12
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5328 ce84e21b-d406-0410-9b95-82705330c041
* GroupPatterns plugin: initial implementationNarayan Desai2009-07-154-2/+99
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5327 ce84e21b-d406-0410-9b95-82705330c041
* SSHbase: add an error message for non-resolving clientsNarayan Desai2009-07-141-0/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5326 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix query.all_groups to catch implicit groups in groups.xmlNarayan Desai2009-07-141-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5325 ce84e21b-d406-0410-9b95-82705330c041
* TCheetah: Remove RPM python-cheetah requirementSol Jerome2009-07-132-3/+11
| | | | | | | | | | Cheetah is not considered a requirement on the server. A check has been added to see if it is installed when trying to instantiate the TCheetah plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5324 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin: Fix typoSol Jerome2009-07-131-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5323 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin init: fix traceback (reported by somekool on irc)Narayan Desai2009-07-132-11/+17
| | | | | | 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
* Improve error handling when key improperly specified on server (Reported by ↵Narayan Desai2009-07-131-3/+3
| | | | | | nicely) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5321 ce84e21b-d406-0410-9b95-82705330c041
* redhat/bcfg2.spec.in: Add unpackaged files to redhat spec file (Reported by ↵Sol Jerome2009-07-131-0/+2
| | | | | | | | | | | somekool) SSLServer/Statistics were missing from the spec file causing rpmbuild to fail with errors. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5320 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
* bcfg2-info: fix showclient traceback (Reported by teknix on irc)Narayan Desai2009-07-101-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5317 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
* Init.py: Fix typo in intializeRepoSol Jerome2009-07-071-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5314 ce84e21b-d406-0410-9b95-82705330c041
* Added Bundle and Group for bcfg2-admin.James Yang2009-07-072-0/+99
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5313 ce84e21b-d406-0410-9b95-82705330c041
* Made fixes to Metadata, Client, and Init, and added methods for bcfg2-admin ↵James Yang2009-07-073-23/+132
| | | | | | group and bundle.x git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5312 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin viz: Implement support for arbitrary output typesNarayan Desai2009-07-071-14/+12
| | | | | | bcfg2-admin viz now takes the output filename into consideration when choosing the output file type. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5310 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
* Plugin.py: Add configurable metadata settings to bcfg2.conf (ticket #680)Sol Jerome2009-07-013-7/+58
| | | | | | | | | | The default settings for ConfigFile metadata were previously hardcoded in Plugin.py. This change enables setting global user-specified defaults in the [mdata] section of bcfg2.conf. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5308 ce84e21b-d406-0410-9b95-82705330c041
* Options.py: Remove unused variableSol Jerome2009-07-011-1/+0
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5307 ce84e21b-d406-0410-9b95-82705330c041
* Changed how bcfg2-admin init handles plugins and added update_client to ↵James Yang2009-06-303-15/+86
| | | | | | metadata for changes in 5305 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5306 ce84e21b-d406-0410-9b95-82705330c041
* Added additional list and update options to bcfg2-admin clientJames Yang2009-06-301-4/+25
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5305 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
* APT/Client: Suppress known warningsSol Jerome2009-06-262-1/+15
| | | | | | | | | APT: Suppress APT api warning Client/Tools/__init__.py: Suppress popen2 deprecation warning Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5301 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
* Version bump to 1.0pre4Narayan Desai2009-06-254-5/+11
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5298 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Implement protocol selection in bcfg2.confNarayan Desai2009-06-244-8/+27
| | | | | | | Add explicit knob to select encryption for client/server connections. The default value is xmlrpc/ssl, but xmlrpc/tlsv1 is also supported (needed to use DOE grid certs) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5297 ce84e21b-d406-0410-9b95-82705330c041
* Fix Fam supportNarayan Desai2009-06-242-49/+134
| | | | | | | There is some weird issue in Fam where fam stops giving events. The previous code did not tickle this condition but the new refactored code did, so we're going back to the old code for the moment. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5296 ce84e21b-d406-0410-9b95-82705330c041