2
0
salt-formula/salt
Matthew X. Economou 827ed47a25 Filter all calls to formulas_git_opt through load_yaml
Jinja macros are not actually functions.  The only thing they can return
is a string.  In order to return structured data, the callee must
serialize it, and the caller must deserialize it.  This state formula
uses YAML as the intermediary, hence the occurrence of both the
`|yaml` (callee) and `|load_yaml` (caller) filters in its code.

The post-render "mapping values are not allowed here" error in
*salt/formulas.sls* or the broken rendering of
*salt/files/master.d/f_defaults.conf* happens because invocations of the
`formulas_git_opt` macro in several Jinja `set` statements do not get
deserialized, resulting in the trailing newline followed by three dot
characters (`...`), which YAML uses to signal the end of a document.
Correcting these rendering errors requires adding the necessary
deserialization code at those locations (i.e., filtering the macro call
through `|load_yaml`).
2015-09-03 14:56:45 -04:00
..
files Fixed pillar_roots generation for salt-master. 2015-08-06 11:37:55 +02:00
gitfs Fixed conflict with git-formula by allowing either inclusion of formula to install git dependency or specify a package name to install with a custom state ID. 2015-09-01 18:33:18 -05:00
pkgrepo Remove hardcoded paths with {{ slspath }} variable 2015-06-09 23:05:49 +02:00
api.sls Merge pull request #166 from irtnog/enable-salt-api-service 2015-08-09 07:58:04 -04:00
cloud.sls Remove hardcoded paths with {{ slspath }} variable 2015-06-09 23:05:49 +02:00
defaults.yaml Fixed conflict with git-formula by allowing either inclusion of formula to install git dependency or specify a package name to install with a custom state ID. 2015-09-01 18:33:18 -05:00
formulas.jinja Filter all calls to formulas_git_opt through load_yaml 2015-09-03 14:56:45 -04:00
formulas.sls Filter all calls to formulas_git_opt through load_yaml 2015-09-03 14:56:45 -04:00
map.jinja Fixed conflict with git-formula by allowing either inclusion of formula to install git dependency or specify a package name to install with a custom state ID. 2015-09-01 18:33:18 -05:00
master.sls Remove hardcoded paths with {{ slspath }} variable 2015-06-09 23:05:49 +02:00
minion.sls Remove hardcoded paths with {{ slspath }} variable 2015-06-09 23:05:49 +02:00
ssh.sls Remove hardcoded paths with {{ slspath }} variable 2015-06-09 23:05:49 +02:00
standalone.sls Remove hardcoded paths with {{ slspath }} variable 2015-06-09 23:05:49 +02:00
syndic.sls Fix syntax error 2015-06-19 15:33:16 -06:00