Coder Social home page Coder Social logo

opsschool's Introduction

OpsSchool candidates assignment

INTRO

Hello and welcome to opsSchool home assignment.

In this assignment you will be asked to configure a virtual environment and to troubleshoot some basic issues in that environment. Please read the following instructions before starting to implementation, you don't want to miss any important instruction.

Get your environment ready

You'll need a local machine (laptop/desktop) with the ability to run vms.

  1. Install VirtualBox .
  2. Install Vagrant .
  3. Mirror this git repo using the instructions here. Then clone it locally. (**Please DO NOT fork this repo!!! **)
  4. cd to the vagrant directory in the repo - candidates-assignment/vagrant.
  5. Run vagrant up and make sure you can ssh into both machines from your repo directory using vagrant ssh server1 and vagrant ssh server2

Now your environment is set and you can start the exercises. there are two servers running:

name server1 server2
ip 192.168.100.10 192.168.100.11

Important note: the infrastructure should work out of the box. There's no hidden part of the exercise in which you need to debug vagrant/virtualbox.

Ready for action?

Great.
This exercise is simple, as an Operations Engineer you may run into production issues, in the first task you will jump start a Linux server, you will need to solve three issues that we encountered

exercise1:

in server 1, Run the following command "curl http://www.textfiles.com/art/bnbascii.txt" What went wrong? Please fix the issue and add the command that fixes the issue to exercise1-fix.sh

Exercise2:

in server 1, Run the following command "curl http://www.ascii-art.de/ascii/ab/007.txt" What went wrong? Please fix the issue and add the command that fixes the issue to exercise2-fix.sh

Exercise3:

open your browser, go to http://192.168.100.10/

We expect to see a message from opsSchool. What do you get? Please fix it. Please fix the issue and add the command that fixes the issue to exercise3-fix.sh.

Exercise4:

We would like to ssh between the servers using their names rather than their ips. Please add the option to ssh between the two servers using names (server1 and server2).

  • exercise4-fix_server1.sh

  • exercise4-fix_server2.sh

  • in order to test this, run vagrant ssh server1 and from their you should be able to run ssh server2 to the second server.

Exercise5:

At times one would like to ssh between servers with out typing a password or the need to approve new servers, Please add the needed configuration in order to ssh password-less from server1 to sever2 and without host key checking. Script to update configuration should be put in the following files.

  • exercise5-fix_server1.sh
  • exercise5-fix_server2.sh

Deliverables

A GitHub Pull-Request to YOUR DUPLICATED REPO, containing all the scripts mentioned above with the solutions to the exercises.

PLEASE make sure your Pull Request contains all the requirements above, and doesn't contain any code you didn't change.

The Pull-Request should contain a file with your name and email (contact-details.txt)

all fix scripts should be under vagrant/fixScripts

General Guidelines

Your code should be as simple as possible. Your code should be tested by running "vagrant destroy" and "vagrant up" and see all fixes and tasks are implemented.

please be aware that we automatically test this assignment, so if it does not work for you when you run the above, the automatic tests will not pass

After completion please fill up this form with all the relevant details

opsschool's People

Stargazers

Sergei Sheludchenko avatar

Watchers

Sergei Sheludchenko avatar  avatar

Forkers

eifoshm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.