perf: update applet host deploy

pull/9046/head
Eric 2022-11-10 18:20:39 +08:00
parent ba3f2099e6
commit 5494d2fd60
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ class DeployAppletHostManager:
bootstrap_token = settings.BOOTSTRAP_TOKEN
host_id = str(self.deployment.host.id)
if not base_site_url:
base_site_url = "localhost:8080"
base_site_url = "http://localhost:8080"
with open(playbook_src) as f:
plays = yaml.safe_load(f)
for play in plays:
play['vars'].update(self.deployment.host.deploy_options)
play['vars']['DownloadHost'] = base_site_url + '/download/'
play['vars']['DownloadHost'] = base_site_url + '/download'
play['vars']['CORE_HOST'] = base_site_url
play['vars']['BOOTSTRAP_TOKEN'] = bootstrap_token
play['vars']['HOST_ID'] = host_id