-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-playbook.yaml
127 lines (118 loc) · 3.12 KB
/
example-playbook.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
- hosts: localhost
gather_facts: no
vars:
linstor_controller: localhost:3370
tasks:
#--------------------------------------------
# Controller properties
#--------------------------------------------
- import_role:
name: linstor_controller
vars:
properties:
- name: DrbdOptions/Net/after-sb-0pri
value: disconnect
- name: DrbdOptions/Net/after-sb-1pri
value: disconnect
- name: DrbdOptions/Net/after-sb-2pri
value: disconnect
- name: DrbdOptions/Net/csums-alg
value: crc32
- name: DrbdOptions/Net/verify-alg
value: crc32
- name: DrbdOptions/Net/max-buffers
value: "36864"
- name: DrbdOptions/Net/protocol
value: C
- name: DrbdOptions/Net/rcvbuf-size
value: "2097152"
- name: DrbdOptions/Net/sndbuf-size
value: "1048576"
- name: DrbdOptions/PeerDevice/c-fill-target
value: "10240"
- name: DrbdOptions/PeerDevice/c-max-rate
value: "737280"
- name: DrbdOptions/PeerDevice/c-min-rate
value: "20480"
- name: DrbdOptions/PeerDevice/c-plan-ahead
value: "10"
#--------------------------------------------
# Nodes with extra properties
#--------------------------------------------
- import_role:
name: linstor_node
vars:
node_name: node5
net_interfaces:
- address: 10.10.11.5
name: default
- address: 10.12.11.5
name: data
properties:
- name: Aux/region
value: "abc"
#--------------------------------------------
# Storage Pools
#--------------------------------------------
- import_role:
name: linstor_storage_pool
vars:
node_name: node5
storage_pool_name: diskless
provider_kind: DISKLESS
- import_role:
name: linstor_storage_pool
vars:
node_name: node5
storage_pool_name: lvm
provider_kind: LVM
properties:
- name: StorDriver/LvmVg
value: "data"
- import_role:
name: linstor_storage_pool
vars:
node_name: node5
storage_pool_name: lvmthin
provider_kind: LVM_THIN
properties:
- name: StorDriver/LvmVg
value: "data"
- name: StorDriver/ThinPool
value: "thinpool"
- import_role:
name: linstor_storage_pool
vars:
node_name: node5
storage_pool_name: zfs
provider_kind: ZFS
properties:
- name: StorDriver/ZPool
value: "tank/data"
- import_role:
name: linstor_storage_pool
vars:
node_name: node5
storage_pool_name: zfsthin
provider_kind: ZFS_THIN
properties:
- name: StorDriver/ZPoolThin
value: "tank/data"
- import_role:
name: linstor_storage_pool
vars:
node_name: node5
storage_pool_name: file
provider_kind: FILE
properties:
- name: StorDriver/FileDir
value: "/data/dir"
- import_role:
name: linstor_storage_pool
vars:
node_name: node5
storage_pool_name: filethin
provider_kind: FILE_THIN
properties:
- name: StorDriver/FileDir
value: "/data/dir"