summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Cfg
Commit message (Collapse)AuthorAgeFilesLines
* Cfg: Fix SSLCA key generationSol Jerome2016-11-181-2/+2
| | | | | | | The previous check resulted in a "FutureWarning" and also did not work as expected and reset the key values in every case. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Add dest= arg to fix option that is referenced as cfg_validation.Gordon Messmer2016-02-171-0/+1
|
* Compatibility with Jinja < 2.7.Gordon Messmer2015-09-091-3/+9
|
* Keep trailing newlines in Jinja2 templates.Gordon Messmer2015-09-091-1/+3
|
* Plugins/Cfg: Don't depend on jinja2Alexander Sulfrian2015-07-201-14/+15
| | | | | If jinja2 is not available, we cannot use some classes. So the access to these classes have to be dependent on the available of jinja2.
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-183-32/+28
| | | | | | | | | | 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.
* Add loader/environment to Jinja2 templates so that files canGordon Messmer2014-11-061-3/+42
| | | | include or extend other files.
* Update CfgJinja2Generator.py to more closely match git master code.Gordon Messmer2014-09-111-8/+22
| | | The first version matched Bcfg2-1.3.4.
* First pass at Jinja2 support for Cfg.Gordon Messmer2014-09-112-0/+63
|
* more unit test fixesChris St. Pierre2014-04-251-1/+0
|
* Cfg: py3k fixSol Jerome2014-04-251-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'maint'Chris St. Pierre2014-04-252-5/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: misc/bcfg2.spec src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Tools/APK.py src/lib/Bcfg2/Client/Tools/MacPorts.py src/lib/Bcfg2/Client/Tools/Pacman.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Server/Admin/Minestruct.py src/lib/Bcfg2/Server/Admin/Pull.py src/lib/Bcfg2/Server/Admin/Viz.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgEncryptedGenerator.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-yum-helper testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgEncryptedGenerator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * reduce logging from failed decryption with decrypt=laxChris St. Pierre2014-04-252-18/+17
| |
| * Cfg: let EncryptedGenerator load setup object whenever the plugin is importedChris St. Pierre2013-12-091-3/+6
| | | | | | | | | | | | | | Previously, if CfgEncryptedGenerator was imported before the Cfg object was instantiated, it would finalize the Bcfg2.Server.Plugins.Cfg.SETUP object with a value of None, and would be unable to access the options dict.
* | Bundler: added path globbingChris St. Pierre2014-02-261-2/+1
| |
* | Plugins: Added TemplateDataProvider plugin interfaceChris St. Pierre2013-10-302-13/+35
| | | | | | | | | | | | | | 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
| |
* | Merge branch 'maint'Chris St. Pierre2013-09-162-25/+44
|\| | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Plugins/Cfg/CfgPublicKeyCreator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgPrivateKeyCreator.py
| * CfgPublicKeyCreator: properly handle case where only private key has been ↵Chris St. Pierre2013-09-162-25/+44
| | | | | | | | | | | | | | | | | | created Previously, only two cases were handled properly: both public and private keys had been created; or neither had been created. If the private key had been created (e.g., manually added to the repo), the public key would not be created from it. This fixes that.
| * bcfg2-lint: Added Cfg check for multiple global handlers for one entry setChris St. Pierre2013-09-091-1/+17
| |
* | Merge branch 'maint'Chris St. Pierre2013-09-092-4/+6
|\| | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Plugins/Cfg/CfgAuthorizedKeysGenerator.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py
| * Cfg: allow changing category specific-ness of generated authorized_keysChris St. Pierre2013-09-091-3/+3
| |
| * Cfg: Give non-specific handlers a default specificityChris St. Pierre2013-09-091-0/+2
| |
* | Pylint/PEP8 fixesSol Jerome2013-09-061-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Merge branch 'maint'Chris St. Pierre2013-09-041-5/+8
|\| | | | | | | | | | | | | | | | | | | Conflicts: doc/client/tools/actions.txt schemas/authorizedkeys.xsd src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Bundler.py testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py
| * Cfg: More flexible and complete way to specify authorized keys optionsChris St. Pierre2013-09-041-4/+13
| |
* | testsuite: fixed unit tests for new SSLCA stuffChris St. Pierre2013-08-131-8/+5
| |
* | Rewrote SSLCA as Cfg handler.Chris St. Pierre2013-08-136-109/+431
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds encryption support to SSL key creation (much like SSH private keys), and the ability to generate keys and certs that are specific to groups, instead of just to hosts. It also moves the SSLCA data (the XML files describing keys and certs as well as the keys and certs themselves) into the Cfg tree, rather than off in their own separate place. tools/upgrade/1.4/migrate_sslca.py can be used to migrate to the new format. This also adds XMLCfgCreator, a CfgCreator that makes it easier to create data based on XML descriptions of it (which is exactly what the SSH key and SSL CA creators do), including built-in support for host- and group-specific data, encryption, and so on.
* | testsuite: fixed most pylint complaintsChris St. Pierre2013-08-091-1/+10
| |
* | testsuite: fixed unit tests for server pluginsChris St. Pierre2013-08-091-1/+1
| |
* | Merge branch 'options-rewrite'Chris St. Pierre2013-08-088-197/+88
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Init.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/base.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/Server/SSLServer.py src/lib/Bcfg2/Utils.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-test src/sbin/bcfg2-yum-helper tools/bcfg2-profile-templates.py
| * | Options: migrated plugins to new options parserChris St. Pierre2013-06-278-177/+89
| | |
* | | Merge branch 'maint'Sol Jerome2013-07-271-6/+26
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: doc/appendix/guides/ubuntu.txt src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/settings.py
| * Cfg: added missing docstringChris St. Pierre2013-07-231-0/+4
| |
| * Cfg: unknown-cfg-files lint check honors FAM ignore listChris St. Pierre2013-07-231-6/+22
| |
| * Encryption: reduce noise from encryption failures when decrypt=laxChris St. Pierre2013-07-151-1/+1
| |
* | Merge branch 'maint'Chris St. Pierre2013-06-271-27/+78
|\| | | | | | | | | | | | | | | | | 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
| * Cfg: Fixed and documented .cat and .diff file behavior with host-specific ↵Chris St. Pierre2013-06-141-8/+17
| | | | | | | | base file
| * lint: check for files in Cfg/ that aren't handled by CfgChris St. Pierre2013-06-031-21/+62
| |
* | Merge branch 'maint'Sol Jerome2013-06-021-1/+3
|\| | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: doc/installation/distributions.txt doc/server/snapshots/index.txt src/lib/Bcfg2/Server/Plugin/helpers.py src/sbin/bcfg2-server
| * Cfg: Handle bogus created events as changedMichael Fenn2013-05-241-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible for the FAM (gamin in particular) to send a created event for a file that already exists if the file is updated in a particular way. I suppose that the event is technically correct since a new inode really was created, but the file is only changed from bcfg2's point of view. For instance, the "atomic" copy-to-temp-then-move-over-top method that rsync uses will expose this behavior. Example: rsync -a --temp-dir=/var/tmp --delete-after \ --exclude Packages/cache --exclude Packages/keys \ --exclude Reporting/DirectStore --exclude probed.xml \ /var/lib/bcfg2/ $OTHERSERVER:/var/lib/bcfg2
* | cleaned up old references to BundleTemplateFileChris St. Pierre2013-05-201-6/+1
| |
* | Fixing unit testsChris St. Pierre2013-04-251-2/+3
| |
* | Merge branch 'maint'Chris St. Pierre2013-04-243-14/+15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Cfg: removed debuggingChris St. Pierre2013-04-231-2/+1
| |
| * PY3K: Fix client/server to work with python 3Sol Jerome2013-04-101-0/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * fixed regex errors introduced by 6c996f42c53a36fc0406f836d64b8c1bec6f4bccChris St. Pierre2013-03-261-2/+2
| |
| * testsuite: fixed issues found by latest version of pylintChris St. Pierre2013-03-262-6/+6
| |
| * testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-262-6/+5
| |
* | Merge branch '1.4.x'Chris St. Pierre2013-04-2313-373/+100
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/bcfg2-server.install doc/server/plugins/grouping/metadata.txt src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Tools/Portage.py src/lib/Bcfg2/Client/Tools/RcUpdate.py src/lib/Bcfg2/Client/Tools/YUM24.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Client/Tools/launchd.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/models.py src/lib/Bcfg2/Utils.py src/sbin/bcfg2-info src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py