Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@salt# (git::master) cat defaults/pyapps/default-webapp/install.sls
- <%
- app_name = globals().get('_template_uri').split('/')[1]
- %>
- ${app_name}:
- git.latest:
- - name: git@git-host:buildout/${app_name}
- - target: /opt/share/${app_name}
- - rev: ${pillar['hosts'][grains['id']]['env'].upper()}
- - submodules: True
- - onlyif: ls /root/.ssh/id_rsa.deploy
- cmd.wait:
- - cwd: /opt/share/${app_name}
- - name: '/usr/local/bin/buildout init && cp -f profiles/buildout-sample.cfg buildout.cfg'
- - watch:
- - git: ${app_name}
- - unless: ls /opt/share/${app_name}/buildout.cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement