From 7b84a70e50aface99b4621927f2df08058714c65 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Mon, 17 Aug 2009 20:44:48 +0000 Subject: POSIX: Add client side support for Path entries Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5411 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/POSIX.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py index 55e83d822..bfbe79066 100644 --- a/src/lib/Client/Tools/POSIX.py +++ b/src/lib/Client/Tools/POSIX.py @@ -80,9 +80,13 @@ class POSIX(Bcfg2.Client.Tools.Tool): '''POSIX File support code''' name = 'POSIX' __handles__ = [('ConfigFile', None), ('Directory', None), - ('Permissions', None), ('SymLink', None)] + ('Path', 'ConfigFile'), ('Path', 'Device'), + ('Path', 'Directory'), ('Path', 'Perms'), + ('Path', 'SymLink'), ('Permissions', None), + ('SymLink', None)] __req__ = {'ConfigFile': ['name', 'owner', 'group', 'perms'], 'Directory': ['name', 'owner', 'group', 'perms'], + 'Path': ['name', 'type'], 'Permissions': ['name', 'owner', 'group', 'perms'], 'SymLink': ['name', 'to']} @@ -522,3 +526,11 @@ class POSIX(Bcfg2.Client.Tools.Tool): else: print(err) return False + + def InstallPath(self, entry): + ret = getattr(self, 'Install%s' % entry.get('type')) + return ret(entry) + + def VerifyPath(self, entry, _): + ret = getattr(self, 'Verify%s' % entry.get('type')) + return ret(entry, _) -- cgit v1.2.3-1-g7c22