Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

DevOps | Abhinav | 9th March

Abhinav_59

Active Member
Assignment -2
Refer to the attached .txt file .

It contains playbook file(8 different Playbook examples) .You need to execute each of them and share results(Snapshots) in the forum.

In case of errors share the steps tried out and error snapshot.

Note:
  1. All execution needs to happen in Ubuntu
  2. There could be error in YAML syntax check before execution.
  3. There could be errors in some of the playbooks ,You need to troubleshoot and fix them
Happy Learning !! :)

 

Attachments

  • Asnible Assignment.txt
    1.9 KB · Views: 47
Assignment -2
Refer to the attached .txt file .

It contains playbook file(8 different Playbook examples) .You need to execute each of them and share results(Snapshots) in the forum.

In case of errors share the steps tried out and error snapshot.

Note:
  1. All execution needs to happen in Ubuntu
  2. There could be error in YAML syntax check before execution.
  3. There could be errors in some of the playbooks ,You need to troubleshoot and fix them
Happy Learning !! :)

Do we need to create ansible slave nodes ourselves for these assignments? Any particular specs for it?
 
Assignment
Assignment -1 (GIT)

Developer X realizes that he has merged a faulty code and needs to revert

back the code / BUG fix .There have been 5 more merges done post his merge .What approach will Developer X adopt to fix the issue


Assignment -2 (GIT)

Developer X goes on vacation ,Developer Y finds out the recent changes done by Developer X is having some issues and wants to undo his last commit .What approach Developer Y will take

Assignment - 3 (GIT)
Developer X has 3 local commits. But he doesn't want to push them all. He needs to delete some of the .What commands he will use to achieve the same ?


Assignment -4 (GIT)
Developer Z is new to the team and he is entrusted with the responsibility to move all the commits to a new branch in GIT .Which GIT command will help him achieve it ?

Assignment -5 (GIT)
Developer Y wants to create a alias for GIT commands.Is it Possible to do so ?

Assignment -6 (GIT)
Developer Z is not good in remembering all GIT syntax .Is there any GIT command that can help detail him all syntax ?

Hi Abhinav,
Please find attached GIT assignment document.

Thanks,
Ganesh_
 
HI Abhinav,

Could you please provide little more info about POM.xml in GITHUB and Jenkins setup ?
Many Thanks.


Hi,

Create a POM.xml file in the git hub repository in which you want to create your maven project and paste the following code. And it will work..

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>my-app</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.mycompany.app.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
 

_48301

Member
Thanks Abhinav for the assignments. I could not fix the issue I faced for #8. I have uploaded the outputs I got.
 

Attachments

  • DevOps-Assignment-2.txt
    11.7 KB · Views: 34

Trupti_001

Member
Alumni
I am getting below error. Searching for resolution. If any one have the solution, please send.

E: Malformed entry 60 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
 

rajeswaran.devarajan(2805202)

Mr. Rajeswaran Devarajan
Alumni
Assignment
Assignment -1 (GIT)

Developer X realizes that he has merged a faulty code and needs to revert

back the code / BUG fix .There have been 5 more merges done post his merge .What approach will Developer X adopt to fix the issue

Steps :

1) Create branch -> git branch git_demo
2) Checkout branch -> git checkout git_demo
3) Create file -> vi git_demo1.txt
4) Add file to staging -> git add git_demo1.txt
5) Commit file -> git commit -m "To add file for merge test"
6) Check the commit log -> git log
7) Push file from local to remote -> git push --set-upstream git_demo git_demo
8) Create another branch -> git branch git_demo_merge
9) Checkout to new branch -> git checkout git_demo_merge
10) Edit the file -> vi git_demo1.txt -- add new line into the file
11) Add file to staging -> git add git_demo1.txt
12) Commit file -> git commit -m "To check the merge test after adding new line"
13) Check the commit log -> git log
14) Push the edited file from local to remote -> git push --set-upstream git_demo git_demo_merge
15) On git hub merge the file keeping base branch as git_demo and compare branch as git_demo_merge and create pull request to merge the files.
16) On local create pull request to reflect the changes -> git pull git_demo git_demo_merge
17) Do the same from step 8 to 16 for 5 times to have 5 merges and pull request
18) Now if we think there was done merge error before and go back to the previous state for a particular commit area then -> git reset --hard commitID
19) After making the bug fix we can again add , commit, push and merge the files again.
20) Once the merge is complete delete the branch on both remote and local (git branch -d git_demo_merge)
 

Attachments

  • Assignment 1 Solution.JPG
    Assignment 1 Solution.JPG
    74.7 KB · Views: 28
Last edited:

rajeswaran.devarajan(2805202)

Mr. Rajeswaran Devarajan
Alumni
Assignment
Assignment -6 (GIT)
Developer Z is not good in remembering all GIT syntax .Is there any GIT command that can help detail him all syntax ?

git help
git help -a
git help -g
git help <command> example git help branch
 

Attachments

  • git help.JPG
    git help.JPG
    115.8 KB · Views: 16
  • git help branch.JPG
    git help branch.JPG
    159.6 KB · Views: 16

_48301

Member
Hello , I get this error message "Oops, the course doesn't have any labs" for my DevOps practitioner course. Could you help me contact support to fix this issue.
Thanks
Vigneshwar
 

_48301

Member
Hello Abhinav,
Attached are the steps and and output of assignments 1-4 given in class. In assignment 5 I could clone from the master branch in my repository. But I got stuck in how to check in the cloned files into the new branch. Because git status reported that there are no new files to commit inthe new branch.
 

Attachments

  • assignments-april072019.txt
    3.3 KB · Views: 27
Hi All,

Please use this thread in order to connect with the trainer and the teaching assistant offline.


Hello Abhinav,
Please help me with "DevOps Practitioner Training" course admin. I am not able to access the lab as iam getting this message : "You have exceeded the access limit for this lab". I want to finish and submit my project in order to unlock my certificate!!
 

Kartikeya Sinha_1

Active Member
Hi Vatturi,

Please use the below steps to complete the "Dockerizing Jenkins Pipeline " project:
Installation:
1)Jenkins
2)Docker

STEPS:
1)You should have code base on git, use the below link:
https://github.com/SimplilearnDevOpsOfficial/DockerizeJenkins.git
2)Pull it in Jenkins
3)Use a Dockerfile to build the application
4)Build using jenkins (Hint:pipeline script)
5)Push to dockerhub
6)Deploy as container

We would also share the project mentoring session recording, that would help you to understand the deliverable and submit the project.

Regards,
Kartikeya Sinha
 

sairohith Vatturi

Customer
Customer
Hi Vatturi,

Please use the below steps to complete the "Dockerizing Jenkins Pipeline " project:
Installation:
1)Jenkins
2)Docker

STEPS:
1)You should have code base on git, use the below link:
https://github.com/SimplilearnDevOpsOfficial/DockerizeJenkins.git
2)Pull it in Jenkins
3)Use a Dockerfile to build the application
4)Build using jenkins (Hint:pipeline script)
5)Push to dockerhub
6)Deploy as container

We would also share the project mentoring session recording, that would help you to understand the deliverable and submit the project.

Regards,
Kartikeya Sinha
 
Top