summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
Commit message (Collapse)AuthorAgeFilesLines
* DBStats: Handle and warn when an unknown client is givenTim Laszlo2010-07-161-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5977 ce84e21b-d406-0410-9b95-82705330c041
* NagiosGen: Allow default configuration via PropertiesTim Laszlo2010-07-161-5/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5974 ce84e21b-d406-0410-9b95-82705330c041
* Initial version of a CVS pluginFabian Affolter2010-07-161-0/+47
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5972 ce84e21b-d406-0410-9b95-82705330c041
* Initial version of a CVS pluginFabian Affolter2010-07-162-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5971 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Allow authentication in urlsTim Laszlo2010-07-161-2/+25
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5970 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Improved handling of binary objects in the databaseTim Laszlo2010-07-081-2/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5962 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add RawURL support for APT sources (Patch from Remi Broemeling for ↵Sol Jerome2010-06-241-11/+16
| | | | | | | | Ticket #896) Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5958 ce84e21b-d406-0410-9b95-82705330c041
* ThreadedStatistics: load/save data on startup/shutdownTim Laszlo2010-06-161-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5941 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257 Fabian Affolter2010-06-0930-125/+140
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
* Darcs addedFabian Affolter2010-06-091-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5902 ce84e21b-d406-0410-9b95-82705330c041
* Switching Statistics.py to ThreadedStatisticsTim Laszlo2010-06-071-19/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5890 ce84e21b-d406-0410-9b95-82705330c041
* Added ThreadedStatistics plugin class. Migrated DBStats to use ↵Tim Laszlo2010-06-071-7/+7
| | | | | | ThreadedStatistics. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5889 ce84e21b-d406-0410-9b95-82705330c041
* Threaded Statistics.py and fixed xml corruptionTim Laszlo2010-06-041-5/+19
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5888 ce84e21b-d406-0410-9b95-82705330c041
* Added experimental tagFabian Affolter2010-06-032-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5882 ce84e21b-d406-0410-9b95-82705330c041
* Experimental Darcs plugin addedFabian Affolter2010-06-031-0/+48
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5881 ce84e21b-d406-0410-9b95-82705330c041
* Standardized doc strings of the VCS pluginsFabian Affolter2010-06-034-5/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5880 ce84e21b-d406-0410-9b95-82705330c041
* Comment addedFabian Affolter2010-06-013-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5872 ce84e21b-d406-0410-9b95-82705330c041
* Use logging instead of print statements in importscript.pyTim Laszlo2010-05-261-0/+1
| | | | | | | | Switch from print statements to the standard Logger.py functions. This allows load_stats in importscript.py to log error messages when daemonized. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5867 ce84e21b-d406-0410-9b95-82705330c041
* Hg: New Mercurial plugin from Fabian AffolterSol Jerome2010-05-222-0/+47
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5862 ce84e21b-d406-0410-9b95-82705330c041
* Core: Allow the specification of plugin conflicts (Fix for Ticket #875)Sol Jerome2010-04-241-0/+1
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Packages: fix handling of negative recommended directiveNarayan Desai2010-04-171-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5828 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix up config file readingNarayan Desai2010-04-171-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5827 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement support for recommended packages in APTSourcesNarayan Desai2010-04-171-6/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5826 ce84e21b-d406-0410-9b95-82705330c041
* Packages: handle BoundPackage entries for prereq processingNarayan Desai2010-04-081-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5810 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement blacklist functionalityNarayan Desai2010-04-081-6/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5809 ce84e21b-d406-0410-9b95-82705330c041
* SSHbase: Use shutil as per Lee's suggestion in Ticket #866Sol Jerome2010-03-251-2/+3
| | | | | | | | | | | | | | | | | | | | | From the ticket: --- From what I can tell, there is an os.system call (line #214 of Bcfg2/Server/Plugins/SSHbase.py) that is supposed to fire off ssh-keygen to generate the keys in a temporary directory. It seems that this call isn't generating the keys correctly. Adding in some debug os.listdir(tempdir) calls before and after the os.system call, shows that there are no files before and after the os.system call. Running the command manually generates valid key pairs. --- So, while this commit won't fix the os.system call, it should at least prevent the plugin from generating empty ssh keys. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5794 ce84e21b-d406-0410-9b95-82705330c041
* SSHbase: Generate known_hosts file in consistent order (Patch from Lee Loucks)Sol Jerome2010-03-251-31/+32
| | | | | | | | | | | | | | | | From Ticket #869: Because the order of a python set is dependent on the order of the hash of entries of that set, the get_skn method generates a entries in the ssh_known_hosts with the names ordered according to their has instead of a consistent (from the user point of view) order. Some entries are IP, hostname and other entries are hostname, IP. This patch corrects that. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5793 ce84e21b-d406-0410-9b95-82705330c041
* 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