summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Cfg: Block for FAM events after creating filesAlexander Sulfrian2022-01-301-0/+3
| | | | | | | After a CfgCreator wrote a file, it should block until the fam events are processed. The newly created files might be required by another Cfg plugin (like CfgPrivateKeyCreator and CfgPublicKeyCreator) and the fam events should be processed before the other plugin is invoked.
* Add dest= arg to fix option that is referenced as cfg_validation.Gordon Messmer2016-02-171-0/+1
|
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-181-9/+7
| | | | | | | | | | 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.
* Bundler: added path globbingChris St. Pierre2014-02-261-2/+1
|
* Plugins: refactored out unnecessary datastore constructor argumentChris St. Pierre2013-10-291-2/+2
|
* Merge branch 'maint'Chris St. Pierre2013-09-091-0/+2
|\ | | | | | | | | | | | | 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: 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>
* | testsuite: fixed unit tests for new SSLCA stuffChris St. Pierre2013-08-131-8/+5
| |
* | Rewrote SSLCA as Cfg handler.Chris St. Pierre2013-08-131-33/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| |
* | Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-150/+48
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-271-130/+49
| | |
* | | 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
| |
* | 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
* | Merge branch 'maint'Chris St. Pierre2013-04-241-8/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * 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-261-5/+5
| |
| * testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-261-3/+3
| |
* | Merge branch 'master' into 1.4.xChris St. Pierre2013-02-201-5/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Cfg: better error handling from verifiers, :testChris St. Pierre2013-02-081-5/+4
| |
* | removed experimental flag from plugins/tools added in 1.3Chris St. Pierre2013-02-121-3/+0
| |
* | converted InfoXML objects from XMLSrc to StructFileChris St. Pierre2013-02-061-30/+6
| |
* | removed support for info/:info filesChris St. Pierre2013-01-171-7/+0
| |
* | removed support for .cat/.diff filesChris St. Pierre2013-01-171-16/+1
| |
* | removed mode="inherit" supportChris St. Pierre2013-01-171-7/+0
| |
* | added module-level OptionParser to avoid passing it as an argument or global ↵Chris St. Pierre2013-01-171-19/+10
|/ | | | all over
* Cfg: handle filenames with regex special characters properlyChris St. Pierre2013-01-071-1/+2
|
* Cfg: fixed existing Cfg bcfg2-lint plugin, added plugin to check for ↵Chris St. Pierre2013-01-031-23/+60
| | | | privkey.xml without pubkey.xml
* Cfg: Added feature to provide generation of SSH keys, authorized_keys fileChris St. Pierre2013-01-031-20/+75
|
* Cfg: added creator handler to perform one-time creation of static dataChris St. Pierre2012-12-201-53/+156
|
* fixed line length in Cfg docsChris St. Pierre2012-12-041-21/+19
|
* doc: wrote devel docs for client tool base objectsChris St. Pierre2012-12-041-5/+6
|
* fixed conversion to octal in py3kChris St. Pierre2012-12-041-2/+3
|
* Cfg: improved error messagesChris St. Pierre2012-11-131-2/+2
|
* improved error messages during failed decryptionChris St. Pierre2012-10-241-1/+6
|
* assigned Cfg handlers explicit priorities to avoid over-zealous regex matchesChris St. Pierre2012-10-171-2/+14
|
* Plugins: Update builtin plugins to use 'mode' attributeSol Jerome2012-10-151-4/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Cfg: fixed regexes for handling and ignoring files with different Cfg handlersChris St. Pierre2012-10-031-39/+17
|
* testsuite: added unit tests for Cfg handlersChris St. Pierre2012-10-021-1/+0
|
* Cfg: deprecated perms="inherit"Chris St. Pierre2012-10-021-0/+2
|
* testsuite: unit tests for Cfg plugin and base handlersChris St. Pierre2012-10-021-100/+124
|
* run pylint for errors on almost everything, full runs on some selected stuffChris St. Pierre2012-09-251-43/+54
|