Thanks to visit codestin.com
Credit goes to github.com

Skip to content

JunJi-T/peekops

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peekops

To take a peek on your Ops skills.

Objective

You will need to setup a set of servers based on the 'Architecture' section on this page. You can use your favourite tools to do so, and ideally the solution must be executed with single command bash solutions/run_solutions.sh. Once the servers are up, you will need to configure their target IP address into .env file that is generated by npm run init command and execute test command npm test. This command will run test cases that will assess your solutions.

Commands you will need to know:

npm install  # Install dependency
npm run init # copy base configuration file, you will need to configure environment file properly.
npm test     # Verify your solution.

Architecture

  • Web Server
    • Nginx
    • sshd
  • Application Server
    • Express based app
    • sshd
  • Database Server
    • Postgres
  • Cache Server
    • Redis

You will need to map target machines following this convention:

      +-------------+    +-------------+    +-------------+    +-------------+
      |             |    |             |    |             |    |             |
      |     Web     +----+ Application +----+   Database  +----+    Cache    |
      |             |    |             |    |             |    |             |
      +-------------+    +-------------+    +-------------+    +-------------+

The test will pick .env environment variable and use that to access the servers. Make sure to configure IP address properly.

     # Make sure to put correct IP addresses as it may change after reboot.
     WEB_TARGET_MACHINE=192.168.99.101
     APPLICATION_TARGET_MACHINE=192.168.99.102
     CACHE_TARGET_MACHINE=192.168.99.103
     DATABASE_TARGET_MACHINE=192.168.99.104

Test Cases

  • VMs/Servers setup.
  • Network and firewall configuration.
  • Code build and deployment.

Rule

  • Put your solutions under solutions directory.
  • Use any tool you need and that you are comfortable with.
  • You can use Vagrant or Docker to manage virtual machines. You can also use Terraform by completing solutions/main.tf
  • By default all port must be blocked except the one used by application.

Solutions

  • To run solutions, we should run bash solutions/run_solutions.sh.
  • Configure IP address properly in .env file.
  • Run npm test

About

To take a peek on your Ops skills.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 42.8%
  • JavaScript 37.7%
  • Ruby 19.3%
  • Shell 0.2%