examples: etcd: Simplify the etcd examples
This commit is contained in:
@@ -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
|
// ./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
|
// 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/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: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 put /_mgmt/idealClusterSize 5
|
||||||
// ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2381 member list
|
// ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2381 member list
|
||||||
|
|||||||
@@ -2,15 +2,10 @@
|
|||||||
graph: mygraph
|
graph: mygraph
|
||||||
resources:
|
resources:
|
||||||
file:
|
file:
|
||||||
- name: file1a
|
- name: "@@filea"
|
||||||
path: "/tmp/mgmtA/f1a"
|
path: "/tmp/mgmtA/fA"
|
||||||
content: |
|
content: |
|
||||||
i am f1
|
i am fA, exported from host A
|
||||||
state: exists
|
|
||||||
- name: "@@file2a"
|
|
||||||
path: "/tmp/mgmtA/f2a"
|
|
||||||
content: |
|
|
||||||
i am f2, exported from host A
|
|
||||||
state: exists
|
state: exists
|
||||||
collect:
|
collect:
|
||||||
- kind: file
|
- kind: file
|
||||||
|
|||||||
@@ -2,15 +2,10 @@
|
|||||||
graph: mygraph
|
graph: mygraph
|
||||||
resources:
|
resources:
|
||||||
file:
|
file:
|
||||||
- name: file1b
|
- name: "@@fileb"
|
||||||
path: "/tmp/mgmtB/f1b"
|
path: "/tmp/mgmtB/fB"
|
||||||
content: |
|
content: |
|
||||||
i am f1
|
i am fB, exported from host B
|
||||||
state: exists
|
|
||||||
- name: "@@file2b"
|
|
||||||
path: "/tmp/mgmtB/f2b"
|
|
||||||
content: |
|
|
||||||
i am f2, exported from host B
|
|
||||||
state: exists
|
state: exists
|
||||||
collect:
|
collect:
|
||||||
- kind: file
|
- kind: file
|
||||||
|
|||||||
@@ -2,15 +2,10 @@
|
|||||||
graph: mygraph
|
graph: mygraph
|
||||||
resources:
|
resources:
|
||||||
file:
|
file:
|
||||||
- name: file1c
|
- name: "@@filec"
|
||||||
path: "/tmp/mgmtC/f1c"
|
path: "/tmp/mgmtC/fC"
|
||||||
content: |
|
content: |
|
||||||
i am f1
|
i am fC, exported from host C
|
||||||
state: exists
|
|
||||||
- name: "@@file2c"
|
|
||||||
path: "/tmp/mgmtC/f2c"
|
|
||||||
content: |
|
|
||||||
i am f2, exported from host C
|
|
||||||
state: exists
|
state: exists
|
||||||
collect:
|
collect:
|
||||||
- kind: file
|
- kind: file
|
||||||
|
|||||||
@@ -2,15 +2,10 @@
|
|||||||
graph: mygraph
|
graph: mygraph
|
||||||
resources:
|
resources:
|
||||||
file:
|
file:
|
||||||
- name: file1d
|
- name: "@@filed"
|
||||||
path: "/tmp/mgmtD/f1d"
|
path: "/tmp/mgmtD/fD"
|
||||||
content: |
|
content: |
|
||||||
i am f1
|
i am fD, exported from host D
|
||||||
state: exists
|
|
||||||
- name: "@@file2d"
|
|
||||||
path: "/tmp/mgmtD/f2d"
|
|
||||||
content: |
|
|
||||||
i am f2, exported from host D
|
|
||||||
state: exists
|
state: exists
|
||||||
collect:
|
collect:
|
||||||
- kind: file
|
- kind: file
|
||||||
|
|||||||
13
examples/etcd1e.yaml
Normal file
13
examples/etcd1e.yaml
Normal file
@@ -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: []
|
||||||
Reference in New Issue
Block a user