View difference between Paste ID: dRSaseFS and Y64brDte
SHOW: | | - or go back to the newest paste.
1
newclient_git:
2
  git.latest:
3
    - require:
4
      - file: '{{ pillar['home'] }}/.ssh/id_rsa_deploy'
5
      - file: '{{ pillar['home'] }}/.ssh/config'
6
    - target: {{ pillar['home'] }}/newclient
7
    - runas: {{ pillar['user'] }}
8
    - rev: master
9
    - always_fetch: True
10
    - force_checkout: True
11
    - name: git@github.com:ouruser/newclient.git
12
    - submodules: True
13
14
  cmd.wait:
15
    - name: 'make reinstall'
16
    - cwd: {{ pillar['home'] }}/newclient
17
    - user: {{ pillar['user'] }}
18
    - watch:
19
      - git.latest: newclient_git
20
21-
{% set test = salt['cmd.run']('echo test') %}
21+
22
  cmd.run:
23
    - name: echo {{ salt['cmd.run']('echo test') }} > /tmp/gitversion
24-
    - name: echo {{ test }} > /tmp/gitversion
24+
25
      - git.latest: newclient_git