Commit 62dea062 authored by Xavier Thompson's avatar Xavier Thompson

Fix indentation/spacing of some inline options

parent f20f2c06
Pipeline #21183 failed with stage
in 0 seconds
...@@ -38,8 +38,8 @@ recipe = slapos.recipe.template ...@@ -38,8 +38,8 @@ recipe = slapos.recipe.template
output = ${buildout:bin-directory}/${:_buildout_section_name_} output = ${buildout:bin-directory}/${:_buildout_section_name_}
inline = inline =
#!/bin/sh -e #!/bin/sh -e
. ${gowork:env.sh} . ${gowork:env.sh}
exec helloweb "$@" exec helloweb "$@"
# -*- python -*- # -*- python -*-
...@@ -101,5 +101,5 @@ recipe = slapos.recipe.template ...@@ -101,5 +101,5 @@ recipe = slapos.recipe.template
output = ${buildout:bin-directory}/${:_buildout_section_name_} output = ${buildout:bin-directory}/${:_buildout_section_name_}
inline = inline =
#!/bin/sh -e #!/bin/sh -e
export BUNDLE_GEMFILE=${helloweb-ruby-bundle:path}/Gemfile export BUNDLE_GEMFILE=${helloweb-ruby-bundle:path}/Gemfile
exec ${bundler:bundle} exec sh -c 'helloweb.rb "$@"' ${:_buildout_section_name_} "$@" exec ${bundler:bundle} exec sh -c 'helloweb.rb "$@"' ${:_buildout_section_name_} "$@"
...@@ -11,7 +11,8 @@ parts = ...@@ -11,7 +11,8 @@ parts =
[template] [template]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
inline =[buildout] inline =
[buildout]
eggs-directory = ${buildout:eggs-directory} eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = ${buildout:develop-eggs-directory}
parts = runTestSuite parts = runTestSuite
......
...@@ -18,7 +18,7 @@ md5sum = ce9c231ec47eb8f528345add21cb7822 ...@@ -18,7 +18,7 @@ md5sum = ce9c231ec47eb8f528345add21cb7822
[template-balancer] [template-balancer]
filename = instance-balancer.cfg.in filename = instance-balancer.cfg.in
md5sum = 95ac13b95bc9d5356fffe9c62dec38cc md5sum = da8399562377b472c9488a337d0230dc
[template-apache-backend-conf] [template-apache-backend-conf]
filename = apache-backend.conf.in filename = apache-backend.conf.in
......
...@@ -125,7 +125,7 @@ crl = ${directory:apache-conf}/crl.pem ...@@ -125,7 +125,7 @@ crl = ${directory:apache-conf}/crl.pem
[simplefile] [simplefile]
< = jinja2-template-base < = jinja2-template-base
inline ={{ '{{ content }}' }} inline = {{ '{{ content }}' }}
{% macro simplefile(section_name, file_path, content, mode='') -%} {% macro simplefile(section_name, file_path, content, mode='') -%}
{% set content_section_name = section_name ~ '-content' -%} {% set content_section_name = section_name ~ '-content' -%}
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
[instance-theia] [instance-theia]
_update_hash_filename_ = instance-theia.cfg.jinja.in _update_hash_filename_ = instance-theia.cfg.jinja.in
md5sum = c9cd1d4c61733fb56078a99de9062800 md5sum = 7ea72f2300dd2019c2d27549e7128dec
[instance] [instance]
_update_hash_filename_ = instance.cfg.in _update_hash_filename_ = instance.cfg.in
...@@ -23,11 +23,11 @@ md5sum = af4d92a95dc25c2f64ddbd634996e46c ...@@ -23,11 +23,11 @@ md5sum = af4d92a95dc25c2f64ddbd634996e46c
[instance-import] [instance-import]
_update_hash_filename_ = instance-import.cfg.jinja.in _update_hash_filename_ = instance-import.cfg.jinja.in
md5sum = 6e5092422c97c21f02f7b7b3ff015367 md5sum = 29bc1c5b76d20fd46430dff5c72d192b
[instance-export] [instance-export]
_update_hash_filename_ = instance-export.cfg.jinja.in _update_hash_filename_ = instance-export.cfg.jinja.in
md5sum = 31a94c7a5ef18dbad807c0b57dfe6e0c md5sum = e2630148998c3cdf6d03b5e884d7f464
[instance-resilient] [instance-resilient]
_update_hash_filename_ = instance-resilient.cfg.jinja _update_hash_filename_ = instance-resilient.cfg.jinja
......
...@@ -75,7 +75,7 @@ config-command = $${export-promise-script:output} ...@@ -75,7 +75,7 @@ config-command = $${export-promise-script:output}
[initial-export-exitcode-file] [initial-export-exitcode-file]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
output = $${theia-export-script:exitcode-file} output = $${theia-export-script:exitcode-file}
inline =0 inline = 0
once = $${:output} once = $${:output}
[export-promise-script] [export-promise-script]
......
...@@ -137,7 +137,7 @@ config-command = $${import-promise-script:output} ...@@ -137,7 +137,7 @@ config-command = $${import-promise-script:output}
[initial-import-exitcode-file] [initial-import-exitcode-file]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
output = $${theia-import-script:exitcode-file} output = $${theia-import-script:exitcode-file}
inline =0 inline = 0
once = $${:output} once = $${:output}
[import-promise-script] [import-promise-script]
......
...@@ -402,7 +402,9 @@ base-url = $${theia-service:base-url} ...@@ -402,7 +402,9 @@ base-url = $${theia-service:base-url}
[theia-shell] [theia-shell]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
output = $${directory:bin}/$${:_buildout_section_name_} output = $${directory:bin}/$${:_buildout_section_name_}
inline ={% raw %}#!{{ bash }} inline
{% raw -%}
#!{{ bash }}
SHELL=$BASH SHELL=$BASH
# when running interactively, activate slapos configuration and reset GIT_EXEC_PATH to workaround https://github.com/eclipse-theia/theia/issues/7555 # when running interactively, activate slapos configuration and reset GIT_EXEC_PATH to workaround https://github.com/eclipse-theia/theia/issues/7555
if [ $# = 0 ]; then if [ $# = 0 ]; then
...@@ -462,7 +464,7 @@ inline = ...@@ -462,7 +464,7 @@ inline =
[embedded-instance-parameters] [embedded-instance-parameters]
recipe = slapos.recipe.template recipe = slapos.recipe.template
output = $${directory:project}/$${:_buildout_section_name_}.json output = $${directory:project}/$${:_buildout_section_name_}.json
inline ={{ embedded_instance_parameters | indent(2) }} inline = {{ embedded_instance_parameters | indent(2) }}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
......
...@@ -26,7 +26,7 @@ output = $${directory:run}/log-writer ...@@ -26,7 +26,7 @@ output = $${directory:run}/log-writer
[exporter.exclude] [exporter.exclude]
recipe = slapos.recipe.template recipe = slapos.recipe.template
inline =$${directory:home}/exclude inline = $${directory:home}/exclude
output = $${directory:srv}/exporter.exclude output = $${directory:srv}/exporter.exclude
[runner-import-restore] [runner-import-restore]
......
...@@ -19,7 +19,7 @@ md5sum = f47adc5131a3096e916dbf9ef0061f50 ...@@ -19,7 +19,7 @@ md5sum = f47adc5131a3096e916dbf9ef0061f50
[template-turnserver] [template-turnserver]
filename = instance-turnserver.cfg.jinja2.in filename = instance-turnserver.cfg.jinja2.in
md5sum = b71bcc86f217cd737fc890667adb7c69 md5sum = f7ae944a28366c8888946af440d513ed
[template-insecure-turnserver] [template-insecure-turnserver]
filename = instance-insecure-turnserver.cfg.jinja2.in filename = instance-insecure-turnserver.cfg.jinja2.in
......
...@@ -17,7 +17,7 @@ ssl = ${:etc}/ssl ...@@ -17,7 +17,7 @@ ssl = ${:etc}/ssl
[file-base] [file-base]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
inline ={{ '{{ content }}' }} inline = {{ '{{ content }}' }}
{% macro simplefile(section_name, file_path, content, mode='') -%} {% macro simplefile(section_name, file_path, content, mode='') -%}
......
...@@ -43,7 +43,8 @@ extra = ...@@ -43,7 +43,8 @@ extra =
[fluentd-agent-conf] [fluentd-agent-conf]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
output = $${directory:etc}/fluentd-agent.conf output = $${directory:etc}/fluentd-agent.conf
inline ={% raw -%} inline =
{% raw -%}
<match debug.**> <match debug.**>
@type stdout @type stdout
@id stdout_output @id stdout_output
......
...@@ -50,7 +50,7 @@ md5sum = f928b9dc99f7f970caadfe7dd6f95d34 ...@@ -50,7 +50,7 @@ md5sum = f928b9dc99f7f970caadfe7dd6f95d34
[template-postfix] [template-postfix]
filename = instance-postfix.cfg.in filename = instance-postfix.cfg.in
md5sum = 5c84bbd3e60d86d153c75994679184a8 md5sum = 0b7db23344b4795c8786d5e655810b38
[template-postfix-master-cf] [template-postfix-master-cf]
filename = postfix_master.cf.in filename = postfix_master.cf.in
...@@ -86,11 +86,11 @@ md5sum = 0ac4b74436f554cd677f19275d18d880 ...@@ -86,11 +86,11 @@ md5sum = 0ac4b74436f554cd677f19275d18d880
[template-zope] [template-zope]
filename = instance-zope.cfg.in filename = instance-zope.cfg.in
md5sum = b6a07f2fab6ff9f54a7d8e7ff9e2b846 md5sum = c3e3f8cd985407931b705d15bdedc8d9
[template-balancer] [template-balancer]
filename = instance-balancer.cfg.in filename = instance-balancer.cfg.in
md5sum = afd6140a8e8dcd3f95846b546acbeba7 md5sum = 4491b256241cb4bbdfafb22ae95a3eba
[template-haproxy-cfg] [template-haproxy-cfg]
filename = haproxy.cfg.in filename = haproxy.cfg.in
......
...@@ -230,7 +230,7 @@ caucase-key = ${directory:apache-conf}/apache-caucase.pem ...@@ -230,7 +230,7 @@ caucase-key = ${directory:apache-conf}/apache-caucase.pem
[simplefile] [simplefile]
< = jinja2-template-base < = jinja2-template-base
inline ={{ '{{ content }}' }} inline = {{ '{{ content }}' }}
{% macro simplefile(section_name, file_path, content, mode='') -%} {% macro simplefile(section_name, file_path, content, mode='') -%}
{% set content_section_name = section_name ~ '-content' -%} {% set content_section_name = section_name ~ '-content' -%}
......
...@@ -100,7 +100,7 @@ recipe = slapos.cookbook:userinfo ...@@ -100,7 +100,7 @@ recipe = slapos.cookbook:userinfo
< = jinja2-template-base < = jinja2-template-base
output = ${directory:etc-postfix}/sasl_passwd output = ${directory:etc-postfix}/sasl_passwd
{% if relay -%} {% if relay -%}
inline ={{ "{{ host }} {{ sasl_credential }}" }} inline = {{ "{{ host }} {{ sasl_credential }}" }}
{%- else -%} {%- else -%}
inline = inline =
{%- endif %} {%- endif %}
......
...@@ -210,7 +210,7 @@ command-line = '${userhosts-bin:output}' ${:wrapped-command-line} ...@@ -210,7 +210,7 @@ command-line = '${userhosts-bin:output}' ${:wrapped-command-line}
[{{ section('neo-ssl-' + k[1:]) }}] [{{ section('neo-ssl-' + k[1:]) }}]
< = jinja2-template-base < = jinja2-template-base
output = ${directory:etc}/{{v}} output = ${directory:etc}/{{v}}
inline ={{'{{'}}pem}} inline = {{'{{'}}pem}}
context = key pem :pem context = key pem :pem
pem = {{dumps(storage_dict.pop(k))}} pem = {{dumps(storage_dict.pop(k))}}
...@@ -241,7 +241,7 @@ file-list = {{ parameter_dict['site-zcml'] }} ...@@ -241,7 +241,7 @@ file-list = {{ parameter_dict['site-zcml'] }}
[{{ section('zope-inituser') }}] [{{ section('zope-inituser') }}]
< = jinja2-template-base < = jinja2-template-base
output = ${directory:instance}/inituser output = ${directory:instance}/inituser
inline ={{ slapparameter_dict['inituser-login'] }}:{SHA}{{ base64.b64encode(hashlib.sha1(slapparameter_dict['inituser-password'].encode('utf-8')).digest()) }} inline = {{ slapparameter_dict['inituser-login'] }}:{SHA}{{ base64.b64encode(hashlib.sha1(slapparameter_dict['inituser-password'].encode('utf-8')).digest()) }}
once = ${:output}_done once = ${:output}_done
[zope-conf-parameter-base] [zope-conf-parameter-base]
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# not need these here). # not need these here).
[supervisord-library] [supervisord-library]
_update_hash_filename_ = supervisord.jinja2.in _update_hash_filename_ = supervisord.jinja2.in
md5sum = 5d4ef34e10d19fd726a75c9ee9a82b10 md5sum = 69b73a768ae017072d252e6e71109204
[supervisord-conf] [supervisord-conf]
_update_hash_filename_ = supervisord.conf.in _update_hash_filename_ = supervisord.conf.in
......
...@@ -53,7 +53,8 @@ wrapper-path = ${directory:bin}/{{ name }} ...@@ -53,7 +53,8 @@ wrapper-path = ${directory:bin}/{{ name }}
[supervisord-{{ name }}] [supervisord-{{ name }}]
recipe = slapos.recipe.template recipe = slapos.recipe.template
inline =[program:{{ parameter_dict['name'] }}] inline =
[program:{{ parameter_dict['name'] }}]
directory = ${buildout:directory} directory = ${buildout:directory}
command = {{ parameter_dict['command'] }} command = {{ parameter_dict['command'] }}
process_name = {{ parameter_dict['name'] }} process_name = {{ parameter_dict['name'] }}
......
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