diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-09-16 15:52:56 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-09-16 15:52:56 +0000 |
commit | 9b97a18b20791baeb89f208904c46a24369df62e (patch) | |
tree | 2c34fd1a9d0e10823f0c0ebfba6760fa4ac20494 /src/lib/Server/Plugins | |
parent | 6c1a1819c21966511a1b15ae3ddb329ec4b05e8b (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Server/Plugins/SSHbase.py | 18 |
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'] |