summaryrefslogtreecommitdiffstats
path: root/src/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Options: migrated bcfg2-admin to new parserChris St. Pierre2013-06-271-88/+2
|
* Options: migrated bcfg2-info to new parserChris St. Pierre2013-06-271-788/+2
|
* Options: migrated bcfg2-lint to new parserChris St. Pierre2013-06-272-208/+2
|
* Options: migrated server core to new option parserChris St. Pierre2013-06-271-47/+27
|
* Merge branch 'maint'Chris St. Pierre2013-06-275-23/+72
|\ | | | | | | | | | | | | | | | | 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
| * bcfg2-test: Move signal handlerSol Jerome2013-06-261-1/+1
| | | | | | | | | | | | | | Code was refactored such that this signal handler got put in the wrong place during the revert. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * bcfg2-test: Fix merge thinkoSol Jerome2013-06-261-5/+4
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * Revert "Core: properly handle Ctrl-C"Sol Jerome2013-06-261-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4568c44372c99ba809826e016680da9b881bd8e8. Trying to handle ^c in the core is difficult and can break STDOUT for interactive programs that invoke the core. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Server/Core.py src/sbin/bcfg2-test tools/bcfg2-profile-templates.py
| * bcfg2-info: Remove nonexistent optionSol Jerome2013-06-211-1/+0
| | | | | | | | | | | | This option was removed in f157617a5c. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * bcfg2-yum-helper: fixed unit testsChris St. Pierre2013-06-141-5/+8
| |
| * Yum: handle and log helper errors betterChris St. Pierre2013-06-131-19/+45
| |
| * fixed unit testsChris St. Pierre2013-06-031-1/+2
| |
| * bcfg2-admin: set appropriate return values on errorChris St. Pierre2013-06-031-2/+2
| |
| * Revert "bcfg2-admin: set appropriate return values on error"Chris St. Pierre2013-06-031-2/+2
| | | | | | | | | | | | This reverts commit dae8f399151052fd2a0ce43ac61a56f399a28252. Splitting this into two commits.
| * bcfg2-admin: set appropriate return values on errorChris St. Pierre2013-06-031-2/+2
| |
| * bcfg2-lint: log run time for each lint pluginChris St. Pierre2013-06-031-1/+5
| |
* | bcfg2-test: added option to spawn multiple child processes to run testsChris St. Pierre2013-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | (cherry picked from commit 6fcce024d45c0f6312b17c19140272f192f18841) Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Options.py src/sbin/bcfg2-test
* | Merge branch 'maint'Sol Jerome2013-06-022-7/+11
|\| | | | | | | | | | | | | | | | | | | 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
| * bcfg2-info: Handle IOErrorsSol Jerome2013-06-021-4/+8
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * really fixed pylint issues with cbcfg2-serverChris St. Pierre2013-05-231-4/+3
| |
| * fixed pylint testChris St. Pierre2013-05-231-1/+2
| |
* | Merge branch 'maint'Chris St. Pierre2013-05-211-10/+21
|\|
| * added multiprocessing server coreChris St. Pierre2013-05-201-10/+21
| |
* | Merge branch 'maint'Chris St. Pierre2013-05-173-18/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * bcfg2-lint: fixed unit testsChris St. Pierre2013-05-141-1/+1
| |
| * doc: added devel docs for bcfg2-lint pluginsChris St. Pierre2013-05-141-3/+3
| |
| * bcfg2-info: running packageresolve with no packages uses the actual package ↵Chris St. Pierre2013-05-071-13/+17
| | | | | | | | list of the host
| * added remaining required Core.load_plugins() callsChris St. Pierre2013-05-071-1/+2
| |
| * bcfg2-test: load plugins on server startupChris St. Pierre2013-05-011-0/+1
| |
* | Fixing unit testsChris St. Pierre2013-04-251-1/+1
| |
* | Merge branch 'maint'Chris St. Pierre2013-04-245-51/+38
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * bcfg2-info: fixed "bcfg2-info clients" when using clients databaseChris St. Pierre2013-04-181-3/+1
| |
| * bcfg2-info: fixed for new load_plugins() routineChris St. Pierre2013-04-171-1/+2
| |
| * Core: load plugins after daemonization so files/dirs created at plugin init ↵Chris St. Pierre2013-04-161-1/+1
| | | | | | | | time have proper permissions
| * bcfg2-yum-helper: use Bcfg2.Logger to set up loggingChris St. Pierre2013-04-161-23/+13
| |
| * bcfg2-reports: Fix exception handlingSol Jerome2013-04-121-1/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * Promote bcfg2-info to have it's own Options dictMichael Fenn2013-04-011-2/+1
| | | | | | | | | | | | | | | | | | | | Turns out that CLIENT_COMMON_OPTIONS and SERVER_COMMON_OPTIONS conflict. Adding ppath and max_copies (turns out the latter is also necessary) to the bcfg2-info code directly seemed like a maintenance problem waiting to happen, so I factored that out into a new INFO_COMMON_OPTIONS dict. That will keep any options parsing special cases out of the bcfg2-info code hopefully be more maintainable going forward.
| * testsuite: more text fixesChris St. Pierre2013-03-261-1/+1
| |
| * testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-263-24/+21
| |
* | Merge branch '1.4.x'Chris St. Pierre2013-04-239-374/+60
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | removed in-place modification of "states" dict in client toolsChris St. Pierre2013-02-211-3/+2
| | |
| * | Merge branch 'master' into 1.4.xChris St. Pierre2013-02-202-12/+50
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | moved some libraries in Bcfg2/ into more specific (Server/ or Client/) placesChris St. Pierre2013-02-051-18/+20
| | | |
| * | | removed deprecated plugins: TGenshi, TCheetah, Account, Hostbase, Snapshots, ↵Chris St. Pierre2013-01-171-306/+0
| | | | | | | | | | | | | | | | Statistics, Editor
| * | | Options: split loading a new OptionParser from fetching an existing parserChris St. Pierre2013-01-178-9/+9
| | | |
| * | | added module-level OptionParser to avoid passing it as an argument or global ↵Chris St. Pierre2013-01-178-59/+50
| | | | | | | | | | | | | | | | all over
* | | | Promote bcfg2-info to have it's own Options dictMichael Fenn2013-03-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out that CLIENT_COMMON_OPTIONS and SERVER_COMMON_OPTIONS conflict. Adding ppath and max_copies (turns out the latter is also necessary) to the bcfg2-info code directly seemed like a maintenance problem waiting to happen, so I factored that out into a new INFO_COMMON_OPTIONS dict. That will keep any options parsing special cases out of the bcfg2-info code hopefully be more maintainable going forward.
* | | | Revert "Update bcfg2-info OptionParser to use client options"Michael Fenn2013-03-291-1/+1
| | | | | | | | | | | | | | | | This reverts commit 3de72bb8c3bb0f0e71357657a256fe33cb65c168.
* | | | Update bcfg2-info OptionParser to use client optionsMichael Fenn2013-03-291-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bcfg2-info uses CLI_COMMON_OPTIONS which is a subset of the full CLIENT_COMMON_OPTIONS that the bcfg2 client uses. This causes bcfg2-info to fail on the builddir comand with the following traceback > builddir drdws0056.nyc.desres.deshaw.com /tmp/drdws0056 Command failure Traceback (most recent call last): File "/usr/sbin/bcfg2-info", line 157, in do_loop self.cmdloop('Welcome to bcfg2-info\n' File "/usr/lib64/python2.4/cmd.py", line 142, in cmdloop stop = self.onecmd(line) File "/usr/lib64/python2.4/cmd.py", line 219, in onecmd return func(arg) File "/usr/sbin/bcfg2-info", line 283, in do_builddir client_config) File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/POSIX/__init__.py", line 19, in __init__ self.ppath = setup['ppath'] KeyError: 'ppath' ppath is included in CLIENT_COMMON_OPTIONS, but not CLI_COMMON_OPTIONS so this commit changes bcfg2-info to parse the fuller CLIENT_COMMON_OPTIONS.
* | | bcfg2-info: fixed building help message on 2.4 (from Michael Fenn)Chris St. Pierre2013-03-221-4/+7
| | |