Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if s3_grains_url %}
- # Sync the grains from S3 if the pillar value exists.
- s3_grains_file:
- file:
- - managed
- - name: '/etc/salt/grains'
- - source: '{{ s3_grains_url }}'
- - source_hash: '{{ s3_grains_sha1 }}'
- - user: 'root'
- - group: 'root'
- - mode: 0400
- # Inspect the process tree to kill the current salt-call invocation and start a fresh highstate run.
- restart_salt_run:
- cmd.run:
- - user: 'root'
- - cwd: '/root'
- - shell: '/bin/bash'
- - name: |
- pkill --signal SIGTERM "[s]alt-call" && \
- salt-call state.highstate > /tmp/grains_reload
- - onchanges:
- - file: '/etc/salt/grains'
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement