summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Client: PY3K + PEP8 fixesSol Jerome2011-04-076-50/+88
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-admin: PY3K + PEP8 fixesSol Jerome2011-04-0614-180/+296
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Hostbase: PY3K + PEP8 fixesSol Jerome2011-04-061-35/+44
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins: PY3K + PEP8 fixesSol Jerome2011-04-0617-201/+328
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Fix deprecated 'raise' usageSol Jerome2011-04-062-7/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: PY3K + PEP8 fixesSol Jerome2011-04-0611-224/+345
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* tools: Fixes from a second 2to3 runSol Jerome2011-04-063-5/+14
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* tools: PY3K + PEP8 fixesSol Jerome2011-04-0613-364/+549
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Catch apt-python initialization failures (#1001)Sol Jerome2011-04-061-1/+5
| | | | | | | This still needs to be fixed in apt-python, but we can at least give the user a smarter failure and disable the client tool properly here. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* sensible defaults for the Django module admin email addressesChris St. Pierre2011-04-052-2/+2
|
* fix permissions on top-level doc dir in -doc subpackageChris St. Pierre2011-04-052-2/+2
|
* Proxy: Fix for Python 2.7 xmlrpclib Transport class (Patch from Gordon Messmer)Sol Jerome2011-04-031-6/+12
| | | | | | | | Something changed in Python 2.7 with respect to the xmlrpclib.Transport api such that you need to store the authentication headers in self.extra_headers so that they are sent to the server properly. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Fixed previous commit. Decorators are hard, let's go shopping.Chris St. Pierre2011-03-301-2/+2
|
* Use self.log.info() instead of 'print' to produce stats forChris St. Pierre2011-03-301-6/+10
| | | | 'bcfg2-admin reports purge' to make purge honor -q flag.
* doc: Typo fix from euthSol Jerome2011-03-281-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* redhat: Fix URL/Source in spec filesSol Jerome2011-03-252-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'master' of github.com:jdigilio/bcfg2Joe Digilio2011-03-250-0/+0
|\
| * Merge remote branch 'origin'Joe Digilio2011-03-250-0/+0
| |\
| | * add ability to ignore a ServiceJoe Digilio2011-03-242-0/+8
| | |
| * | add ability to ignore a ServiceJoe Digilio2011-03-252-0/+8
| |/
* / add ability to ignore a debian ServiceJoe Digilio2011-03-253-28/+45
|/
* Updates to TCheetah documentationJoe Digilio2011-03-241-0/+10
| | | | (cherry picked from commit c62b029371dbf5e8b5250876d0c5198ab7acc2a8)
* Add error checking to make sure gpg-pubkeys have all needed informationJack Neely2011-03-171-0/+8
| | | | (cherry picked from commit 81fce09fb9671c652703c37a5f9b48d020a34307)
* doc: Add note about template extension locationsSol Jerome2011-03-172-8/+22
| | | | | | | | The code for supporting genshi templates alongside group and host-specific files requires the user to append the extension to the end (differently than how it is done in the TGenshi plugin). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* debian: Remove fam dependenciesSol Jerome2011-03-171-1/+1
| | | | | | | | | This change is only for the debian packages as fam support is going to be dropped in newer versions. See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613042 Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Convert hostbase/reports files to unix file formatsSol Jerome2011-03-174-768/+768
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* man: Convert bcfg2-reports man page to a unix file formatSol Jerome2011-03-171-82/+81
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* man: Add man page for bcfg2-ping-sweep (#997)Sol Jerome2011-03-172-10/+31
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-reports: Fail gracefully when missing statisticsSol Jerome2011-03-171-1/+7
| | | | | | | | | This fix is to address the traceback at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608613. We need to inform the user about the [statistics] section in bcfg2.conf so that they can go and find the necessary information needed to set up reports. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* In TGenshi templates, the "name" variable is set to the destination path of ↵Chris St. Pierre2011-03-161-4/+5
| | | | the file. If an altsrc attribute was used, then "name" is set to the altsrc value; otherwise, it is set to the "name" attribute of the original <Path> tag used to declare the file. In the new Genshi handler functionality of Cfg, this had not been ported over; "name" was always the original name of the file, even if altsrc was specified. Fixed that bug.
* Cfg: Fix unicode traceback (Resolves #993)Sol Jerome2011-03-072-7/+33
| | | | | | | | If the Cfg plugin handled a file containing a character which isn't contained in the encoding specified, it resulted in a traceback. This now fails gracefully and suggests use of an alternate encoding. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Better handling of backup files in paranoid mode (Patch from mkd ticket #995)Sol Jerome2011-03-061-3/+4
| | | | | | | | | | | | | | | | | | | | 1. Client removes only one excess backup copy at every configfile change, even if there are more backup copies eligible for deletion. Moreover, lowering the max_copies parameter could cause client to never remove any excess files from there. 2. Space character in backup file names is mildly annoying - datetime.isoformat() will put a 'T' there instead. 3. More robust handling of 'paranoid' attribute values from info.xml (paranoid='True' should also be allowed - currently only paranoid='true' works as expected). A simple patch (attached) addresses all these issues. /mkd Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* fixed handling of group- and host-specific .genshi templates in Cfg ↵Chris St. Pierre2011-03-041-1/+1
| | | | (non-greedy matching)
* doc: Fix broken link to NagiosGenSol Jerome2011-03-021-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* doc: Document <Client> info capabilities (reported by mkd on irc)Sol Jerome2011-03-011-4/+8
| | | | | | | It is possible to use <Client> tags in info.xml files (in addition to <Group> tags). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT/YUMng: Remove stray punctuationSol Jerome2011-03-012-2/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-reports: Fix usage helpSol Jerome2011-03-011-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* doc: Fix broken referencesSol Jerome2011-02-269-14/+14
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Bundler: Add support for genshi .xml bundlesSol Jerome2011-02-262-9/+29
| | | | | | | This commit modifies the Bundler plugin to allow for genshi templates with .xml file extensions via the xml namespace (Resolves ticket #861). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUMng: Fix handling of gpg-pubkey packages by yum 3.2.20 on SLESChris St. Pierre2011-02-241-1/+6
|
* Service: Allow services that are both supervised and custom (Ticket #979)Chris St. Pierre2011-02-242-14/+5
|
* Cfg: Create info.xml files by default with bcfg2-admin pullSol Jerome2011-02-211-17/+9
| | | | | | | Using info.xml files allows the user to validate permissions with the info schema. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Implement recursive attribute for nonexistent PathsSol Jerome2011-02-214-16/+43
| | | | | | | | The POSIX client tool now has the ability to recursively remove the contents of a specified directory provided there are no other managed entries under the directory. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Disable template loading from Python eggsSol Jerome2011-02-211-1/+0
| | | | | | | | | | | | This does not appear to work with the default settings for some distributions. Here is what happens on Ubuntu: [error] /usr/lib/pymodules/python2.6/django/template/loader.py:64: UserWarning: Your TEMPLATE_LOADERS setting includes 'django.template.loaders.eggs.load_template_source', but your Python installation doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS. This appears to be disabled in django by default as per http://docs.djangoproject.com/en/dev/ref/templates/api/#loading-templates. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* doc: Remove unnecessary shell invocation (Reported by Jonathan Billings)Sol Jerome2011-02-171-2/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* SMF: Reports current service status when using the Solaris SMF driver. ↵Sol Jerome2011-02-141-0/+1
| | | | | | | | (Resolves #988) Patch made available in ticket report. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* DBStats: use clients_xml classTim Laszlo2011-02-101-1/+1
|
* Metadata: Move group routines to new classTim Laszlo2011-02-101-6/+6
|
* Missing newline in helpTim Laszlo2011-02-102-56/+29
|
* Metadata: Move client routines to new classTim Laszlo2011-02-101-36/+18
|