summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools
Commit message (Collapse)AuthorAgeFilesLines
* Fixed continue not in a loop error in previousRichard Connon2014-02-041-1/+1
|
* fix for "Too many branches" in _verify_aclsRichard Connon2014-02-041-20/+23
|
* Minor changes to default ACL codeRichard Connon2014-02-041-5/+4
|
* Support ACLs without a specific user/group for default owner/owning-group ↵Richard Connon2014-02-041-28/+52
| | | | ACLs on directories
* Augeas: ensure that entry.attrib is always a dictChris St. Pierre2014-01-291-1/+2
|
* POSIX: Properly stringify ACLs with no user/group specifiedChris St. Pierre2014-01-161-1/+4
| | | | | | | This is just a workaround to avoid a traceback; the real fix will involve making the POSIX tool properly handle ACLs with no user/group given, which refer to the current user/group of the file they apply to.
* fixed indentation in previousRichard Connon2014-01-051-1/+1
|
* Fixed syntatical error in previousRichard Connon2014-01-051-2/+2
|
* Fixed group blacklist issue #150Richard Connon2014-01-051-0/+1
|
* Augeas improvements:Chris St. Pierre2013-12-111-10/+21
| | | | | | | | | | | | | * Added ability to specify initial content for a file that doesn't exist, to avoid a messy situation where you'd have to probe for file existence and either use a Path type="file" or Path type="augeas" depending, and run Bcfg2 twice. * All commands in an Augeas path are run if *any* of them fail to verify. Previously, only commands that hadn't been run would be installed, but that had issues, particularly with the Clear command, which could pass verification but then be required during the installation phase anyway. * Miscellaneous bug fixes.
* Augeas: avoid deprecation warningChris St. Pierre2013-12-051-2/+2
|
* Augeas: Added docstrings, fixed some minor pylint issuesChris St. Pierre2013-12-051-20/+91
|
* Augeas: Only install unverified commandsChris St. Pierre2013-12-051-0/+2
|
* POSIX: skip loading POSIX sub-tools that raise ImportErrorChris St. Pierre2013-12-051-2/+5
| | | | This mimics the behavior for "real" tools
* Tools: new Augeas driverChris St. Pierre2013-12-051-0/+211
|
* 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>
* 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 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.
* | | 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
|/
* 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
| |
* | POSIX: Fix support for unicode filesSol Jerome2013-06-081-0/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | 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
| |
* | Portage: verify packages are the requested version, not the installed versionChris St. Pierre2013-05-091-4/+4
| |