From 402a6379b96705dec03eee02b14d062d950f4b10 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Thu, 14 Jul 2016 17:37:20 -0400 Subject: [PATCH] Add exec3 example This is meant to be easier to understand than just sleep's. --- examples/exec3.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 examples/exec3.yaml diff --git a/examples/exec3.yaml b/examples/exec3.yaml new file mode 100644 index 00000000..8ac0570e --- /dev/null +++ b/examples/exec3.yaml @@ -0,0 +1,59 @@ +--- +graph: parallel +resources: + exec: + - name: pkg10 + cmd: sleep 10s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present + - name: svc10 + cmd: sleep 10s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present + - name: exec10 + cmd: sleep 10s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present + - name: pkg15 + cmd: sleep 15s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present +edges: +- name: e1 + from: + kind: exec + name: pkg10 + to: + kind: exec + name: svc10 +- name: e2 + from: + kind: exec + name: svc10 + to: + kind: exec + name: exec10