Commit 4d378b92 authored by Jérome Perrin's avatar Jérome Perrin

software/nginx-push-stream: use switch-softwaretype

softwaretype recipe is deprecated
parent 430b1b86
[template] [template]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = eb4c69df9a8dbb94fb76d0a6c11e360f md5sum = 509605f8222f92aa62b6cb4a078a78df
[template-nginx-configuration] [template-nginx-configuration]
filename = template-nginx.cfg.in filename = template-nginx.cfg.in
...@@ -8,4 +8,4 @@ md5sum = 022e4b53e1b2db16c4e518fe76f638fa ...@@ -8,4 +8,4 @@ md5sum = 022e4b53e1b2db16c4e518fe76f638fa
[template-nginx] [template-nginx]
filename = instance-nginx.cfg.in filename = instance-nginx.cfg.in
md5sum = a3e1e8638c6078b0d3f60c304c2d70f7 md5sum = 565deec1e9678485cc8e542a54f5d076
...@@ -6,9 +6,6 @@ parts = ...@@ -6,9 +6,6 @@ parts =
extends = ${monitor-template:rendered} extends = ${monitor-template:rendered}
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[directory] [directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
...@@ -40,8 +37,8 @@ output = $${directory:etc}/nginx.cfg ...@@ -40,8 +37,8 @@ output = $${directory:etc}/nginx.cfg
mode = 0600 mode = 0600
access-log = $${directory:log}/nginx-access.log access-log = $${directory:log}/nginx-access.log
error-log = $${directory:log}/nginx-error.log error-log = $${directory:log}/nginx-error.log
ip = $${slap-network-information:global-ipv6} ip = $${slap-configuration:ipv6-random}
local-ip = $${slap-network-information:local-ipv4} local-ip = $${slap-configuration:ipv4-random}
port = 9443 port = 9443
base-url = https://[$${nginx-configuration:ip}]:$${nginx-configuration:port} base-url = https://[$${nginx-configuration:ip}]:$${nginx-configuration:port}
......
...@@ -7,9 +7,9 @@ develop-eggs-directory = ${buildout:develop-eggs-directory} ...@@ -7,9 +7,9 @@ develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true offline = true
[switch-softwaretype] [switch-softwaretype]
recipe = slapos.cookbook:softwaretype recipe = slapos.cookbook:switch-softwaretype
default = $${:nginx} default = dynamic-template-nginx:rendered
nginx = $${dynamic-template-nginx:rendered} RootSoftwareInstance = $${:default}
[dynamic-template-nginx] [dynamic-template-nginx]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
...@@ -17,20 +17,10 @@ template = ${template-nginx:output} ...@@ -17,20 +17,10 @@ template = ${template-nginx:output}
rendered = $${buildout:parts-directory}/$${:_buildout_section_name_}/$${:filename} rendered = $${buildout:parts-directory}/$${:_buildout_section_name_}/$${:filename}
filename = instance-nginx.cfg filename = instance-nginx.cfg
[slap-connection] [slap-configuration]
computer-id = $${slap_connection:computer_id} recipe = slapos.cookbook:slapconfiguration
partition-id = $${slap_connection:partition_id} computer = $${slap-connection:computer-id}
server-url = $${slap_connection:server_url} partition = $${slap-connection:partition-id}
software-release-url = $${slap_connection:software_release_url} url = $${slap-connection:server-url}
key-file = $${slap_connection:key_file} key = $${slap-connection:key-file}
cert-file = $${slap_connection:cert_file} cert = $${slap-connection:cert-file}
[instance-parameter]
# Fetches parameters defined in SlapOS Master for this instance.
# Always the same.
recipe = slapos.cookbook:slapconfiguration.serialised
computer = $${slap_connection:computer_id}
partition = $${slap_connection:partition_id}
url = $${slap_connection:server_url}
key = $${slap_connection:key_file}
cert = $${slap_connection:cert_file}
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