0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-23 16:04:45 +01:00
Commit Graph

21 Commits

Author SHA1 Message Date
noelmcloughlin
e313401cd6 fix(jinja): stop repeating user/group args 2020-09-11 23:27:30 +01:00
noelmcloughlin
d61e671fa0 fix(windows): group arg not supported on windows 2020-09-11 23:00:33 +01:00
noelmcloughlin
0c591bba95 fix(windows): git.latest(parallel:true) does not work 2020-09-11 22:03:25 +01:00
N
dd37869d28
fix(jinja): replace version_cmp with grains lookup 2020-03-19 13:16:00 +00:00
N
325f6c061b
fix(jinja): replace version_cmp with grains lookup 2020-03-19 12:45:35 +00:00
nb
eda88bd1a6 feat(formulas): git.latest parallelization 2019-12-18 11:30:37 +11:00
nb
9362277f2a feat(per-formula-opts): configure git.latest state per formula 2019-12-04 09:48:35 +11:00
N
beb0e85b04
fix(perms): some os have custom user/root 2019-08-01 13:13:27 +01:00
Imran Iqbal
ab765e3305
Revert "shutup debug output from unless"
This reverts commit 2a0f4617db.

* Close 
2019-04-16 23:57:20 +01:00
Imran Iqbal
922135df31 Improve reformating of formulas.sls Jinja 2019-02-15 04:28:51 +00:00
Imran Iqbal
f76364c1b7 Reformat formulas.sls Jinja to make it easier to work with 2019-02-15 01:33:18 +00:00
N
2a0f4617db
shutup debug output from unless 2018-12-20 21:08:15 +00:00
N
8a6badf714 Stop noise from 'test -e' check' 2018-09-18 22:35:38 +01:00
myii
91b666c75f Improve limitations related to git.latest in salt.formulas ()
* Ensure options for formulas `git.latest` are also based on defaults

* Prevent erroneous remote tracking branch modification by `salt.formulas` 

* Allow multiple envs to use the same gitdir for `salt.formulas`

* Ensure `gitdir` original branch is checked out after formulas `git.latest`

* Fix erroneous comment re: merging in `salt` pillar
2018-06-10 11:18:20 +02:00
Matthew X. Economou
e8021220b8 Revert PR
This restores the original structure/behavior of the
`salt_formulas` Pillar key.
2016-02-16 10:20:42 -05:00
Thomas Larsen
d1cbec3fe2 Added support for downloading formulas from multiple baseurls into the same environment. 2016-02-08 13:45:09 +00:00
abednarik
8b39b37762 Replace deprecated iteritems() with items() 2015-11-16 22:05:36 -03:00
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
Petr Demin
eb421c676f formulas.jinja: python 2.6 support 2015-06-17 17:51:40 +03:00
Niels Abspoel
14c262fdad fix empty formulas list in pillar with empty dic. 2015-05-17 15:39:49 +02:00
Raphaël Hertzog
f46b4f29d8 Add new “salt.formulas” state to manage salt formulas
This state downloads formulas from git repositories and ensures
that they are recorded in the file_roots setting.
2014-12-23 17:24:19 +01:00