1,760
edits
Changes
→Investigation 2: Scripts for remote deployment of an OpenLDAP server
==Investigation 2: Scripts for remote deployment of an OpenLDAP server==
=== Task 1 ===
Based on [[OPS535-lab-nfs|Lab 2 - NFS lab]]your algorithm created for investigation 1, write a bash script named "lab2lab3-nfsldap-setup.bash" to perform implement all the following tasks steps on VM3 VM4 (co-rnsldap)* move the network interface ens224 from firewalld's public zone to internal zone* install the nfs-utils rpm package if it has not already been installed* create an nfs share directory named '/nfs-pub' with mode '1777'* update the /etc/exports as required in [[OPS535-lab-nfs|Lab 2 - NFS lab]]* enable nfs-server service if has not already been enabled* start nfs-server service if has not already been started* update firewalld's internal zone to allow nfs service* update firewalld's internal zone to allow nfs3 server service* update firewalld's internal zone to allow rpc-bind service* save the script to ~student/ops535/lab2lab3/scripts/lab2lab3-nfsldap-setup.bash
=== Task 2 ===
Create an ansible playbook named "config-nfsldap.yml" to perform the same tasks as mentioned in task 1.* save the ansible playbook to ~student/ops535/lab2lab3/playbook/config-nfsldap.yml === Task 3 ===* Run the playbook create in Task 2 above, and capture the output to a file named lab2_inv3_task2lab3_inv2_task3.txt in the directory ~student/ops535/lab2lab3/log/
==Completing the Lab==
Follow the instructions on blackboard to submit the lab by the due date.