代码代写|COSC2759 Assignment 2 Specifications

这是一篇澳洲的Ansible自动化运维代码代写

 

Please read this first

All of us have been affected by the unfortunate COVID-19 scenario and its aftermath. It is often hard to concentrate and study online; but as a student enrolled in this course, it is your responsibility to regularly attend online lecture, your respective labs and consultation session(s).

  • Bring your questions to online discussion board, consultation sessions or email Ashley Mallia (ashley.mallia@rmit.edu.au)
  • Watch the online recordings on a regular basis if you cannot attend the live sessions.
  • Do not start the assignment at the last minute.
  • Do not ask for last minute extensions, these are often rejected. Extensions can only be granted for personal and medical reasons, provided you can supply some evidence.

DevOps is a very important skill to have. There is a clear lack of training in this area for the graduates and as such doing well in this course will give you a competitive edge over graduates from other universities.

Global industry projects involving teams at geographically different locations often run fully online. Think of this semester as a training for future. In the fast-evolving CS&IT industry, the online medium is very popular and vastly used.

You have more than 4 weeks to complete this assignment. The best time to get started is now.

Scenario

Alpine Inc. has been very excited about the progress you’ve made so far and have started looking at the next steps for them.

So far, their application deployments have all been manual using ClickOps, which is prone to human error. They would like you to have a look at how to automate the infrastructure and application deployment. They don’t think they are ready for Kubernetes and containers yet, so they would like you to use EC2 instances to host the application.

The Approach

To make this easier for Alpine Inc, which is rather immature with DevOps methodologies and practices, you have opted to use SaaS tools where possible to help reduce the learning curve for their development team. You will follow best practice principles and make as much of your solution using code, this includes your CI build configuration and scaffolding scripts.

Tools to use:

  • GitHub (GitHub Classroom)
  • GitHub Actions – used for creating the pipelines
  • Terraform
  • Ansible
  • AWS

Access GitHub Classroom

We will be using GitHub classroom to edit and manage the code base. All the core files for the application will be provided to you here. Please accept the invite below to join the classroom and get access to Assignment #2. You will be expected to work within and make your commits to this repo.

  1. Join the classroom https://classroom.github.com/a/mHwb4tde and login with your GitHub account.
  1. Choose your student number from the list.
  2. Click on the “Accept this assignment” button and refresh the browser a few times until you get the following screen:
  1. Click on the link to go to your newly created repository.
  2. You will be taken to your new repository. The core files for this assignment have been provided to you.
  1. Click the code button and clone this repo to your local machine to start working.

Deliverables

Alpine Inc. expects you to update your GitHub classroom repository with all the code and documentation required to run what you are building for them. This includes the files that define any shell scripts, docker files, ansible scripts and anything else you use.

For a Pass

  1. Edit the markdown file Readme.md in the root of your git repo.
  • The Alpine Inc team needs to be able to understand why you chose to approach your solution the way you did. Create a document with details for each of the elements in your solution, explain how the element works. Write as little as possible to communicate your message. Add screenshots where appropriate to demonstrate that you have completed the requirements for each section.
  • Create a step-by-step guide including all steps needed to deploy your solution. Your document should have sufficient detail so that someone with no prior knowledge of your solution can follow it. We recommend you document as you go and as you build out specific features.
  • AWS Architecture Diagram (with lucidchart, draw.io or similar diagramming tool) 5%
  • Analysis of the problem (What are you trying to solve?) 5%
  • Step by Step Deployment Guide 10%
  • Writing quality, layout and accuracy will influence all marking.
  1. Use Terraform to create the following network infrastructure: 5%
  • Create a VPC with CIDR block 10.0.0.0/16.
  • Create 9 subnets with size /22 with 3 layers (named public, private, and data) across 3 availability zones (az1=us-east-1a, az2=us-east-1b, az3=us-east-1c). Name the subnets consecutively as public_az1, public_az2, …, data_az2, data_az3. Only the public subnets should be configured to map_public_ip_on_launch=true.
  • Add an internet gateway to the VPC.
  • Add a default route table to the VPC which routes 0.0.0.0/0 to the internet gateway.
  1. Use Terraform to create the following 3-layer application infrastructure: 5%
  • a public load balancer deployed in the public layer (all AZs), with a listener and target group. Note: we are not using an auto scaling configuration in this assignment.
  • an EC2 instance named “web” deployed into private_az1 (use the latest Amazon Linux 2 64-bit (x86) image and deploy a t2.micro instance size).
  • an EC2 instance named “db” deployed in the data_az1 (use the latest Amazon Linux 2 64-bit (x86) image and deploy a t2.micro instance size).
  1. There should be security groups defined to limit access to what is required. 5%
  • The load balancer should allow http ingress on port 80
  • The “web” instance should allow ingress on the appropriate application port and SSH ingress on port 22
  • The “db” instance should allow ingress on the appropriate database port and allow SSH ingress on port 22
  • In all the above cases, egress should allow all outbound traffic.
  1. Automate deployment of the application using Ansible 15%
  • Set up an ansible playbook that deploys and configures the application on the “web” instance.
  • Set up an ansible playbook that deploys and configures a mongo:4.0 into the “db” instance.

Your ansible automation should do the following:

  • Automatically generate the inventory file (hint: a shell script & terraform output)
  • Copy the artefact you have generated to the remote machine (hint: to generate the artifact you can run make pack)
  • Configure dependencies and install node dependencies.
  • Configure the application with the correct database endpoint and credentials.
  • Application settings should automatically be fed in, rather than manually entered(hint: terraform output, how you choose to set these are up to you)
  • Set the application and database up as a service using systemd so that they will automatically start if the server is rebooted.

程序代写代做C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: itcsdx@outlook.com  微信:itcsdx


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

blank

发表评论