summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Cfg.py
Commit message (Collapse)AuthorAgeFilesLines
* Cfg: Add support for .cheetah filesJoe Digilio2011-10-121-1/+30
|
* Cfg: Use two-digit group prioritiesSol Jerome2011-10-111-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg : doesn't add a LineFeed after patching of filesKioob2011-09-021-3/+1
|
* Cfg : do not strip() end of lines before applying .diff filesKioob2011-09-011-2/+1
|
* Cfg: Fix traceback in bcfg2-admin pullSol Jerome2011-08-271-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg: Fix traceback caused by previous commitSol Jerome2011-08-221-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg: Log error when base file missing (reported by Ana Guerrero)Sol Jerome2011-08-211-5/+8
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* fixed more unescaped shell commandsChris St. Pierre2011-08-051-8/+8
|
* Cfg: Add support for perms='inherit' (Ticket #642)Sol Jerome2011-06-201-0/+7
| | | | | | | | | | | This feature allows you to use the on-disk permissions of the file in the Cfg repository rather than specifying them using the traditional means in info.xml. Note that this only works for the octal permissions of the file on disk since the owner/group may not exist on the destination machine. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* PY3K: Add compatibility commentsSol Jerome2011-06-151-0/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* PY3K: Finish server-side code fixesSol Jerome2011-06-141-2/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Accept non-ASCII diffsHolger Weiß2011-06-141-1/+6
| | | | | | | Currently, client reports don't include diffs of files which aren't US-ASCII encoded. The client transmits such files as Base64 blobs. As we'd like to change that, this commit teaches the server to properly handle non-ASCII diffs.
* Cfg: Fix traceback for non-ascii filesSol Jerome2011-06-141-0/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg: Fix bcfg2-admin pull behavior for genshi templates (#1010)Sol Jerome2011-06-141-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg: Fix PluginExecutionErrorTim Laszlo2011-06-141-1/+1
| | | | Replaces PluginExecutionError with Bcfg2.Server.Plugin.PluginExecutionError. Reported by emias.
* Cfg: Fix the output encoding of Genshi templatesHolger Weiß2011-06-141-2/+3
| | | | | | Encode the configuration files generated from Genshi templates according to the encoding setting from Options.py instead of unconditionally using UTF-8.
* Plugins: Add full PY3K compatibilitySol Jerome2011-04-261-3/+13
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins: PY3K + PEP8 fixesSol Jerome2011-04-061-5/+3
| | | | 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-071-7/+25
| | | | | | | | 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>
* fixed handling of group- and host-specific .genshi templates in Cfg ↵Chris St. Pierre2011-03-041-1/+1
| | | | (non-greedy matching)
* 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>
* Cfg: Handle empty genshi templates (Ticket #948)Tim Laszlo2011-01-231-0/+2
|
* Cfg: Add support for .genshi filesTim Laszlo2011-01-221-7/+48
|
* Cfg: Allow pull operations to update info.xml filesTim Laszlo2010-07-301-9/+18
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5984 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257 Fabian Affolter2010-06-091-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 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
* Fix incorrect mappings and change configfile type to fileSol Jerome2009-10-161-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5484 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-2/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: Set type to 'configfile' for Path entriesSol Jerome2009-10-061-2/+4
| | | | | | | | | | When binding Path entries using Cfg, we need to set the entry type to 'configfile' so that the POSIXCompat plugin can properly map it to an old-style entry. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5475 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: delta file regex bugfixNarayan Desai2009-03-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5119 ce84e21b-d406-0410-9b95-82705330c041
* Fix newlinks at the end of .cat filesNarayan Desai2009-03-021-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5091 ce84e21b-d406-0410-9b95-82705330c041
* Use safer alternatives to mktemp (Patch from adeason)Sol Jerome2009-01-291-2/+6
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5049 ce84e21b-d406-0410-9b95-82705330c041
* Remove old properties implementation and hardwiringNarayan Desai2009-01-211-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5036 ce84e21b-d406-0410-9b95-82705330c041
* Split pull functionality into PullSource/PullTarget and rebase Cfg and ↵Narayan Desai2009-01-111-1/+1
| | | | | | SSHbase on PullTarget git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5011 ce84e21b-d406-0410-9b95-82705330c041
* Finish up PullSource plugin workNarayan Desai2009-01-101-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5010 ce84e21b-d406-0410-9b95-82705330c041
* This patch is stage 1 of the plugin capabilities reworkNarayan Desai2009-01-051-1/+1
| | | | | | | | - define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
* check if content updates are neededNarayan Desai2008-10-311-4/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4959 ce84e21b-d406-0410-9b95-82705330c041
* Fix file name generation in Cfg support for bcfg-admin pullNarayan Desai2008-10-311-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4957 ce84e21b-d406-0410-9b95-82705330c041
* Fix interspersed newlines in deltas with .cat filesNarayan Desai2008-10-301-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4956 ce84e21b-d406-0410-9b95-82705330c041
* Fix bcfg2-admin for new host-specific entriesNarayan Desai2008-10-281-4/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4955 ce84e21b-d406-0410-9b95-82705330c041
* Get rid of errant newlines (Resolves #599 for real this time)Narayan Desai2008-09-291-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4925 ce84e21b-d406-0410-9b95-82705330c041
* Fix deltas (Resolves Ticket #599)Narayan Desai2008-09-261-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4922 ce84e21b-d406-0410-9b95-82705330c041
* Fix :info file creation in bcfg2-admin pullNarayan Desai2008-08-071-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4867 ce84e21b-d406-0410-9b95-82705330c041
* Unicode support (from stousignant) (Resolves Ticket #549)Narayan Desai2008-06-301-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4731 ce84e21b-d406-0410-9b95-82705330c041
* Fix error message in non-matching caseNarayan Desai2008-06-091-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4685 ce84e21b-d406-0410-9b95-82705330c041
* Move base data caching es class to Plugin.pyNarayan Desai2008-04-081-14/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4488 ce84e21b-d406-0410-9b95-82705330c041
* Fix 0-length file handlingNarayan Desai2008-03-241-9/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4447 ce84e21b-d406-0410-9b95-82705330c041
* Rework bcfg2-admin pullNarayan Desai2008-03-241-76/+68
| | | | | | | | | - forward port Cfg and SSHbase support - reimplement admin mode - add verbose flag, and implement initial interactive mode, also force mode git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4446 ce84e21b-d406-0410-9b95-82705330c041
* Reimplement Cfg using EntrySetNarayan Desai2008-03-211-375/+89
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4435 ce84e21b-d406-0410-9b95-82705330c041