diff --git a/etcd/etcd.go b/etcd/etcd.go index b4c71228..46e9372c 100644 --- a/etcd/etcd.go +++ b/etcd/etcd.go @@ -42,6 +42,7 @@ // ./mgmt run --yaml examples/etcd1c.yaml --hostname h3 --tmp-prefix --no-pgp --seeds http://127.0.0.1:2379 --client-urls http://127.0.0.1:2383 --server-urls http://127.0.0.1:2384 // ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2379 put /_mgmt/idealClusterSize 3 // ./mgmt run --yaml examples/etcd1d.yaml --hostname h4 --tmp-prefix --no-pgp --seeds http://127.0.0.1:2379 --client-urls http://127.0.0.1:2385 --server-urls http://127.0.0.1:2386 +// ./mgmt run --yaml examples/etcd1e.yaml --hostname h5 --tmp-prefix --no-pgp --seeds http://127.0.0.1:2379 --client-urls http://127.0.0.1:2387 --server-urls http://127.0.0.1:2388 // ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2379 member list // ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2381 put /_mgmt/idealClusterSize 5 // ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2381 member list diff --git a/examples/etcd1a.yaml b/examples/etcd1a.yaml index 46378d3c..ed56c6be 100644 --- a/examples/etcd1a.yaml +++ b/examples/etcd1a.yaml @@ -2,15 +2,10 @@ graph: mygraph resources: file: - - name: file1a - path: "/tmp/mgmtA/f1a" + - name: "@@filea" + path: "/tmp/mgmtA/fA" content: | - i am f1 - state: exists - - name: "@@file2a" - path: "/tmp/mgmtA/f2a" - content: | - i am f2, exported from host A + i am fA, exported from host A state: exists collect: - kind: file diff --git a/examples/etcd1b.yaml b/examples/etcd1b.yaml index ae491180..fcf4ee7a 100644 --- a/examples/etcd1b.yaml +++ b/examples/etcd1b.yaml @@ -2,15 +2,10 @@ graph: mygraph resources: file: - - name: file1b - path: "/tmp/mgmtB/f1b" + - name: "@@fileb" + path: "/tmp/mgmtB/fB" content: | - i am f1 - state: exists - - name: "@@file2b" - path: "/tmp/mgmtB/f2b" - content: | - i am f2, exported from host B + i am fB, exported from host B state: exists collect: - kind: file diff --git a/examples/etcd1c.yaml b/examples/etcd1c.yaml index 2b9bd8cc..af1075c8 100644 --- a/examples/etcd1c.yaml +++ b/examples/etcd1c.yaml @@ -2,15 +2,10 @@ graph: mygraph resources: file: - - name: file1c - path: "/tmp/mgmtC/f1c" + - name: "@@filec" + path: "/tmp/mgmtC/fC" content: | - i am f1 - state: exists - - name: "@@file2c" - path: "/tmp/mgmtC/f2c" - content: | - i am f2, exported from host C + i am fC, exported from host C state: exists collect: - kind: file diff --git a/examples/etcd1d.yaml b/examples/etcd1d.yaml index d598c29b..d63cd68f 100644 --- a/examples/etcd1d.yaml +++ b/examples/etcd1d.yaml @@ -2,15 +2,10 @@ graph: mygraph resources: file: - - name: file1d - path: "/tmp/mgmtD/f1d" + - name: "@@filed" + path: "/tmp/mgmtD/fD" content: | - i am f1 - state: exists - - name: "@@file2d" - path: "/tmp/mgmtD/f2d" - content: | - i am f2, exported from host D + i am fD, exported from host D state: exists collect: - kind: file diff --git a/examples/etcd1e.yaml b/examples/etcd1e.yaml new file mode 100644 index 00000000..4d4d9130 --- /dev/null +++ b/examples/etcd1e.yaml @@ -0,0 +1,13 @@ +--- +graph: mygraph +resources: + file: + - name: "@@filee" + path: "/tmp/mgmtE/fE" + content: | + i am fE, exported from host E + state: exists +collect: +- kind: file + pattern: "/tmp/mgmtE/" +edges: []