Changes

Jump to: navigation, search

OPS635-lab-ansible

52 bytes added, 19:02, 3 September 2019
m
Updating lab number for fall 2019
[[Category:OPS635]][[Category:OPS635-Labs]][[Category:peter.callaghan]]
=OPS635 Lab 3 : System Configuration Management using Ansible=
==Overview==
In an enterprise environment, the existence of different hardware and Operating Systems operating systems running on production servers is very common. You may find the same software running on different OS OSes and even different hardware platforms. To manage the software configuration on different platforms by using a script, your script would have to be aware of and account for their differences. Your scripts would need to be written in way that they know how to query the operating environment and execute the appropriate installation and configuration actions based on the operating environment it is running on.  There are commercial and open source configuration management systems which aware of and know how to handle such difference in operating platforms. "'''Ansible" ''' is another a CMS (Content Management System) that we are going to study for this lab. In this lab, we will start by trying to convert the script that you have written for configuringNagios on Centos7 CentOS 7 to an Ansible playbook, test it on your testing environment and then deploy it to a new VM. 
==Investigation 1: Installing Ansible on Your Host Machine==
*Install the ansible Ansible package on your host machine.*If you have not already done so, create an sshSSH key-key pair for the '''root user on your host ''' and transfer the public portion of it to your VMs. Ensure that you can use it to ssh to root on your vms VMs without entering a password.*Modify the inventory file on your host to include the fully qualified domain name names of your VMs.*Use the '''setup module ''' to ensure verify that your ansible Ansible host can run plays on your VMs. 
==Investigation 2: Creating an Ansible Playbook==
*Convert the installation script/puppet manifest from the previous labs into an ansible Ansible playbook that will configure a centos CentOS VM and another non-centos CentOS VM as nagios Nagios servers performing the same checks as in lab 1.
==Investigation 3: Applying a Playbook==
*Use the ansible-playbook command to execute your play on both VMs in the same play. If anything goes wrong, fix it and re-run the play. Continue doing so until the play runs successfully.
 
==Submission==
Demonstrate your ansible Ansible playbook working in class, then upload it to blackboardBlackboard.
932
edits

Navigation menu