summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | POSIXUsers: strip whitespace from MemberOf tagsChris St. Pierre2013-05-071-2/+2
| |
* | fixed long linesChris St. Pierre2013-05-071-1/+2
| |
* | Merge branch 'chkconfig-respect-servicemode' of ↵Sol Jerome2013-05-061-3/+5
|\ \ | | | | | | | | | https://github.com/fennm/bcfg2 into maint
| * | make chkconfig tool driver respect servicemodeMichael Fenn2013-05-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bcfg2 man page states that -s disabled should stop bcfg2 from attempting to modify any services, but the Chkconfig driver (at least) does start the service during the Install phase even with -s disabled. This patch adds support to the Chkconfig driver for the servicemode config parameter. It still does chkconfig --add, which I think makes sense to happen as part of configuration, but it does not attempt to actually start the service.
* | | SELinux: added MLS ranges to all entries that support themChris St. Pierre2013-04-251-8/+12
| | |
* | | Frame: Left-align entries without a typeSol Jerome2013-04-251-4/+4
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | POSIX: SELinux context fixes for Path entriesChris St. Pierre2013-04-111-5/+11
| | | | | | | | | | | | | | | | | | | | | * Fixed Path entries with secontext='__default__' where no fcontext rule applied to the path. * Permitted setting secontext='' when no SELinux context should be applied to a Path entry
* | | SELinux: when the policy is upgraded, local changes can be lost (although ↵Chris St. Pierre2013-04-101-1/+10
| | | | | | | | | | | | the fact that there are local changes may be retained). cope with this bug.
* | | Client: Remove unused importSol Jerome2013-04-101-1/+1
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | PY3K: Fix client/server to work with python 3Sol Jerome2013-04-101-4/+10
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | RcUpdate: Fix detection of running servicesSol Jerome2013-04-101-8/+16
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | File: handle Path type="file" entries with no text content even if empty is ↵Chris St. Pierre2013-04-051-6/+4
| | | | | | | | | | | | not set
* | | Frame: Sort incorrect entriesSol Jerome2013-04-041-1/+2
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | Frame: log modified bundles, fix error messageChris St. Pierre2013-03-291-6/+9
| | |
* | | remove some unnecessary __all__ variablesChris St. Pierre2013-03-291-3/+1
| | |
* | | fixed pep8 stuff in yum toolChris St. Pierre2013-03-291-45/+48
| | |
* | | Probes: Handle unicode probesSol Jerome2013-03-291-5/+5
|/ / | | | | | | | | | | | | | | There is no good way of sending unicode probes to older clients which do not have support for them. This change will cause unicode probes to be skipped for unsupported clients and handled properly for new clients. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | testsuite: more test fixesChris St. Pierre2013-03-261-1/+1
| |
* | testsuite: more text fixesChris St. Pierre2013-03-262-2/+3
| |
* | testsuite: fixed more unit test stuffChris St. Pierre2013-03-262-2/+2
| |
* | testsuite: fixed issues found by latest version of pylintChris St. Pierre2013-03-268-17/+16
| |