perf: 支持发布机仅初始化配置

This commit is contained in:
Eric
2024-03-15 13:57:22 +08:00
committed by Bryan
parent d71c41e384
commit d8a891a7d7
6 changed files with 19 additions and 9 deletions

View File

@@ -17,10 +17,12 @@ CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
class DeployAppletHostManager:
def __init__(self, deployment: AppletHostDeployment, applet: Applet = None):
def __init__(self, deployment: AppletHostDeployment, applet: Applet = None,
install_applets: bool = True, **kwargs):
self.deployment = deployment
self.applet = applet
self.run_dir = self.get_run_dir()
self.install_applets = bool(install_applets)
@staticmethod
def get_run_dir():
@@ -70,6 +72,7 @@ class DeployAppletHostManager:
play["vars"]["BOOTSTRAP_TOKEN"] = bootstrap_token
play["vars"]["HOST_ID"] = host_id
play["vars"]["HOST_NAME"] = hostname
play["vars"]["INSTALL_APPLETS"] = self.install_applets
return plays
return self._generate_playbook("playbook.yml", handler)

View File

@@ -15,6 +15,7 @@
RDS_MaxDisconnectionTime: 60000
RDS_RemoteAppLogoffTimeLimit: 0
TinkerInstaller: Tinker_Installer.exe
INSTALL_APPLETS: true
tasks:
- name: Install RDS-RD-Server (RDS)
@@ -273,3 +274,4 @@
ansible.windows.win_powershell:
script: |
tinkerd install all
when: INSTALL_APPLETS