summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/SSHbase.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-16 15:52:56 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-16 15:52:56 +0000
commit9b97a18b20791baeb89f208904c46a24369df62e (patch)
tree2c34fd1a9d0e10823f0c0ebfba6760fa4ac20494 /src/lib/Server/Plugins/SSHbase.py
parent6c1a1819c21966511a1b15ae3ddb329ec4b05e8b (diff)
downloadbcfg2-9b97a18b20791baeb89f208904c46a24369df62e.tar.gz
bcfg2-9b97a18b20791baeb89f208904c46a24369df62e.tar.bz2
bcfg2-9b97a18b20791baeb89f208904c46a24369df62e.zip
add a prefix nob to control file locations
(Logical change 1.316) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1291 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/SSHbase.py')
-rw-r--r--src/lib/Server/Plugins/SSHbase.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py
index 32345d5d6..4fc670dea 100644
--- a/src/lib/Server/Plugins/SSHbase.py
+++ b/src/lib/Server/Plugins/SSHbase.py
@@ -37,14 +37,18 @@ class SSHbase(Plugin):
def __init__(self, core, datastore):
Plugin.__init__(self, core, datastore)
self.repository = DirectoryBacked(self.data, self.core.fam)
+ try:
+ prefix = open("%s/%s" % (self.data, prefix)).read().strip()
+ except IOError:
+ prefix = ''
self.Entries = {'ConfigFile':
- {'/etc/ssh/ssh_known_hosts':self.build_skn,
- '/etc/ssh/ssh_host_dsa_key':self.build_hk,
- '/etc/ssh/ssh_host_rsa_key':self.build_hk,
- '/etc/ssh/ssh_host_dsa_key.pub':self.build_hk,
- '/etc/ssh/ssh_host_rsa_key.pub':self.build_hk,
- '/etc/ssh/ssh_host_key':self.build_hk,
- '/etc/ssh/ssh_host_key.pub':self.build_hk}}
+ {prefix + '/etc/ssh/ssh_known_hosts':self.build_skn,
+ prefix + '/etc/ssh/ssh_host_dsa_key':self.build_hk,
+ prefix + '/etc/ssh/ssh_host_rsa_key':self.build_hk,
+ prefix + '/etc/ssh/ssh_host_dsa_key.pub':self.build_hk,
+ prefix + '/etc/ssh/ssh_host_rsa_key.pub':self.build_hk,
+ prefix + '/etc/ssh/ssh_host_key':self.build_hk,
+ prefix + '/etc/ssh/ssh_host_key.pub':self.build_hk}}
self.ipcache = {}
self.domains = ['mcs.anl.gov', 'bgl.mcs.anl.gov', 'globus.org', 'uc.teragrid.org']