summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-08-17 20:44:48 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-08-17 20:44:48 +0000
commit7b84a70e50aface99b4621927f2df08058714c65 (patch)
tree4ebb022b9a9f428ead843a7e1aa2d208e3d2209d
parentf940deb8419060c6a5685ad460efa232ba1a8aad (diff)
downloadbcfg2-7b84a70e50aface99b4621927f2df08058714c65.tar.gz
bcfg2-7b84a70e50aface99b4621927f2df08058714c65.tar.bz2
bcfg2-7b84a70e50aface99b4621927f2df08058714c65.zip
POSIX: Add client side support for Path entries
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5411 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Tools/POSIX.py14
1 files changed, 13 insertions, 1 deletions
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, _)