diff options
-rw-r--r-- | vagrant/ansible/roles/ctdb.setup/tasks/main.yml | 9 |
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 |