summaryrefslogtreecommitdiffstats
path: root/vagrant/ansible
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2020-05-29 13:01:54 +0530
committerspuiuk <sachin.prabhu@gmail.com>2020-10-21 16:45:19 +0100
commita11c33833d2ccdb6b777b9a6ca02da76bdde9f37 (patch)
tree827af5d33d40c56cbb557b27567d35891d6003ff /vagrant/ansible
parent82869a33fc51278082f71d6a2efadbd5cc2a3f76 (diff)
downloadsamba-integration-a11c33833d2ccdb6b777b9a6ca02da76bdde9f37.tar.gz
samba-integration-a11c33833d2ccdb6b777b9a6ca02da76bdde9f37.tar.xz
samba-integration-a11c33833d2ccdb6b777b9a6ca02da76bdde9f37.zip
Disable intervention of gluster-ansible-features in setting up CTDB
Diffstat (limited to 'vagrant/ansible')
-rw-r--r--vagrant/ansible/roles/ctdb.setup/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/vagrant/ansible/roles/ctdb.setup/tasks/main.yml b/vagrant/ansible/roles/ctdb.setup/tasks/main.yml
index d1d8d38..b34f0d0 100644
--- a/vagrant/ansible/roles/ctdb.setup/tasks/main.yml
+++ b/vagrant/ansible/roles/ctdb.setup/tasks/main.yml
@@ -29,6 +29,14 @@
replicas: "{{ ctdb_cluster_replica_count }}"
run_once: yes
+- name: Mount and add CTDB lock volume to fstab
+ mount:
+ path: /gluster/lock/
+ src: 'localhost:/ctdb'
+ fstype: glusterfs
+ opts: '_netdev,transport=tcp,xlator-option=*client*.ping-timeout=10'
+ state: mounted
+
- name: Add ctdb package
yum:
name: ctdb
@@ -77,6 +85,7 @@
gluster_features_ctdb_nodes: "{{ ctdb_network_private_interfaces | join(',') }}"
gluster_features_ctdb_publicaddr: "{{ ctdb_network_public_interfaces | map('regex_replace','(^.*$)','\\1/' + ctdb_network_public_interface_subnet_mask + ' ' + ctdb_network_public_interface_name) | list |join (',') }}"
gluster_features_ctdb_volume: "{{ ctdb_cluster_volume }}"
+ gluster_features_ctdb_enable_hook_scripts: false
- name: Restart ctdb
service: name=ctdb state=restarted enabled=yes