summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Metadata: Add xml source classTim Laszlo2011-02-101-138/+160
|
* Update links to point to bcfg2.orgSol Jerome2011-02-073-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Probes: Patch to sort nested items from faceted.wordpress.com (Resolves #987)Sol Jerome2011-02-051-2/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* doc: Add documentation for Packages blacklist featureSol Jerome2011-02-031-0/+14
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* export.py: Update solaris package versionsSol Jerome2011-02-013-2/+10
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* solaris: Fix build errorSol Jerome2011-02-012-4/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Remove chown line all together.Raul Cuza2011-01-311-1/+0
| | | | | It is no longer needed because the bug in packagemaker that required it appears to be fixed in 3.0.4.
* Modify how MINOR variable is created so that it is always an integer.Raul Cuza2011-01-311-1/+2
| | | | | | Info.plist requires that IFMinorVersion be an integer. The new hack assumes that the first character in the third section of the setup.py version variable is always an integer.
* Accept upstream version of setup.py.Raul Cuza2011-01-311-7/+5
|\
| * Put lxml.etree import in a try block.Raul Cuza2011-01-311-2/+5
| | | | | | | | | | | | | | At this point bcfg2 does not have a hard dependency on lxml. Putting this import in a try block means setup.py will work for people without lxml. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Merge remote branch 'upstream/master'Raul Cuza2011-01-312-4/+8
|\|
| * Merge branch 'master' of https://github.com/rcuza/bcfg2Sol Jerome2011-01-311-6/+5
| |\
| * | SSHbase: Fix hang when file not present on clientSol Jerome2011-01-312-4/+8
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | Put lxml.etree import in a try block.Raul Cuza2011-01-311-1/+6
| |/ |/| | | | | | | At this point bcfg2 does not have a hard dependency on lxml. Putting this import in a try block means setup.py will work for people without lxml.
* | Remove command to change owner of files to root:admin.Raul Cuza2011-01-311-1/+1
| | | | | | | | The payload in the package sets these permissions correctly.
* | Change condition test for python version to work on Mac OS X 10.6.6 with ↵Raul Cuza2011-01-311-5/+4
|/ | | | | | | | | | Xcode 3.2.5. The test using /bin/expr and && was not working for me. When I changed it to this format, I was able to get M2Crypto-0.20.2-py2.5-macosx-10.5-ppc.egg inserted into the package when python was 2.5 or less. I used two if statements because I had trouble comparing floating point numbers with bash's if.
* Properties: Catch exception when missing Properties directorySol Jerome2011-01-281-1/+6
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Metadata: Handle writes to XInclude files in bootstrap modeTim Laszlo2011-01-281-3/+19
|
* Metadata: Handle writes to XInclude files within clients.xml (Resolves #841)Tim Laszlo2011-01-281-12/+28
|
* DTD patch for misc/bcfg2.specChris St. Pierre2011-01-271-0/+35
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* schemas: Build DTD docs, provide -doc subpackage in RPM (Resolves #984)Chris St. Pierre2011-01-273-23/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the ticket: I've attached a patch that does two things: 1. Uses xs3p (http://xml.fiforms.org/xs3p/), an XSLT stylesheet, to do transforms on the Bcfg2 DTD and automatically generates documentation on the DTD. I added a build_dtddoc command to setup.py that performs the transforms using lxml.etree and puts the resulting HTML in build/dtd. I also added some documentation to bundle.xsd; it's not much, but should demonstrate the ease with which the DTD can be documented with this system in use. 2. I added both build_sphinx and build_dtddoc commands to the RPM specfile, and added a -doc subpackage to put the resulting HTML in. The specfile builds successfully on CentOS 5 and Fedora 13. There are a couple of known issues: 1. The output from xs3p uses pop-ups to present documentation on non-global components, which, due to the way the Bcfg2 DTD is written, is most of them. This is ugly. It could be improved by modifying the XSLT, but I'm not a web designer and wasn't sure the best way to present that information. Either way, this is a start. 2. The python-sphinx10 package in EPEL 5 apparently has a bug where it fails to add itself to sys.path after installing. There's some ugliness in the spec file to get around that. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* doc: Remove references to documentation already in sphinxSol Jerome2011-01-272-11/+14
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* doc: Fix writing specificationSol Jerome2011-01-272-37/+64
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* doc: Clarify the goals of the quickstartSol Jerome2011-01-272-2/+18
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2.spec: Spec file fix from Jonathan BillingsSol Jerome2011-01-271-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'master' of https://github.com/gdhagger/bcfg2Sol Jerome2011-01-261-2/+27
|\