Reputation: 5657
Using salt, how do you unpack a tar.gz from a private github repository release?
So far I've not found any documentation that addresses this use case.
Specifically, if I understand correctly, passing a token vai a HTTP header - however that could be mistaken.
Upvotes: 0
Views: 728
Reputation: 7340
Since the git
state allows us authenticate to a Git repository, I can suggest a 2 step process.
Example:
clone-git-repo:
git.latest:
- name: https://mygitrepo.com/user/myrepo.git
- target: /home/user/myrepo
- https_user: username
- https_pass: secret
extract-archive:
archive.extracted:
- name: /tmp
- source: file:///home/user/myrepo/archive.tar.gz
Upvotes: 1