diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2021-02-18 00:26:47 +0000 |
---|---|---|
committer | Anoop C S <anoopcs@cryptolab.net> | 2021-03-23 16:47:53 +0530 |
commit | 9dfdf0ba0b9789e763b87340db8c9703eaecb1b5 (patch) | |
tree | ff8128b18537f49379ea19e7e08b89cd052174f7 /vagrant | |
parent | 01eb268fb39da89ea78acd919bac9662de96a4c0 (diff) | |
download | samba-integration-9dfdf0ba0b9789e763b87340db8c9703eaecb1b5.tar.gz samba-integration-9dfdf0ba0b9789e763b87340db8c9703eaecb1b5.tar.xz samba-integration-9dfdf0ba0b9789e763b87340db8c9703eaecb1b5.zip |
Add distro specific actions for ctdb.setup
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Diffstat (limited to 'vagrant')
-rw-r--r-- | vagrant/ansible/roles/ctdb.setup/tasks/centos7.yml | 13 | ||||
-rw-r--r-- | vagrant/ansible/roles/ctdb.setup/tasks/main.yml | 18 |
2 files changed, 17 insertions, 14 deletions
diff --git a/vagrant/ansible/roles/ctdb.setup/tasks/centos7.yml b/vagrant/ansible/roles/ctdb.setup/tasks/centos7.yml new file mode 100644 index 0000000..e96822c --- /dev/null +++ b/vagrant/ansible/roles/ctdb.setup/tasks/centos7.yml @@ -0,0 +1,13 @@ +- name: Add ctdb package + yum: + name: ctdb + state: present + +- name: Install libsemanage-python. This is needed for the seboolean ansible command + yum: name=libsemanage-python state=present + +- name: SELinux - Allow CTDB to access recovery lockfile from FUSE mount + seboolean: + name: use_fusefs_home_dirs + state: yes + persistent: yes diff --git a/vagrant/ansible/roles/ctdb.setup/tasks/main.yml b/vagrant/ansible/roles/ctdb.setup/tasks/main.yml index b34f0d0..9293e34 100644 --- a/vagrant/ansible/roles/ctdb.setup/tasks/main.yml +++ b/vagrant/ansible/roles/ctdb.setup/tasks/main.yml @@ -1,4 +1,8 @@ --- +- name: Run distro specific tasks for ctdb.setup + include_tasks: + file: "{{ distro.actions_file }}" + - name: Check for required variables block: - fail: @@ -37,11 +41,6 @@ opts: '_netdev,transport=tcp,xlator-option=*client*.ping-timeout=10' state: mounted -- name: Add ctdb package - yum: - name: ctdb - state: present - - name: Add ctdb rules to firewalld firewalld: service: ctdb @@ -55,15 +54,6 @@ regexp: "recovery lock" insertafter: '\[cluster\]' -- name: Install libsemanage-python. This is needed for the seboolean ansible command - yum: name=libsemanage-python state=present - -- name: SELinux - Allow CTDB to access recovery lockfile from FUSE mount - seboolean: - name: use_fusefs_home_dirs - state: yes - persistent: yes - - name: Enable check consistency of databases during startup command: '/bin/ctdb event script enable legacy 00.ctdb' |