summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client
Commit message (Collapse)AuthorAgeFilesLines
* Remove all ACLs (including mask) from entries with no ACLs listedChris St. Pierre2013-09-121-0/+5
| | | | | | When installing an entry with no ACLs specified, but with ACLs on the file as it exists on the filesystem, the ACL mask was preserved, even as the ACLs are deleted.
* POSIXUsers: Fix tracebackSol Jerome2013-09-061-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Fix pep8 errorsJason Kincl2013-08-301-3/+3
|
* Client: Add entries processed as important to list of entries whenJason Kincl2013-08-301-2/+4
| | | | determining if a bundle has been modified
* SELinux: Update the matchpathcon function to use the file's modeJonathan Billings2013-08-221-1/+2
| | | | | | | | If you don't supply a mode to the selinux.matchpathcon() function, it fails to properly look up the context in some circumstances related to context patterns in the SELinux policy. This change looks up the mode and supplies it to the function. (cherry picked from commit 20a2c9a8fb6c6ecbed259b5deccb01c01bf3304f)
* Client: Don't modify running services if ignoredSol Jerome2013-08-121-2/+3
| | | | | | | Previously, when a bundle's contents were updated, all services listed in the bundle were stopped if the status attribute was set to 'ignore'. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Fix pylint failureSol Jerome2013-08-101-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Fix unicode file verificationSol Jerome2013-08-101-3/+13
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIXUsers: Handle unicode gecos attributesSol Jerome2013-08-021-1/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Ignore permissions error on auto-created dirsMichael Fenn2013-07-241-4/+5
| | | | | | | | | | | | | | If the POSIX client tool is run as a non-root user, it is very likely that the _set_perms() call in _makedirs() will fail because it cannot set the owner of the newly-created directories. This causes _makedirs() to return False, which in turn causes POSIXFile.install() to bail out early. Applying the reasoning in <https://github.com/Bcfg2/bcfg2/pull/108> the freebie directories created by _makedirs should have mode and ownership done on a best-effort basis. If a user needs parent directories to have a specific ownership and mode, then they should specify that directory in their configuration.
* 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
| |
* | 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
* | | RcUpdate: Use get_bootstatusSol Jerome2013-07-081-1/+1
|/ / | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Chkconfig: give --list option to chkconfig rather than sending it on stdinMichael Fenn2013-07-021-2/+2
| |
* | New approach, just create nwe directories with mode 0755 regardlessMichael Fenn2013-07-011-9/+3
|/
* 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.
* 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.
* | 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>
* | Client/Tools/VCS: fix symlink handlingAlexander Sulfrian2013-06-191-1/+1
| |
* | Client/Tools/VCS: build index after checkoutAlexander Sulfrian2013-06-181-9/+38
| |
* | Client/Tools/VCS: add support for symlinksAlexander Sulfrian2013-06-181-4/+17
| |
* | Client/Tools/VCS: some simplyfications using dulwich apiAlexander Sulfrian2013-06-181-12/+8
| |
* | Client/Tools/VCS: add always on top featureAlexander Sulfrian2013-06-181-5/+24
| | | | | | | | | | | | | | You can specify a refname (like refs/heads/master) as revision and you will always get the current tree of this refname. During verify it is checked if the ref had changed in the remote repo and if an "update" is necessary.
* | Client/Tools/VCS: create directory for repositoryAlexander Sulfrian2013-06-181-1/+2
| | | | | | | | | | | | | | Older version of dulwich will not create the directory (even with mkdir=True) for the repository. So we cannot rely on it. Because we clean existing folders before, we have to create the directory in every case.
* | Client/Tools/Action: add shell attributeAlexander Sulfrian2013-06-141-4/+12
| | | | | | | | | | Add an option to specify whether a command should be executed within a shell to enable flow control and other shell-specific syntax.
* | fixed unit testsChris St. Pierre2013-06-121-2/+2
| |
* | Client: Exit when ^C is pressed interactivelySol Jerome2013-06-121-5/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | POSIX: Fix support for unicode filesSol Jerome2013-06-081-0/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Frame: quiet down about experimental pluginsChris St. Pierre2013-06-031-2/+2
| |
* | Services: Don't check status when set to 'ignore'Sol Jerome2013-06-033-45/+50
| | | | | | | | | | | | | | Checking the status for services that don't support it leads to ugly output in the interactive client on some platforms. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Services: Add new bootstatus attributeSol Jerome2013-06-024-95/+223
| | | | | | | | | | | | | | | | | | This new attribute allows the specification of a boot-time status separately from the current 'status' attribute. This allows for more fine-grained control over e.g. services that are really just boot scripts. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Fix for null target_status in Reporting_sericeentryJake Davis2013-05-241-0/+1
| |
* | POSIX: fix docstringChris St. Pierre2013-05-211-1/+1
| |
* | POSIX: fix directory pruningChris St. Pierre2013-05-211-2/+2
| |
* | Frame: Remove unused importSol Jerome2013-05-131-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Client: Fix interactive promptSol Jerome2013-05-132-10/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | fixed bundle names in debugging outputChris St. Pierre2013-05-101-1/+2
| |
* | Frame: Print the bundle name (not Element)Sol Jerome2013-05-101-2/+3
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Portage: verify packages are the requested version, not the installed versionChris St. Pierre2013-05-091-4/+4
| |
* | Systemd: systemd is a replacement for chkconfigSol Jerome2013-05-091-0/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | POSIXUsers: allow better <MemberOf group="foo"/> syntaxChris St. Pierre2013-05-071-2/+4
| |