The opposite is true : pillar without quotes results in config file with quotes, which makes the config fail.
This is annoying, as the formula's pillar.examples contains lines with unquoted numeric values, so these result in a config file with quotes around these values, with breaks the config.
I am not proposing a PR to fix this, as I don't understand the logic in iscsi/initiator/config/files/default/open-iscsi.tmpl :
{{ shift }}{{ key }} = {{ value ~ '\n' if value is string else '"' ~ value ~ '"\n' }}
Steps to reproduce the bug
Expected behaviour
Attempts to fix the bug
Quoting all values in the pillars fixes this, for example :
Your setup
Formula commit hash / release tag
ab279d6f064067a1cfa3a6e0f50c003c708d3bd6
Versions reports (master & minion)
Pillar / config used
See below
Bug details
Describe the bug
When using quotes in pillars, the formula generates config without quotes.
For example :
Results in :
in the config file.
The opposite is true : pillar without quotes results in config file with quotes, which makes the config fail.
This is annoying, as the formula's
pillar.examples
contains lines with unquoted numeric values, so these result in a config file with quotes around these values, with breaks the config.I am not proposing a PR to fix this, as I don't understand the logic in
iscsi/initiator/config/files/default/open-iscsi.tmpl
:Steps to reproduce the bug
Expected behaviour
Attempts to fix the bug
Quoting all values in the pillars fixes this, for example :
node.session.timeo.replacement_timeout: '120'
is OK, but :
node.session.timeo.replacement_timeout: 120
(as seen in
pillar.example
) is wrong.Additional context