Difference between revisions of "OPS435 Python Lab 8"
(→LAB OBJECTIVES) |
(→INVESTIGATION 1: Extra VM Setup) |
||
Line 31: | Line 31: | ||
|} | |} | ||
− | = INVESTIGATION 1: Extra VM Setup = | + | = INVESTIGATION 1: Extra VM Setup = |
+ | In order to experience Fabric's features in a realistic way, we're going to set up several virtual machines. To begin with they are all going to have the same configuration. | ||
− | == PART 1 - | + | == PART 1 - Create master VM image == |
+ | Create a new virtual machine, and allocate for it 1GB or RAM and 8GB of disk space. Install a Basic Server configuration of CentOS in that VM using the same CentOS .iso file you used for your first machine in this course. | ||
− | + | Make sure that the hostname of the system is '''slave1''' and that it has a static IP address appropriate for your virtual network. You don't need to create any extra user. | |
+ | === Set up SSH key login === | ||
+ | |||
+ | In order for an automated system to be able to connect to your VM and administer it - you will need to be able to connect to it using SSH keys. You've done this in both OPS235. | ||
+ | |||
+ | Create a new SSH key on your main machine with your regular user. Please avoid using root on your development machine. Then set things up so that your regular user on your main machine can SSH to the slave1 VM as root without putting in a password. | ||
= LAB 7 SIGN-OFF (SHOW INSTRUCTOR) = | = LAB 7 SIGN-OFF (SHOW INSTRUCTOR) = |
Revision as of 21:15, 10 October 2017
Contents
LAB OBJECTIVES
- Completing this course will give you the prerequisites for getting into the DevOps field. A DevOps professional is a system/network administrator with programming skills. As an introduction to that field, we will look at Fabric in this lab. Using Fabric you can automate deploying software, monitoring, and updating many systems at the same time, without using a terminal to connect to each of them separately.
REFERENCE
- These links may be helpful for extra reading:
Category | Resource Link |
|
|
|
|
|
= INVESTIGATION 1: Extra VM Setup =
In order to experience Fabric's features in a realistic way, we're going to set up several virtual machines. To begin with they are all going to have the same configuration.
PART 1 - Create master VM image
Create a new virtual machine, and allocate for it 1GB or RAM and 8GB of disk space. Install a Basic Server configuration of CentOS in that VM using the same CentOS .iso file you used for your first machine in this course.
Make sure that the hostname of the system is slave1 and that it has a static IP address appropriate for your virtual network. You don't need to create any extra user.
Set up SSH key login
In order for an automated system to be able to connect to your VM and administer it - you will need to be able to connect to it using SSH keys. You've done this in both OPS235.
Create a new SSH key on your main machine with your regular user. Please avoid using root on your development machine. Then set things up so that your regular user on your main machine can SSH to the slave1 VM as root without putting in a password.
LAB 7 SIGN-OFF (SHOW INSTRUCTOR)
- Have Ready to Show Your Instructor: