-
-
Save SEJeff/c81792f130a4ad72d176 to your computer and use it in GitHub Desktop.
Initial deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For new deployments, do an initial checkout so that circus comes up and | |
# all is well in the world, afterwards, jenkins will overwrite all of this | |
{% if not salt["cmd.run_stdout"]("ls -d /srv/http/appname/src/src-appname") %} | |
git@giturl:apprepo.git: | |
git.latest: | |
- rev: master | |
- target: /srv/http/appname/src/salt-master-deploy | |
- runas: appuser | |
- require: | |
- file: /home/appuser/.ssh/id_rsa | |
/srv/http/appname/src/src-appname: | |
file.symlink: | |
- target: /srv/http/appname/src/salt-master-deploy | |
- require: | |
- git.latest: git@giturl:apprepo.git | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment