KTH / devops-course

Repository of the DevOps course at KTH Royal Institute of Technology DD2482
193 stars 427 forks source link

move demo to week 7 #2536

Closed t-sorger closed 1 month ago

t-sorger commented 1 month ago

Assignment Proposal

Title

Infrastructure as Code Using Ansible Playbooks

Names and KTH ID

Deadline

Category

Description

In this demo, we'll demonstrate how to use Ansible to automate the deployment of an application. This approach is useful when setting up multiple instances of the same application for development, testing, and production. The demo will show how Ansible playbooks can automatically configure all instances in a consistent manner, ensuring the same setup across every environment.

Relevance

This demo is highly relevant to DevOps because it showcases how automation tools like Ansible can streamline the deployment process, ensuring consistency across multiple environments. By automating infrastructure and configuration management, it reduces the risk of human error and allows teams to quickly deploy and scale applications in development, testing, and production environments.

t-sorger commented 1 month ago

As discussed per email @algomaster99

algomaster99 commented 1 month ago

@Deee92 any idea why the CI is failing?

algomaster99 commented 1 month ago

@Deee92 @javierron should I disable the essay workflow because we don't have it as a task this year?

Deee92 commented 1 month ago

Hi @algomaster99, yes please do. Thanks!

algomaster99 commented 1 month ago

@t-sorger could you please push an empty commit to trigger the workflow?

t-sorger commented 1 month ago

@algomaster99 done

algomaster99 commented 1 month ago

Thanks!

DavidCWQ commented 1 month ago

Hi! We'd like to give you some feedback on your Week 7 demo. Hope you're open to it. @t-sorger & @Limph1

t-sorger commented 1 month ago

Hi @DavidCWQ, if you want you can give us feedback on our demo. Since this is a sync task, you will need to give the feedback before Wednesday (right?), so we can arrange an online (Zoom) meeting, where we can present the demo to you in a dry run. We are not completely done with the demo yet (in terms of timing/text). We propose tomorrow evening (around 20-21 o'clock); feel free to write me/us an email to agree on a time/further alignments.

DavidCWQ commented 1 month ago

Hi @t-sorger, Yes, we will provide the feedback before Wednesday as planned. Apologies for just noticing your reply. The time you’ve proposed works for me, but my partner may not be available at that moment. Would you mind if I record the meeting on Zoom so we can review it later? 20:30-23:30 today works for me on zoom.

t-sorger commented 1 month ago

Further communication by mail :)

DavidCWQ commented 1 month ago

Feedback

Given by Wenqi Cao (wenqic@kth.se) and Katsutoshi Amano (amano@kth.se).

First of all, we want to thank Arber and Tom for allowing us to provide feedback on their demo. Additionally, we also appreciate that you gave us the demo via zoom and allowed us to record. This helps us provide better feedback for the contents presented.

Code of Conduct

We certify that generative AI, incl. ChatGPT has not been used to write this feedback. Using generative AI without permission is considered academic misconduct.


High-level Strengths & Weaknesses

Strengths

Weaknesses (with improvements)

Feedback on specific page/sections

Demo - Linux Terminal

In the first of the demo, an important command to run Ansible Playbooks is executed, but it lacks detailed explanation. You can explain in detail what you are doing and what will happen when the command is executed. Besides, you can run clear command after the environment has been set up (if necessary) to avoid the terminal display being messy.

Reflection - Ansible

As a disadvantage of ansible playbooks, it is mentioned that they become slower on larger scales. However, it is not explained why it occurs. You can identify the reasons and improve the performance by using some techniques. Additionally, comparing to other IaC tools like Terraform can give you further insights.

Overall Comments/Summary

The presentation starts with a strong and engaging hook about accidentally pushing to production. It is well-connected to the main topic of Infrastructure as Code (IaC). The demo shows how to use Ansible to separate production and development environments, which is relevant to the problem introduced in the hook of the first page. While it’s helpful to separate environments, it may not fully address the problem in hook, especially mistakenly pushing code. The conclusion aligns well with the topic but could be enhanced by integrating with the Ansible contents presented in the demo. The overall flow is solid, and the demo is well-prepared. Be careful with the time limit and good luck in the final demo!

Additional Materials & Links

[1] What is Ansible and How it works.

[2] 8 ways to speed up your ansible notebooks.