<p>There is no much choices regarding your situation, I see two of them :</p>

<ol>
<li>You ask your dev dpt to add your jinja templating to their builds (which may be hard or even impossible)</li>
<li>You can use salt module such as <code>file.append</code> or <code>file.replace</code> to add / replace your jinja code inside (this is not very clean that's the least we can say)</li>
</ol>

<p>If you'd share an example that may help us to give some good advice</p>

CC BY-SA 3.0
2018-03-22T13:10:26.620Z
2018-03-22T15:56:05.697Z
2018-03-22T15:56:05.697Z
Pier
<p>I have an archive on my master and want to extract it on the minion. For this it is fine I use :</p>

<pre><code>  archive.extracted:
    - name:  'c:\PACKAGE'
    - source: salt://myfile.zip
    - archive_format: zip
    - enforce_toplevel: False
    - failhard: True
</code></pre>

<p>the problem is that I need to apply jinja template on some files of the zip file content.</p>

<p>But there is no template property on archive.extracted and I can't find a way to apply jinja template after it is extracted on minion server...</p>

<p>any idea ?</p>

<salt>
saltstack: archive.extracted template jinja
Dragouf
# saltstack: archive.extracted template jinja

(Asked by: username_0 on 2018-03-16)

I have an archive on my master and want to extract it on the minion. For this it is fine I use :
  archive.extracted:
    - name:  'c:\PACKAGE'
    - source: salt://myfile.zip
    - archive_format: zip
    - enforce_toplevel: False
    - failhard: True

the problem is that I need to apply jinja template on some files of the zip file content.
But there is no template property on archive.extracted and I can't find a way to apply jinja template after it is extracted on minion server...
any idea ?

**Tags:** salt


---

## 1 answers

### Answer by username_1 on 2018-03-22. Score: 1

There is no much choices regarding your situation, I see two of them :

1. You ask your dev dpt to add your jinja templating to their builds (which may be hard or even impossible)
2. You can use salt module such as `file.append` or `file.replace` to add / replace your jinja code inside (this is not very clean that's the least we can say)

If you'd share an example that may help us to give some good advice


---

