File tree 8 files changed +13
-11
lines changed
8 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ corosync_node_list:
9
9
- ctrl01
10
10
- ctrl02
11
11
- ctrl03
12
- corosync_transport : ' udpu'
12
+ corosync_transport : udpu
13
13
corosync_interfaces :
14
14
- bindnetaddr : 192.168.56.0
15
15
mcastport : 5405
Original file line number Diff line number Diff line change 1
1
---
2
2
# file: roles/corosync/handlers/main.yml
3
- - name : Restart Corosync
3
+ - name : restart corosync
4
4
service :
5
5
name=corosync
6
6
state=restarted
7
- enabled=yes
Original file line number Diff line number Diff line change 6
6
state=present
7
7
update_cache=yes
8
8
9
- - name : Install Corosync packages (Debian Jessie only)
9
+ - name : Installing Corosync package (Debian Jessie only)
10
10
apt :
11
11
name=corosync
12
12
state=latest
Original file line number Diff line number Diff line change 4
4
template :
5
5
src=etc/corosync/corosync.conf.j2
6
6
dest=/etc/corosync/corosync.conf
7
- notify : Restart Corosync
7
+ notify : restart corosync
8
8
9
- - name : Starting Corosync service
9
+ - name : Making sure that Corosync service is started
10
10
service :
11
11
name=corosync
12
12
state=started
Original file line number Diff line number Diff line change 6
6
permanent=true
7
7
state=enabled
8
8
immediate=true
9
- with_items :
10
- - " {{ corosync_interfaces }}"
9
+ with_items : " {{ corosync_interfaces }}"
Original file line number Diff line number Diff line change 1
1
---
2
2
# file: roles/corosync/tasks/install.yml
3
- - name : Install Corosync packages
3
+ - name : Installing Corosync package
4
4
package :
5
5
name=corosync
6
6
state=latest
7
- when : ansible_distribution_release != 'jessie'
7
+ when : ansible_distribution_release != 'jessie' and
8
+ corosync_debian_backports is defined and
9
+ corosync_debian_backports
8
10
9
- - name : Enable Corosync service
11
+ - name : Enabling Corosync service
10
12
service :
11
13
name=corosync
12
14
enabled=yes
Original file line number Diff line number Diff line change 15
15
corosync_haveged
16
16
17
17
- include : firewall.yml
18
+ tags : [ corosync, corosync-firewall ]
18
19
when : corosync_firewalld is defined and
19
20
corosync_firewalld
20
21
Original file line number Diff line number Diff line change 2
2
# file: roles/corosync/vars/main.yml
3
3
corosync_apt_backports : " deb http://ftp.debian.org/debian jessie-backports main"
4
4
corosync_default_release : jessie-backports
5
+ corosync_tmp_authkey : /tmp/authkey
You can’t perform that action at this time.
0 commit comments