-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path2host.yaml
More file actions
36 lines (35 loc) · 843 Bytes
/
2host.yaml
File metadata and controls
36 lines (35 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 2host
topology:
kinds:
linux:
image: netreplica/ubuntu-host
labels:
graph-level: 3
graph-icon: server
nodes:
host1:
kind: linux
cmd: /start.sh -S
exec:
- bash -c "echo root:root | chpasswd"
host2:
kind: linux
cmd: /start.sh -S
exec:
- bash -c "echo root:root | chpasswd"
graphite:
kind: linux
image: netreplica/graphite
env:
HOST_CONNECTION: ${SSH_CONNECTION}
binds:
- __clabDir__/topology-data.json:/htdocs/default/default.json:ro
- __clabDir__/ansible-inventory.yml:/htdocs/lab/default/ansible-inventory.yml:ro
ports:
- 8080:80
exec:
- sh -c 'graphite_motd.sh 8080'
labels:
graph-hide: yes
links:
- endpoints: ["host1:eth1", "host2:eth1"]