Commit 370bd184 authored by Jérome Perrin's avatar Jérome Perrin

slaprunner: allow to configure the window title by using 'instance-name' parameter

parent 370556e6
...@@ -46,7 +46,7 @@ mode = 0644 ...@@ -46,7 +46,7 @@ mode = 0644
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg url = ${:_profile_base_location_}/instance-runner.cfg
output = ${buildout:directory}/template-runner.cfg.in output = ${buildout:directory}/template-runner.cfg.in
md5sum = dbaa5e5838d15a7ec2754368870bc951 md5sum = bdd3eeda626b9a7dd6495f499980ce2f
mode = 0644 mode = 0644
[template-runner-import-script] [template-runner-import-script]
...@@ -121,7 +121,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_} ...@@ -121,7 +121,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
[template-slapos-cfg] [template-slapos-cfg]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename} url = ${:_profile_base_location_}/template/${:filename}
md5sum = c490563b831fc959a09b4b233263a6c6 md5sum = f406b91c5b0261b198a1c1930c195071
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = slapos.cfg.in filename = slapos.cfg.in
download-only = true download-only = true
......
...@@ -108,6 +108,10 @@ ...@@ -108,6 +108,10 @@
"description": "Number of clones to be deployed when a resilient runner, if missing a single clone is provided. Its value can be 1 or 2", "description": "Number of clones to be deployed when a resilient runner, if missing a single clone is provided. Its value can be 1 or 2",
"type": "integer", "type": "integer",
"enum": [1, 2] "enum": [1, 2]
} },
"instance-name": {
"description": "Name of the instance, to show in the window title",
"type": "string"
},
} }
} }
...@@ -185,6 +185,7 @@ minishell_history_file = $${directory:etc}/.minishell_history ...@@ -185,6 +185,7 @@ minishell_history_file = $${directory:etc}/.minishell_history
software_info_json = $${runnerdirectory:home}/software_info.json software_info_json = $${runnerdirectory:home}/software_info.json
instance_info_json = $${runnerdirectory:home}/instance_info.json instance_info_json = $${runnerdirectory:home}/instance_info.json
path = $${shell:path} path = $${shell:path}
instance_name = $${slap-parameter:instance-name}
#--------------------------- #---------------------------
...@@ -496,6 +497,7 @@ auto-deploy = false ...@@ -496,6 +497,7 @@ auto-deploy = false
auto-deploy-instance = true auto-deploy-instance = true
autorun = false autorun = false
monitor-port = 9684 monitor-port = 9684
instance-name =
[monitor-parameters] [monitor-parameters]
port = $${slap-parameter:monitor-port} port = $${slap-parameter:monitor-port}
......
...@@ -21,26 +21,31 @@ plone.recipe.command = 1.1 ...@@ -21,26 +21,31 @@ plone.recipe.command = 1.1
pycrypto = 2.6.1 pycrypto = 2.6.1
slapos.recipe.download = 1.0.dev-r4053 slapos.recipe.download = 1.0.dev-r4053
slapos.recipe.template = 2.6 slapos.recipe.template = 2.6
slapos.toolbox = 0.46.1 slapos.toolbox = 0.50
smmap = 0.9.0 smmap = 0.9.0
z3c.recipe.scripts = 1.0.1 z3c.recipe.scripts = 1.0.1
# Required by: # Required by:
# slapos.toolbox==0.46.1 # slapos.toolbox==0.50
GitPython = 0.3.5 GitPython = 0.3.5
# Required by: # Required by:
# slapos.toolbox==0.46.1 # slapos.toolbox==0.50
atomize = 0.2.0 atomize = 0.2.0
# Required by: # Required by:
# slapos.toolbox==0.46.1 # slapos.toolbox==0.50
feedparser = 5.1.3 feedparser = 5.1.3
# Required by: # Required by:
# slapos.toolbox==0.46.1 # slapos.toolbox==0.50
lockfile = 0.10.2 lockfile = 0.10.2
# Required by: # Required by:
# slapos.toolbox==0.45.3 # slapos.toolbox==0.50
paramiko = 1.15.2 paramiko = 1.15.2
# Required by:
# slapos.toolbox==0.50
rpdb = 0.1.5
...@@ -36,6 +36,7 @@ knowledge0_cfg = {{ slaprunner['knowledge0_file'] }} ...@@ -36,6 +36,7 @@ knowledge0_cfg = {{ slaprunner['knowledge0_file'] }}
minishell_cwd_file = {{ slaprunner['minishell_cwd_file'] }} minishell_cwd_file = {{ slaprunner['minishell_cwd_file'] }}
minishell_history_file = {{ slaprunner['minishell_history_file'] }} minishell_history_file = {{ slaprunner['minishell_history_file'] }}
path = {{ slaprunner['path'] }} path = {{ slaprunner['path'] }}
instance_name = {{ slaprunner['instance_name'] }}
[slapproxy] [slapproxy]
host = {{ slaprunner['ipv4'] }} host = {{ slaprunner['ipv4'] }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment