|
@@ -48,6 +48,7 @@ class CustomServiceOrchestrator():
|
|
|
PRE_HOOK_PREFIX="before"
|
|
|
POST_HOOK_PREFIX="after"
|
|
|
|
|
|
+
|
|
|
def __init__(self, config, controller):
|
|
|
self.config = config
|
|
|
self.tmp_dir = config.get('agent', 'prefix')
|
|
@@ -57,6 +58,7 @@ class CustomServiceOrchestrator():
|
|
|
'status_command_stdout.txt')
|
|
|
self.status_commands_stderr = os.path.join(self.tmp_dir,
|
|
|
'status_command_stderr.txt')
|
|
|
+ self.public_fqdn = hostname.public_hostname()
|
|
|
# cache reset will be called on every agent registration
|
|
|
controller.registration_listeners.append(self.file_cache.reset)
|
|
|
# Clean up old status command files if any
|
|
@@ -197,7 +199,7 @@ class CustomServiceOrchestrator():
|
|
|
"""
|
|
|
# Perform few modifications to stay compatible with the way in which
|
|
|
# site.pp files are generated by manifestGenerator.py
|
|
|
- public_fqdn = hostname.public_hostname()
|
|
|
+ public_fqdn = self.public_fqdn
|
|
|
command['public_hostname'] = public_fqdn
|
|
|
# Now, dump the json file
|
|
|
command_type = command['commandType']
|