summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/BuiltinCore.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'maint'Alexander Sulfrian2014-11-121-8/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog doc/conf.py doc/releases/index.txt doc/server/database.txt doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/sslca.txt man/bcfg2.conf.5 misc/bcfg2-selinux.spec misc/bcfg2.spec osx/Makefile osx/macports/Portfile schemas/packages.xsd solaris-ips/MANIFEST.bcfg2-server.header solaris-ips/MANIFEST.bcfg2.header solaris-ips/Makefile solaris-ips/pkginfo.bcfg2 solaris-ips/pkginfo.bcfg2-server solaris/Makefile solaris/pkginfo.bcfg2 solaris/pkginfo.bcfg2-server src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Client/Tools/APT.py src/lib/Bcfg2/Client/Tools/Action.py src/lib/Bcfg2/Client/Tools/SYSV.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/templates/base.html src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugins/Packages/Apt.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/settings.py src/lib/Bcfg2/version.py testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * Catch possible typeerror resulting from None being returned when reading the ↵Matt Kemp2014-10-021-1/+1
| | | | | | | | pid.
| * Fixes to ensure pidfile can be opened or broken if stale.Matt Kemp2014-10-011-1/+4
| |
| * pylint fixes.Matt Kemp2014-10-011-3/+4
| |
| * Attempt to break the pid lock during startup.Matt Kemp2014-10-011-7/+15
| | | | | | | | | | | | | | | | This commit attempts to break the pidfilelock during startup in cases where the process may have exited without successfully cleaning up the lockfile. It also attempts to grab the lock before opening the context. Also applied to the Collector module, which may have been looking for the wrong exception since it does not rely on a timeout.
* | Options: add missing communication:protocol optionsAlexander Sulfrian2014-10-151-1/+2
| | | | | | | | | | The option was there in bcfg2-1.3.x and is still documented (maybe it just got lost during the options rewrite).
* | Merge branch 'maint'Sol Jerome2013-09-011-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/Server/SSLServer.py tools/README
| * SSLServer: Poll for POST data correctlyChris St. Pierre2013-08-281-1/+0
| | | | | | | | | | | | | | | | This updates the do_POST() code to cleave more closely to the code in SimpleXMLRPCHandler.do_POST (plus SSL magic, of course). In doing so, it eliminates a select() call whose timeouts were not handled properly, and which thus left stray idle processes around after incomplete XML-RPC calls.
* | Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-17/+18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 server core to new option parserChris St. Pierre2013-06-271-17/+18
| | |
* | | Merge branch 'maint'Sol Jerome2013-07-271-1/+2
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | 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
| * Make the server process always detach, even if started by initArto Jantunen2013-07-211-1/+2
| | | | | | | | | | Otherwise startup with systemd in type=forking fails since the daemon will not fork.
* | Merge branch 'maint'Chris St. Pierre2013-05-171-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * BuiltinCore: register server instance after plugins are loadedChris St. Pierre2013-05-071-1/+1
| |
* | Merge branch 'maint'Chris St. Pierre2013-04-241-4/+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
| * BuiltinCore: gracefully handle existing lock on pidfileChris St. Pierre2013-04-161-4/+10
| |
| * PY3K: Fix client/server to work with python 3Sol Jerome2013-04-101-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | moved some libraries in Bcfg2/ into more specific (Server/ or Client/) placesChris St. Pierre2013-02-051-6/+7
| |
* | added module-level OptionParser to avoid passing it as an argument or global ↵Chris St. Pierre2013-01-171-2/+2
|/ | | | all over
* BuiltinCore: fixed import of LockFailedChris St. Pierre2012-11-191-2/+3
|
* fail gracefully when pidfile creation failsChris St. Pierre2012-11-191-5/+10
|
* set default umask for server, added option to change itChris St. Pierre2012-11-141-10/+8
|
* BuiltinCore: removed unused import osChris St. Pierre2012-10-181-1/+0
|
* fixed server core instantiation when running in foregroundChris St. Pierre2012-10-181-7/+11
|
* fix return value from _daemonizeChris St. Pierre2012-10-181-0/+1
|
* use daemon.pid[lock]file.PIDLockFile to write PID fileChris St. Pierre2012-10-181-19/+7
|
* documented core implementationsChris St. Pierre2012-10-151-8/+32
|
* added module-level Bcfg2.Statistics object for easier trackingChris St. Pierre2012-10-101-1/+5
|
* drop privs options added, works in CherryPyChris St. Pierre2012-10-041-1/+3
|
* moved pidfile creation into the server backendsChris St. Pierre2012-09-251-1/+15
|
* expanded pylint testsChris St. Pierre2012-09-251-37/+8
|
* run pylint for errors on almost everything, full runs on some selected stuffChris St. Pierre2012-09-251-1/+1
|
* fixed gamin issues with late daemonizationChris St. Pierre2012-09-181-1/+2
|
* updated various scripts/components to reflect updated Core invocation for ↵Chris St. Pierre2012-09-051-2/+2
| | | | thread-safety
* Core: fixed threading issues preventing successful daemonization of builtin coreChris St. Pierre2012-09-041-15/+24
|
* Core: collect more performance statisticsChris St. Pierre2012-08-301-2/+1
|
* made bcfg2-admin perf work againChris St. Pierre2012-08-291-1/+2
|
* renamed Bcfg2Py3k to CompatChris St. Pierre2012-08-271-1/+1
|
* Server: Fix server startupSol Jerome2012-07-201-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* added CherryPy-based server coreChris St. Pierre2012-07-191-0/+102