mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-17 07:49:01 +00:00
perf: 支持发布机仅初始化配置
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user