Advertisement
Guest User

Untitled

a guest
Sep 26th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. root@salt# (git::master) cat defaults/pyapps/default-webapp/install.sls
  2. <%
  3. app_name = globals().get('_template_uri').split('/')[1]
  4. %>
  5. ${app_name}:
  6. git.latest:
  7. - name: git@git-host:buildout/${app_name}
  8. - target: /opt/share/${app_name}
  9. - rev: ${pillar['hosts'][grains['id']]['env'].upper()}
  10. - submodules: True
  11. - onlyif: ls /root/.ssh/id_rsa.deploy
  12. cmd.wait:
  13. - cwd: /opt/share/${app_name}
  14. - name: '/usr/local/bin/buildout init && cp -f profiles/buildout-sample.cfg buildout.cfg'
  15. - watch:
  16. - git: ${app_name}
  17. - unless: ls /opt/share/${app_name}/buildout.cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement