Browse Source

update concourse_worker.reset orchestrator

sjohn/nft
Sean Johnson 1 year ago
parent
commit
815d4b9417
  1. 17
      orchestrate/concourse_worker/reset.sls

17
orchestrate/concourse_worker/reset.sls

@ -8,6 +8,14 @@ stop concourse-worker:
- arg:
- 'concourse-worker'
remove concourse-worker:
salt.function:
- name: docker.rm
- tgt: 'app:builder'
- tgt_type: 'grain'
- arg:
- 'concourse-worker'
remove concourse worker state:
salt.function:
- name: cmd.shell
@ -16,10 +24,9 @@ remove concourse worker state:
- arg:
- 'rm -rf /mnt/concourse-worker-state/*'
start concourse-worker:
salt.function:
- name: docker.start
reapply app.concourse_worker:
salt.state:
- tgt: 'app:builder'
- tgt_type: 'grain'
- arg:
- 'concourse-worker'
- sls:
- app.concourse_worker
Loading…
Cancel
Save