Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo_example_com:
- file.managed:
- - name: /etc/nginx/sites-enabled/foo.example.com
- - source: salt://vhosts/foo_example_com/nginx_config
- - user: root
- - group: root
- - mode: 644
- git.latest:
- - name: git@bitbucket.org:scjudd/foo.example.com.git
- {% if grains['host'] == 'stage' %}
- - rev: staging
- {% else %}
- - rev: master
- {% endif %}
- - target: /var/www/foo.example.com
- - user: www-data
- - submodules: True
- - force: False
- - require:
- - pkg: 'git'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement