OPS535-vl-lab-ldap

From CDOT Wiki
Revision as of 09:42, 9 June 2021 by Rchan (talk | contribs) (Created page with "Category: OPS535Category: OPS535-LabsCategory: rchan =OPS535 Lab 3 (using Virutal Lab)= == Objectives == * Design the algorithm for setup and configure an OpenLDAP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

OPS535 Lab 3 (using Virutal Lab)

Objectives

  • Design the algorithm for setup and configure an OpenLDAP server based on Lab 3 LDAP lab
  • Create remote administration script(s) using bash/ansible based on your algorithm
  • Deploy the remote administration scripts using bash/ansible on your Seneca VM4 in the OPS535 Virtual Lab

Pre-Requisites

  • Has access to Seneca VPN, and matrix.senecacollege.ca
  • Complete the collection of baseline information on your assigned VMs (VM1, VM2, VM3, and VM4)
  • Complete the Lab 3 - LDAP lab on your home VMs
  • Setup and configure private network for your assigned VMs in the OPS535 Virtual Lab
  • Configure VM1 as your control workstation for performing remote administration tasks on VM[2-4]

Investigation 1: Algorithm for setup and configure an OpenLDAP server

Investigation 2: Scripts for remote deployment of an OpenLDAP server

Task 1

Based on Lab 2 - NFS lab, write a bash script named "lab2-nfs-setup.bash" to perform the following tasks on VM3 (co-rns)

  • 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 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/lab2/scripts/lab2-nfs-setup.bash

Task 2

Create an ansible playbook named "config-nfs.yml" to perform the same tasks as mentioned in task 1.

  • save the ansible playbook to ~student/ops535/lab2/playbook/config-nfs.yml
  • Run the playbook and capture the output to a file named lab2_inv3_task2.txt in the directory ~student/ops535/lab2/log/

Completing the Lab

Follow the instructions on blackboard to submit the lab by the due date.