summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Packages: added lock to yum cache updateChris St. Pierre2013-07-181-0/+13
|
* Packages: make opportunistic yum cache creation respect metadata=disabledChris St. Pierre2013-07-181-1/+22
|
* Yum: Removed unused importChris St. Pierre2013-07-181-2/+1
|
* Packages: fixed read-only yum cacheChris St. Pierre2013-07-181-29/+4
| | | | | | Replaced incredibly stupid (mea culpa!) and race-condition-prone system that toggled filesystem permissions (what was I thinking?!?) with judicious application of the yum cacheonly option.
* Packages: better stringification/representation of OnDemandDictChris St. Pierre2013-07-181-1/+1
|
* Packages: use a separate yum persistdir per cacheChris St. Pierre2013-07-181-0/+1
|
* Merge branch 'fix-bootstatus' of https://github.com/AlexanderS/bcfg2 into maintSol Jerome2013-07-171-1/+1
|\
| * Bcfg2/Client/Tools: do not get bootstatus directly from the entryAlexander Sulfrian2013-07-172-2/+2
| | | | | | | | | | Bootstatus is optional and should have the value of status if not specified. This is handled by get_bootstatus.
* | POSIXUsers: remove usermod -m option, which is too newChris St. Pierre2013-07-161-1/+0
| |
* | Core: handle unknown log handlers without names gracefullyChris St. Pierre2013-07-161-3/+8
| |
* | Packages: added missing docstringChris St. Pierre2013-07-151-0/+3
| |
* | Read-only yum cacheChris St. Pierre2013-07-153-27/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the yum cache read-only so that bcfg2-yum-helper cannot update the cache on the fly, which should help avoid locking issues with the yum caches that can cause client runs to fail. It also makes the Packages plugin behave more consistently, since use of yum libraries won't cause the cache to be refreshed at random times on the fly, but rather more predictably as with the Apt cache or the yum cache without using yum libraries. Unlike those two cases, though, the caches will not all be downloaded initially, but rather opportunistically as needed. In order for this to work, the Bcfg2 server must not run as root. Root ignores the 'w' permissions bit, so the cache cannot be made read-only.
* | Encryption: reduce noise from encryption failures when decrypt=laxChris St. Pierre2013-07-152-2/+2
| |
* | Merge branch 'utf8-fixes' of https://github.com/stgraber/bcfg2 into maintSol Jerome2013-07-121-0/+3
|\ \
| * | Don't crash when a file diff contains utf-8 charsStéphane Graber2013-07-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a crash when the client tries to render the diff of a file which includes unicode characters. This change assumes that utf-8 is the default encoding, which looking at the rest of the code appears to be a safe bet. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
* | | Merge pull request #114 from igorwidlinski/patch-1Chris St. Pierre2013-07-121-1/+1
|\ \ \ | |/ / |/| | Chkconfig should not set service to "on" on every run level
| * | Stop adding chkconfig service to every run leveligorwidlinski2013-07-041-1/+1
| | | | | | | | | Let chkconfig assign default runlevels.
* | | Copy xml elements before appending to tree. This prevents modified entries ↵Tim Laszlo2013-07-101-1/+2
| | | | | | | | | | | | from being added
* | | Metadata: fixed long lineChris St. Pierre2013-07-091-2/+2
| | |
* | | Core: Gracefully handle failure to add client without default groupChris St. Pierre2013-07-092-6/+10
| | |
* | | Core: apply FAM blocking option to all commands that start a serverChris St. Pierre2013-07-091-5/+21
| | |
* | | RcUpdate: Use get_bootstatusSol Jerome2013-07-081-1/+1
|/ / | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Metadata: fixed docstring typoChris St. Pierre2013-07-031-1/+1
| |
* | Chkconfig: give --list option to chkconfig rather than sending it on stdinMichael Fenn2013-07-021-2/+2
| |
* | pep8: fixed testsChris St. Pierre2013-07-021-2/+2
| |
* | Version bump to 1.3.2v1.3.2Sol Jerome2013-07-012-2/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Merge branch 'bcfg2-info-builddir-add-owner-write' of ↵Sol Jerome2013-07-011-9/+3
|\ \ | | | | | | | | | https://github.com/fennm/bcfg2 into maint
| * | New approach, just create nwe directories with mode 0755 regardlessMichael Fenn2013-07-011-9/+3
| | |
* | | Options: Fix typosSol Jerome2013-06-291-1/+1
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | Merge branch 'django-db-options' of https://github.com/AlexanderS/bcfg2 into ↵Sol Jerome2013-06-292-3/+35
|\ \ \ | |_|/ |/| | | | | maint
| * | Options: add database.optionsAlexander Sulfrian2013-06-282-3/+13
| | | | | | | | | | | | | | | | | | | | | With the options setting in the database section of the config file various database options for the django database could be set (like ssl mode for postgres). For more information, consult your django databse backend module's documentation.
| * | Opitons: add cook function to parse a dict for the config fileAlexander Sulfrian2013-06-281-0/+22
| | |
* | | Executor: do not split the command line if shell is trueAlexander Sulfrian2013-06-291-1/+3
| |/ |/| | | | | | | | | | | If the command should be excuted within a shell, it should not be splited into a list. If subcommand.Popen gets a list, the first element is the command and all other are the arguements. This breaks the shell evaluation of the commamnd.
* | Merge branch 'python-pre27-compat' of https://github.com/AlexanderS/bcfg2 ↵Sol Jerome2013-06-281-10/+12
|\ \ | | | | | | | | | into maint
| * | Client/Frame: avoid use of lxml-only getparent()Alexander Sulfrian2013-06-291-1/+4
| | | | | | | | | | | | | | | | | | getparent is not supported by xml.etree so try to emulate it with a generated parent_map. This is the only possibility, because xml.etree does not store references to the parent elements.
| * | Revert "Avoid use of lxml-only getparent()"Alexander Sulfrian2013-06-281-10/+9
| |/ | | | | | | This reverts commit 38f55b6257ce51b1cf65ecb3d980d7528c1b53ff.
* / Plugins/Packages: add missing format string parameterAlexander Sulfrian2013-06-281-1/+2
|/
* Metadata: Make pylint happySol Jerome2013-06-271-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins/Metadata: fix resolution for ipv4-in-ipv6 addresses like ↵Alexander Sulfrian2013-06-271-1/+1
| | | | ::ffff:127.0.0.1
* Chkconfig: Use get_bootstatusSol Jerome2013-06-271-3/+3
| | | | | | | The get_bootstatus method has the correct logic to get the desired result when bootstatus is unset. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge pull request #65 from dikim33/maintChris St. Pierre2013-06-261-0/+7
|\ | | | | Make the "latest" value more usable in VCS.py
| * Make the "latest" value of the "revision" attribute update the workingDongInn Kim2013-03-241-0/+7
| | | | | | | | copy only when the working copy is not updated to the latest revision.
* | TemplateHelper: fix traceback with TemplateHelper modules in place and ↵Chris St. Pierre2013-06-261-1/+1
| | | | | | | | --stdin argument to bcfg2-lint
* | Lint: Fix Path type='vcs' schema checksSol Jerome2013-06-261-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Revert "Core: properly handle Ctrl-C"Sol Jerome2013-06-261-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Chkconfig: Set svcstatusSol Jerome2013-06-251-0/+1
| | | | | | | | | | | | | | When status='ignore', set svcstatus to True so that the entry verifies properly. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Utils: PackedDigitRange __len__() breaks with open-ended rangesChris St. Pierre2013-06-191-3/+0
| |
* | Core: rewrite $HOME after dropping privsChris St. Pierre2013-06-191-0/+6
| |
* | Yum: fixed logging bcfg2-yum-helper error outputChris St. Pierre2013-06-191-1/+3
| |
* | Client/Tools/VCS: fix symlink handlingAlexander Sulfrian2013-06-191-1/+1
| |