summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Cfg
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * use Executor class for better subprocess calling on serverChris St. Pierre2013-03-142-23/+15
| |
| * Merge branch 'master' into 1.4.xChris St. Pierre2013-02-203-7/+12
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | removed experimental flag from plugins/tools added in 1.3Chris St. Pierre2013-02-122-7/+0
| | |
| * | converted InfoXML objects from XMLSrc to StructFileChris St. Pierre2013-02-062-44/+8
| | |
| * | moved some libraries in Bcfg2/ into more specific (Server/ or Client/) placesChris St. Pierre2013-02-053-9/+7
| | |
| * | made genshi a requirementChris St. Pierre2013-01-221-56/+32
| | |
| * | removed support for info/:info filesChris St. Pierre2013-01-172-53/+0
| | |
| * | removed support for .cat/.diff filesChris St. Pierre2013-01-173-79/+1
| | |
| * | removed mode="inherit" supportChris St. Pierre2013-01-171-7/+0
| | |
| * | abstracted encryption support from Properties/CfgPrivateKeyCreator to StructFileChris St. Pierre2013-01-172-42/+4
| | |
| * | added module-level OptionParser to avoid passing it as an argument or global ↵Chris St. Pierre2013-01-177-62/+42
| | | | | | | | | | | | all over
* | | better error message when rendering a template that failed to parseChris St. Pierre2013-02-211-0/+4
| |/ |/|
* | fixed checking Genshi templates for comments (#1141)Chris St. Pierre2013-02-141-0/+1
| |
* | fixed unit testsChris St. Pierre2013-02-131-7/+4
| |
* | Cfg: better error handling from verifiers, :testChris St. Pierre2013-02-082-7/+14
|/
* Made a few encryption things simpler:Chris St. Pierre2013-01-171-2/+4
| | | | | | * Only one strict/lax setting, in [encryption], rather than separate settings in [properties] and [sshkeys] * No longer necessary to enable encryption on each Properties file
* testsuite: fixed tests for decryption in Properties/CfgPrivateKeyCreatorChris St. Pierre2013-01-161-1/+1
|
* Cfg: Revert change from 10326a34Sol Jerome2013-01-081-1/+1
| | | | | | This change broke altsrc entries. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* 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-034-20/+497
|
* Cfg: added creator handler to perform one-time creation of static dataChris St. Pierre2012-12-203-59/+159
|
* 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: Fixed bugs in Genshi error handling:Chris St. Pierre2012-11-291-11/+54
| | | | | * Find the correct frame of the stack trace if the exception is raised by something outside the template * Determine if the version of Genshi in use strips all blank lines or not to correctly locate the line of the error