summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
Commit message (Collapse)AuthorAgeFilesLines
* Viz: Include xincluded files from groups.xml (Resolves Ticket #867)Sol Jerome2010-03-251-0/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5790 ce84e21b-d406-0410-9b95-82705330c041
* Automatically add additional host aliases to ssh_known_hosts.root2010-03-131-1/+34
|
* Packages: Add 'fedora' os group to the list of basegroupsSol Jerome2010-03-091-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5759 ce84e21b-d406-0410-9b95-82705330c041
* Ohai: Handle case where client returns nothingSol Jerome2010-03-061-0/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5752 ce84e21b-d406-0410-9b95-82705330c041
* Ohai: Add support for pre-2.6 versions of pythonSol Jerome2010-03-041-2/+19
| | | | | | | | | The Ohai plugin now works with servers using python 2.4-2.5 alongside the python-simplejson python module. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5748 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix minor thinko in error path [bugfix]Narayan Desai2010-02-151-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5726 ce84e21b-d406-0410-9b95-82705330c041
* Packages: get rid of spurious whitespace in choice pkg namesNarayan Desai2010-02-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5725 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix dep issue on apt sources [bugfix]Narayan Desai2010-02-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5724 ce84e21b-d406-0410-9b95-82705330c041
* Packages: add pre-depends requirements for apt package sources (Resolves ↵Narayan Desai2010-02-141-1/+1
| | | | | | Ticket #832) [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5723 ce84e21b-d406-0410-9b95-82705330c041
* Packages: [bugfix]Narayan Desai2010-02-141-37/+24
| | | | | | | - fix cache file name creation - process dependencies for packages that have the same name as a multi-choice dependency (Resolves Ticket #847) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5722 ce84e21b-d406-0410-9b95-82705330c041
* Properties: Remove experimental tagSol Jerome2010-02-101-1/+0
| | | | | | | | | The Properties plugin has been working flawlessly for me for some time now. I would say it's pretty solid. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5718 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Use custom bcfg2.conf when specified (Fix for #839)Sol Jerome2010-02-081-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5716 ce84e21b-d406-0410-9b95-82705330c041
* Git: pylint code cleanupsSol Jerome2010-02-071-2/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5715 ce84e21b-d406-0410-9b95-82705330c041
* POSIXCompat: Clean up FIXMESol Jerome2010-02-071-10/+9
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5714 ce84e21b-d406-0410-9b95-82705330c041
* Fix traceback in bcfg2-admin init by using os.makedirs()Sol Jerome2010-02-052-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5713 ce84e21b-d406-0410-9b95-82705330c041
* Fix call to os.rename()Sol Jerome2010-01-241-3/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5702 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: Write out proper file when clients.xml is a symlinkSol Jerome2010-01-231-1/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5701 ce84e21b-d406-0410-9b95-82705330c041
* Packages: process apt-source choices correctly with multi-package version ↵Narayan Desai2010-01-201-4/+4
| | | | | | requirements (Reported by gregcoit) [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5687 ce84e21b-d406-0410-9b95-82705330c041
* Packages: handle architecture changes in Yum configs [bugfix]Narayan Desai2010-01-151-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5684 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: build session cache properly for uuid clients [bugfix]Narayan Desai2010-01-121-2/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5671 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: use normalized hostnames for comparison (reported by gregcoit) ↵Narayan Desai2010-01-081-1/+1
| | | | | | [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5662 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: handle errors more robustly, and perform clients.xml wranging in ↵Narayan Desai2009-12-231-8/+24
| | | | | | new file git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5632 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Revert changes from [5582] so that old client compatibility is ↵Sol Jerome2009-12-101-4/+15
| | | | | | | | | | | | maintained Older clients (used via POSIXCompat) still have old-style posix entries. This commits allows for old or new client statistics to be uploaded to the snapshots database. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5619 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix use of session cache for cert-recognized clientsNarayan Desai2009-12-091-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5615 ce84e21b-d406-0410-9b95-82705330c041
* Git: Migrate git plugin to DulwichSol Jerome2009-12-021-12/+5
| | | | | | | | | | Using Dulwich gives us a native python implementation of the git file formats and protocols. This gives us more flexibility when we want to extend the plugin to perform other tasks (e.g. automated commits). Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5608 ce84e21b-d406-0410-9b95-82705330c041
* Fix accidental revert in [5604]Sol Jerome2009-12-021-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5606 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Metadata: cache session information for all clients that aren't ↵Sol Jerome2009-12-021-3/+2
| | | | | | | | | | | address resolved" This reverts commit [5592]. This broke Metadata resolution by causing tracebacks which resulted in communication failure. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5605 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Metadata: fix address validation issue with hard-wired addresses"Sol Jerome2009-12-021-1/+1
| | | | | | | | | This reverts commit [5592]. This broke Metadata resolution by causing tracebacks which resulted in communication failure. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5604 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: cache session information for all clients that aren't address resolvedNarayan Desai2009-11-231-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5592 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix address validation issue with hard-wired addressesNarayan Desai2009-11-211-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5588 ce84e21b-d406-0410-9b95-82705330c041
* Packages; use new debugging infrastructureNarayan Desai2009-11-211-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5587 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: implement full debugging for client metadata authenticationNarayan Desai2009-11-211-21/+29
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5586 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Remove support for old-style posix entriesSol Jerome2009-11-193-41/+46
| | | | | | | | | | | This commit forces the user to specify <Path> entries on the server side while still maintaining compatibility with old clients via the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5582 ce84e21b-d406-0410-9b95-82705330c041
* Packages: create urls that work with old urllib2 (Resolves ticket #796) [bugfix]Narayan Desai2009-11-111-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5572 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Add server name to reports (Patch from Tim Laszlo)Sol Jerome2009-11-091-5/+11
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5562 ce84e21b-d406-0410-9b95-82705330c041
* Packages: only log explicit packages that are unsatisfiedNarayan Desai2009-11-051-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5544 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Use faster method to detect changes in the working tree. Also, look for ↵David Strauss2009-11-051-1/+1
| | | | | | unknown items. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5541 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Finally use the bzrlib API for real. This is much cleaner, and it ↵David Strauss2009-11-051-21/+11
| | | | | | should end any interprocess communication issues. Because it's easy, also append a plus sign if there are local changes to the working tree. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5540 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Fix hang on second and susequent calls.David Strauss2009-11-051-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5539 ce84e21b-d406-0410-9b95-82705330c041
* Use proper logging for snapshot storage time.David Strauss2009-11-051-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5538 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Strip newline from end of revision number.David Strauss2009-11-051-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5537 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Add missing datafields for Directory and SymLink to match listed ↵David Strauss2009-11-051-2/+3
| | | | | | ftypes. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5536 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Fix data eating / Core: revert copy changeNarayan Desai2009-11-051-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5530 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix lxml api use to work with older versionsNarayan Desai2009-11-051-3/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5525 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: Fix diff deltas (Patch from Thomas Schoenl)Narayan Desai2009-10-291-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5510 ce84e21b-d406-0410-9b95-82705330c041
* TGenshi/TCheetah: Set type to 'file' for Path entriesSol Jerome2009-10-272-0/+4
| | | | | | | | | Similar to r5475, we need to set the entry type of templated ConfigFiles so that they are mapped properly by the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5509 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: force pretty-printing of clients file (Resolves Ticket #644)Narayan Desai2009-10-241-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5500 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: refuse to add dynamic group membership in explicitly private ↵Narayan Desai2009-10-241-1/+8
| | | | | | groups (Resolves Ticket #529) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5496 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Defer handling of virtual requirements provided by multipleNarayan Desai2009-10-221-2/+17
| | | | | | packages until last possible time (now with 100% less wtf ;) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5491 ce84e21b-d406-0410-9b95-82705330c041
* Packages: simplify package resolution logic (should resolve outstanding ↵Narayan Desai2009-10-211-95/+105
| | | | | | issues with prereq resolution) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5490 ce84e21b-d406-0410-9b95-82705330c041