Fix generation of master minion.d/grains.conf.

Remove a comment that disabled the redirection of output destined for
`/etc/salt/minion.d/grains.conf`. Must have been a commented added to
debug the generation of the line, to view it on `STDOUT`.
This commit is contained in:
Alan Gutierrez
2015-11-16 16:37:56 -05:00
parent 3a07af0b28
commit c1c789aea6

View File

@@ -33,7 +33,7 @@ function env_to_salt {
local value=${!env_key}
if [[ -n "${value}" ]]; then
# Note this is yaml, so indentation matters
cat <<EOF # >>/etc/salt/minion.d/grains.conf
cat <<EOF >>/etc/salt/minion.d/grains.conf
${key}: '$(echo "${value}" | sed -e "s/'/''/g")'
EOF
fi