summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Bradshow <bradshaw@mcs.anl.gov>2006-11-22 19:31:03 +0000
committerRick Bradshow <bradshaw@mcs.anl.gov>2006-11-22 19:31:03 +0000
commit12bede41377f77632f54248192e8ff0cdd30748b (patch)
tree786d6f6d4926152f1424a9d60a9657cc126bf414
parent1e4c05e59f86e64e437fcd69ce30037e9d0ca168 (diff)
downloadbcfg2-12bede41377f77632f54248192e8ff0cdd30748b.tar.gz
bcfg2-12bede41377f77632f54248192e8ff0cdd30748b.tar.bz2
bcfg2-12bede41377f77632f54248192e8ff0cdd30748b.zip
I hacked the Chiba generator so that ccsched will get a static interfaces file instead of a generated one. this has caused probelms for a long time and now I had
a good reason to fix it. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2516 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/Chiba.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Chiba.py b/src/lib/Server/Plugins/Chiba.py
index 92ad05ab5..c633272fc 100644
--- a/src/lib/Server/Plugins/Chiba.py
+++ b/src/lib/Server/Plugins/Chiba.py
@@ -35,5 +35,9 @@ class Chiba(Bcfg2.Server.Plugin.Plugin):
except socket.gaierror:
self.logger.error("Failed to resolve %s"% myriname)
raise Bcfg2.Server.Plugin.PluginExecutionError, (myriname, 'lookup')
- entry.text = self.repo.entries['interfaces-template'].data % myriaddr
+ if metadata.hostname.split('.')[0] == 'ccsched':
+ entry.text = self.repo.entries['interfaces-template.ccsched'].data % myriaddr
+ else:
+ entry.text = self.repo.entries['interfaces-template'].data % myriaddr
+