salt icon indicating copy to clipboard operation
salt copied to clipboard

Recursive directory management doesn't apply templates

Open andrewclegg opened this issue 14 years ago • 6 comments

OS: Centos 6.3

Example usage:

/opt/elasticsearch:
    file.recurse:
        - source: salt://dist/elasticsearch/0.19.10
        - user: elasticsearch
        - group: elasticsearch
        - include_empty: True
        - template: jinja
        - require:
            - user: elasticsearch

The docs suggest that this should work, but when I tried it, the output files on the minion still had unprocessed jinja directives in.

andrewclegg avatar Nov 26 '12 12:11 andrewclegg

yes, this should work, what salt version are you running?

thatch45 avatar Nov 26 '12 17:11 thatch45

0.10.4 installed from EPEL.

I've observed this happening twice now -- I can try to come up with a small illustrative example that demonstrates it happening (on my system at least).

On 26 November 2012 17:40, Thomas S Hatch [email protected] wrote:

yes, this should work, what salt version are you running?

— Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt/issues/2708#issuecomment-10725368.

http://tinyurl.com/andrew-clegg-linkedin | http://twitter.com/andrew_clegg

andrewclegg avatar Nov 26 '12 20:11 andrewclegg

ok, I thought this was added in 0.10.5, I will confirm

thatch45 avatar Nov 26 '12 21:11 thatch45

Ok, template was added in 0.10.5, can you update the minion and give it another go? The default documentation is set to the latest.

thatch45 avatar Nov 27 '12 05:11 thatch45

Sorry, haven't had chance to do manual install yet to test this (epel is still on 0.10.4 I think) but I assume it'll be fine when I upgrade. Thanks.

On Tuesday, 27 November 2012, Thomas S Hatch wrote:

Ok, template was added in 0.10.5, can you update the minion and give it another go? The default documentation is set to the latest.

— Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt/issues/2708#issuecomment-10746482.

http://tinyurl.com/andrew-clegg-linkedin | http://twitter.com/andrew_clegg

andrewclegg avatar Dec 01 '12 10:12 andrewclegg

Epel-testing is at 0.10.5, and it should be in Epel this week too :)

On Sat, Dec 1, 2012 at 3:41 AM, Andrew Clegg [email protected]:

Sorry, haven't had chance to do manual install yet to test this (epel is still on 0.10.4 I think) but I assume it'll be fine when I upgrade. Thanks.

On Tuesday, 27 November 2012, Thomas S Hatch wrote:

Ok, template was added in 0.10.5, can you update the minion and give it another go? The default documentation is set to the latest.

— Reply to this email directly or view it on GitHub< https://github.com/saltstack/salt/issues/2708#issuecomment-10746482>.

http://tinyurl.com/andrew-clegg-linkedin | http://twitter.com/andrew_clegg

—

Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt/issues/2708#issuecomment-10915753.

herlo avatar Dec 01 '12 16:12 herlo