summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/TemplateHelper.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #299 from AlexanderS/fix/cachingChris St. Pierre2015-10-051-2/+10
|\ | | | | Expire metadata cache in all Connector plugins.
| * TemplateHelper: Expire metadata cache on FileMonitor eventAlexander Sulfrian2015-07-271-2/+10
| |
* | Utils: Generalize safe_module_nameAlexander Sulfrian2015-07-241-10/+4
|/ | | | | Other plugins that also import user generated python source code, may want to use safe_module_name from TemplateHelper.
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-181-0/+4
| | | | | | | | | | This removes most blanket except: clauses from all plugins, including the base plugin libraries, and bcfg2-lint. The few that remain should all be necessary. Most of the changes were quite minor, but this did require some restructuring of the CfgPrivateKeyCreator; as a result, the tests for that module were rewritten.
* TemplateHelper: misc. cleanup of __default__ featureChris St. Pierre2013-11-111-14/+20
| | | | | | * Don't require symbols to be listed twice; they can be listed in either __export__ or __default__, but need not be in both. * Check for reserved words in __default__ list
* Plugins: Added TemplateDataProvider plugin interfaceChris St. Pierre2013-10-301-13/+44
| | | | | | | This lets you provide variables to the top-level namespace of templates in a more seamless way than through a Connector plugin. It's mostly useful for TemplateHelper for now, but may find other uses in the future.
* Plugins: refactored out unnecessary datastore constructor argumentChris St. Pierre2013-10-291-2/+2
|
* Options: migrated plugins to new options parserChris St. Pierre2013-06-271-73/+0
|
* Merge branch 'maint'Chris St. Pierre2013-06-271-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/tcheetah.txt src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
| * TemplateHelper: fix traceback with TemplateHelper modules in place and ↵Chris St. Pierre2013-06-261-1/+1
| | | | | | | | --stdin argument to bcfg2-lint
* | Merge branch 'maint'Chris St. Pierre2013-05-171-2/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/centos.txt doc/server/plugins/grouping/metadata.txt setup.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/SSHbase.py src/sbin/bcfg2-lint
| * doc: added devel docs for bcfg2-lint pluginsChris St. Pierre2013-05-141-2/+17
| |
* | Merge branch 'maint'Chris St. Pierre2013-04-241-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Perf.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/Fam.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Base.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Cvs.py src/lib/Bcfg2/Server/Plugins/Darcs.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/FileProbes.py src/lib/Bcfg2/Server/Plugins/Fossil.py src/lib/Bcfg2/Server/Plugins/Git.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/Server/Plugins/__init__.py src/lib/Bcfg2/Server/__init__.py src/sbin/bcfg2-build-reports src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * testsuite: fixed more unit test stuffChris St. Pierre2013-03-261-1/+1
| |
* | Merge branch 'master' into 1.4.xChris St. Pierre2013-02-201-2/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/contributors.txt schemas/bundle.xsd src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/Encryption.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/TemplateHelper.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py tools/bcfg2-profile-templates.py
| * TemplateHelper: import helper modules with munged names to avoid collisionsChris St. Pierre2013-01-291-2/+16
| |
* | added a module-level FAM object to avoid passing it as an argument a billion ↵Chris St. Pierre2013-01-171-3/+2
|/ | | | times
* TemplateHelper: fixed bcfg2-lint pluginChris St. Pierre2013-01-031-10/+5
|
* cleaned up Templatehelper to help avoid some event handling errorsChris St. Pierre2012-11-161-20/+26
|
* run pylint for errors on almost everything, full runs on some selected stuffChris St. Pierre2012-09-251-19/+24
|
* TemplateHelper: removed support for host- and group-specific helpersChris St. Pierre2012-08-241-48/+31
| | | | | | | | | | Supporting these was basically impossible due to the way Python handles bytecode compilation. For instance, 'foo.py.G10_bar' would be compiled to foo.py.G10_barc, which is then indistinguishable from a helper for the group "barc" (or, rather, a _broken_ helper for that group, since a bytecode-compiled module cannot be imported successfully). There's no performance gain from specific helpers anyway -- they all get imported -- so I removed this functionality.
* Templatehelper: fixed inclusion of group- and host-specific helpersChris St. Pierre2012-08-231-1/+1
|
* fixed handling of regex filename patterns in GroupSpool/EntrySetChris St. Pierre2012-08-221-2/+2
|
* bcfg2-lint: fixed errors in TemplateHelper lint pluginChris St. Pierre2012-08-161-3/+3
|
* added unit tests for EntrySetChris St. Pierre2012-08-141-3/+4
|
* made bcfg2-lint load lint plugins from server plugins where appropriateChris St. Pierre2012-06-141-0/+66
|
* Allow to run directly from a git checkout (#1037)Sol Jerome2012-03-241-0/+83
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>