File tree 3 files changed +24
-13
lines changed
3 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,15 @@ ansible-galaxy install -r requirements.yml
44
44
---
45
45
# defaults file for ansible-drbd
46
46
47
+ drbd_common :
48
+ disk : ' '
49
+ net : |
50
+ cram-hmac-alg sha1;
51
+ shared-secret "{{ drbd_network_shared_secret }}";
52
+ handlers : ' '
53
+ startup : ' '
54
+ options : ' '
55
+
47
56
drbd_disks :
48
57
- device : /dev/drbd0
49
58
disk : /dev/sdb
Original file line number Diff line number Diff line change 1
1
---
2
2
# defaults file for ansible-drbd
3
+ drbd_common :
4
+ disk : ' '
5
+ net : |
6
+ cram-hmac-alg sha1;
7
+ shared-secret "{{ drbd_network_shared_secret }}";
8
+ handlers : ' '
9
+ startup : ' '
10
+ options : ' '
3
11
4
12
drbd_disks :
5
13
- device : /dev/drbd0
Original file line number Diff line number Diff line change @@ -4,19 +4,13 @@ global {
4
4
}
5
5
6
6
common {
7
- handlers {
8
- }
9
-
10
- startup {
11
- }
12
-
13
- options {
14
- }
15
-
16
- net {
17
- cram-hmac-alg sha1;
18
- shared-secret "{{ drbd_network_shared_secret }}";
19
- }
7
+ {% for section in drbd_common .keys () %}
8
+ {{ section }} {
9
+ {% for line in drbd_common [section ].splitlines () %}
10
+ {{ line }}
11
+ {% endfor %}
12
+ }
13
+ {% endfor %}
20
14
}
21
15
22
16
{% for disk in drbd_disks %}
You can’t perform that action at this time.
0 commit comments