From da494cdc7c514fb757561f86975d10debd58727a Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 26 Feb 2016 02:32:13 -0500 Subject: [PATCH] Clean up the examples/ directory Naming things numerically isn't very obvious. This is better for now. --- examples/etcd1a.yaml | 18 ++++++ examples/etcd1b.yaml | 18 ++++++ examples/etcd1c.yaml | 18 ++++++ examples/{graph8.yaml => exec1.yaml} | 0 examples/{graph8a.yaml => exec1a.yaml} | 0 examples/{graph8b.yaml => exec1b.yaml} | 0 examples/{graph8c.yaml => exec1c.yaml} | 0 examples/{graph8d.yaml => exec1d.yaml} | 0 examples/exec2.yaml | 83 ++++++++++++++++++++++++++ examples/{graph1.yaml => file1.yaml} | 0 examples/{graph2.yaml => svc1.yaml} | 0 11 files changed, 137 insertions(+) create mode 100644 examples/etcd1a.yaml create mode 100644 examples/etcd1b.yaml create mode 100644 examples/etcd1c.yaml rename examples/{graph8.yaml => exec1.yaml} (100%) rename examples/{graph8a.yaml => exec1a.yaml} (100%) rename examples/{graph8b.yaml => exec1b.yaml} (100%) rename examples/{graph8c.yaml => exec1c.yaml} (100%) rename examples/{graph8d.yaml => exec1d.yaml} (100%) create mode 100644 examples/exec2.yaml rename examples/{graph1.yaml => file1.yaml} (100%) rename examples/{graph2.yaml => svc1.yaml} (100%) diff --git a/examples/etcd1a.yaml b/examples/etcd1a.yaml new file mode 100644 index 00000000..6dd73936 --- /dev/null +++ b/examples/etcd1a.yaml @@ -0,0 +1,18 @@ +--- +graph: mygraph +resources: + file: + - name: file1a + path: "/tmp/mgmtA/f1a" + content: | + i am f1 + state: exists + - name: "@@file2a" + path: "/tmp/mgmtA/f2a" + content: | + i am f2, exported from host A + state: exists +collect: +- res: file + pattern: "/tmp/mgmtA/" +edges: [] diff --git a/examples/etcd1b.yaml b/examples/etcd1b.yaml new file mode 100644 index 00000000..c232acb4 --- /dev/null +++ b/examples/etcd1b.yaml @@ -0,0 +1,18 @@ +--- +graph: mygraph +resources: + file: + - name: file1b + path: "/tmp/mgmtB/f1b" + content: | + i am f1 + state: exists + - name: "@@file2b" + path: "/tmp/mgmtB/f2b" + content: | + i am f2, exported from host B + state: exists +collect: +- res: file + pattern: "/tmp/mgmtB/" +edges: [] diff --git a/examples/etcd1c.yaml b/examples/etcd1c.yaml new file mode 100644 index 00000000..80184451 --- /dev/null +++ b/examples/etcd1c.yaml @@ -0,0 +1,18 @@ +--- +graph: mygraph +resources: + file: + - name: file1c + path: "/tmp/mgmtC/f1c" + content: | + i am f1 + state: exists + - name: "@@file2c" + path: "/tmp/mgmtC/f2c" + content: | + i am f2, exported from host C + state: exists +collect: +- res: file + pattern: "/tmp/mgmtC/" +edges: [] diff --git a/examples/graph8.yaml b/examples/exec1.yaml similarity index 100% rename from examples/graph8.yaml rename to examples/exec1.yaml diff --git a/examples/graph8a.yaml b/examples/exec1a.yaml similarity index 100% rename from examples/graph8a.yaml rename to examples/exec1a.yaml diff --git a/examples/graph8b.yaml b/examples/exec1b.yaml similarity index 100% rename from examples/graph8b.yaml rename to examples/exec1b.yaml diff --git a/examples/graph8c.yaml b/examples/exec1c.yaml similarity index 100% rename from examples/graph8c.yaml rename to examples/exec1c.yaml diff --git a/examples/graph8d.yaml b/examples/exec1d.yaml similarity index 100% rename from examples/graph8d.yaml rename to examples/exec1d.yaml diff --git a/examples/exec2.yaml b/examples/exec2.yaml new file mode 100644 index 00000000..567988b7 --- /dev/null +++ b/examples/exec2.yaml @@ -0,0 +1,83 @@ +--- +graph: mygraph +resources: + exec: + - name: exec1 + cmd: sleep 10s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present + - name: exec2 + cmd: sleep 10s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present + - name: exec3 + cmd: sleep 10s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present + - name: exec4 + cmd: sleep 10s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present + - name: exec5 + cmd: sleep 15s + shell: '' + timeout: 0 + watchcmd: '' + watchshell: '' + ifcmd: '' + ifshell: '' + pollint: 0 + state: present +edges: +- name: e1 + from: + res: exec + name: exec1 + to: + res: exec + name: exec2 +- name: e2 + from: + res: exec + name: exec1 + to: + res: exec + name: exec3 +- name: e3 + from: + res: exec + name: exec2 + to: + res: exec + name: exec4 +- name: e4 + from: + res: exec + name: exec3 + to: + res: exec + name: exec4 diff --git a/examples/graph1.yaml b/examples/file1.yaml similarity index 100% rename from examples/graph1.yaml rename to examples/file1.yaml diff --git a/examples/graph2.yaml b/examples/svc1.yaml similarity index 100% rename from examples/graph2.yaml rename to examples/svc1.yaml