Simple DevOps Project-2 | CI/CD pipeline using GIT, Jenkins & Ansible

Поділитися
Вставка
  • Опубліковано 16 вер 2024

КОМЕНТАРІ • 536

  • @krishnajunk
    @krishnajunk 5 років тому +19

    Perfect, With your playlist I am feeling like I executed a DevOps project. Thanks a lot

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому +3

      You are welcome, How did you discover our playlist? Thanks

    • @roshansagar4944
      @roshansagar4944 3 роки тому

      could you please send me your contact number to my mail i have doubt in these video

    • @shaikshafi9025
      @shaikshafi9025 2 роки тому

      @@ValaxyTechnologies h the h5

    • @MohdDanish-kv9sw
      @MohdDanish-kv9sw Рік тому

      @@ValaxyTechnologies ​ @Valaxy Technologies i want to reach my website without giving the full path to tomcat server , in my case, i type ip:8080/webapp then i reach my website which i have deployed on tomcat , but i want to access my website just by typing the ip , how do i do it ??? please do reply its urgent i have to implement it in my company project

  • @polimerimounika1319
    @polimerimounika1319 5 років тому +10

    No words to express your effort towards this 26 videos. After watching these 26 videos one can feel themselves as a DevOps engineer, thank you so much valaxy technologies and each and every trainer.

    • @dhivyabharathi2025
      @dhivyabharathi2025 3 роки тому

      from where you got the 26 videos,i cant find in playlist

    • @JITENDRAPAL21
      @JITENDRAPAL21 3 роки тому

      @@dhivyabharathi2025 ya right im also not able to find.
      u got dhivya?

    • @noopurmor8218
      @noopurmor8218 Рік тому

      😢😢😮😮😮😢😢😢🎉 😢🎉🎉😂6,16,17,18,19,20 😢😅jù

  • @rohitsakpal7219
    @rohitsakpal7219 5 років тому +5

    Hi Sir,
    Great video Appreciate your efforts. Last few months I was searching for CI/CD Deployment but haven't understood a concept
    When I went through all your CI/CD videos then I get an idea of how real-time work happen. Very satisfied.
    Thank You Again !!

  • @vallabhanenivenkatanarayan6744
    @vallabhanenivenkatanarayan6744 6 років тому +3

    Sir
    Excellent video I never seen before, very nice explanation.
    I'm requesting you that, please clear my below doubts.
    1)In real time who will maintain ansible server.
    2)is the job will built if mobaxterm get inactive.
    3) please make a video on where the tests should be done in real time and what's the role of devops engineer after post build if test cases where failed and how to automate then.

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому +1

      Hi, Thanks for your comments. Please find my inline comments for your questions.
      1)In real time who will maintain ansible server.
      It’s purely depends on your project work culture. Mostly DevOps/Cloud Infra team manages it.
      2) is the job will built if mobaxterm get inactive.
      Mobaxterm is a tool which is used to connect remote servers. all your jobs runs on remote servers ( Jenkins). So your job runs even though it Mobaxterm is inactive
      3) please make a video on where the tests should be done in real time and what's the role of devops engineer after post build if test cases
      We are planning to make these videos. Please subscribe and follow us. You can find it soon.

  • @ChickChiquita523
    @ChickChiquita523 4 роки тому +1

    I am happy to share ..i made this setup on my own AWS by watching your vedios..Thanks shankar..for sharing your knowledge.

    • @ValaxyTechnologies
      @ValaxyTechnologies  4 роки тому

      It's my pleasure.
      Now you can follow us on Instagram as well
      instagram.com/valaxytechnologies/

  • @raghurammilkuri
    @raghurammilkuri 6 років тому +3

    Thanks good explanation, Please setup one project using
    Developers-->git------>s3(AWS S3 source)-->code Pilpeline (AWS)-->CodeDeploy (AWS)--->Target server (AWS Instance)
    Please setup a sample maven project setup
    Thanks in Advance...!
    Waiting for your reply

  • @muralimohan8551
    @muralimohan8551 2 роки тому +2

    Very simple and standard explanation. End to end process. Thank you so much

  • @thyagarajang2542
    @thyagarajang2542 4 роки тому +1

    Excellent Video. I was confused watching lot of videos on how ci/cd pipeline works. Good job sir. I am having a clear idea now.

  • @aniruddhsingh1725
    @aniruddhsingh1725 2 роки тому

    Thanks a lot for creating this playlist. I was so lost and then your videos came up as a saviour.

  • @CY8ES
    @CY8ES 5 років тому +2

    Thank you so much for these videos..I have been learning the DevOps methods from your videos and you are an awesome tutor

  • @hrishikeshkale6365
    @hrishikeshkale6365 2 роки тому +1

    Thank you so much . I watched the video recently and it was really helpful. Just a heads up to those who are going to watch this in future. PUBLISH OVER SSH plugin has been suspended by jenkins in JAN 2022. So we need to to do it with the help of "scppublisher" plugin . Hope this might help.

    • @ValaxyTechnologies
      @ValaxyTechnologies  2 роки тому

      Thanks you Hrishikesh, and thanks for your input to community about the ssh-plugin. it was suspended sometime back. Now Jenkins reenabled this plugin. So no deviation in this process.

  • @nileshdevrale8297
    @nileshdevrale8297 4 роки тому +2

    Team your all videos are very really nice to understand easily to anyone and all are followed very systematically. I have one question here i.e as per the pipeline build generates in Jenkins home directory, but in this video I did not understand how .war file got automatically transferred on Ansible server. I think that part is missing here . Please help us to clear that part.

  • @rajaregulavalasa8716
    @rajaregulavalasa8716 5 років тому +1

    Amazing knowledge and great teaching in simple words depicts the knowledge levels of the tutor.

  • @vadirajacharbg2261
    @vadirajacharbg2261 4 роки тому +1

    One of the most excellent videos which is best for beginners

  • @DigvijayKotekar
    @DigvijayKotekar 5 років тому +1

    Valaxy Technologies, Shankar Sir...Thank you very much This project, appreciate your effort. It helped me a lot to understand DevOps.

  • @ankitrawat721
    @ankitrawat721 5 років тому +2

    Hello, I am following Valaxy Technologies Videos, Video's demonstration is very highly real-world scenario-based, Can you also make video over Using git-->Jenkins-->Ansible-->Elasticbeanstalk Instances or AWS ECS (Docker-containers).

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      @ankit rawat - How does Ansible and ElasticBeanstalk work together, can you explain your use case.

  • @anilb6080
    @anilb6080 2 роки тому +1

    Perfect sir easy and simple configuration method.

  • @ajitkumarsahu1476
    @ajitkumarsahu1476 4 роки тому

    Perfect after watching both the video ansible installation and this video no issue at all project running successfully thanks sir great job

  • @chaaricreatives
    @chaaricreatives 2 роки тому

    Such a fabulous explanation Brother. Thanks for coming to UA-cam. God bless you. I m from Hyderabad KPHB, learned many many things from you.

  • @sudharsanpv
    @sudharsanpv 6 років тому +1

    sankar..u r awesome presenter...pls do share devops engineer daily roles n also interview questions...which will help us a lot

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому

      It is in the works. Will plan for it soon. Fingers crossed. Thanks for asking. Happy Learning 😀

  • @OddBallTrails
    @OddBallTrails 5 років тому +1

    Shankar sir.. please teach me. I am going through all of your lectures and finding you as the best mentor for myself. You are incredible.

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      You can reach us through here - ua-cam.com/users/valaxytechnologiesabout

  • @gnaneethi81
    @gnaneethi81 4 роки тому

    I have done this and got success this project . thank you. ansbile part i got error but verified another your vidio to setup ansible on redhat and overall it got success

  • @devopsaspire2225
    @devopsaspire2225 4 роки тому +1

    Liked the way video and real-time project is made. May i know why Ansible is more preferred over Jenkins for deployment ? Can you explain a more complex example in-order to know the edge of Ansible over Jenkins?
    Can you likewise help many of us with exceptions and questions while we making the project or general errors that we might face? Thanks.

    • @ValaxyTechnologies
      @ValaxyTechnologies  4 роки тому

      Thanks for your replies in other comments, We encourage community participation immensely as it builds skills for everyone. Continue to do so, We will help you along/
      Will consider your queries in the following streams.

    • @devopsaspire2225
      @devopsaspire2225 4 роки тому

      @@ValaxyTechnologies Thanks :) will do

  • @SNVPfamily
    @SNVPfamily 5 років тому +1

    One question... .war file exist in /var/lib/jenkins folder under webapp.. how you copied that under /opt folder??? Have you manually copied or it was created by any job???pls advice

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Nope. its copied through jenkins job.
      Thanks for your comment.
      Please join in below Facebook group to get in touch with you.
      facebook.com/groups/valaxy.aws.devops.gang/

  • @PawanMusing
    @PawanMusing 4 роки тому +1

    Neat & clean explanation understood clearly entire process

  • @ashu__risiofficial5887
    @ashu__risiofficial5887 4 роки тому +1

    Silent talent..Very interesting..

  • @quicksilver5413
    @quicksilver5413 4 роки тому +1

    Nothing but a great tutorial for learning jenkins. ;)

  • @derekmab7734
    @derekmab7734 5 років тому +8

    Thanks so much and I really enjoy your lectures !! however you said it is located on /opt/playbooks/webapp/targets/webapp.war on ansible server to copy/deploy it to the tomcat server. we have not seen how this war file got to this location from jenkins. I know in the previous video this war file ended up in tomcat using jenkins deploy to container. I am quite confused.

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому +1

      workspace directory path in Jenkins is /var/lib/jenkins/workspace/ under this. it creates a directory with your jobname//targets/ in this case Jobname: Projec-2 directory_specified_in_pom.xml = webapp war file name=webapp.war when we search for war file I check under workspace/jobname directory. here it found war file webapp/targets/webapp.war. same copied in/opt/playbooks directory on ansible server

    • @sandy4a8
      @sandy4a8 5 років тому

      @@ValaxyTechnologies Thanks for the wonderful lecture. It's really so great of you to share your knowledge. I've query over here. As you said in this comment I tired copying the war file from jenkins server to ansible server using the below command-
      scp webapp.war ansadmin@172.31.95.2xx:/opt/playbooks/webapp/target
      It is prompting for password of asnadmin. After giving the correct password, it is showing permission denied message as below-
      scp: /opt/playbooks/webapp/target/webapp.war: Permission denied
      Requesting you to help to sort out this. Thanks in advance!

    • @sandy4a8
      @sandy4a8 5 років тому

      Also, apart from this method i.e, copying war file from jenkins to ansible server, it would be great if you describe other way that how to add .war file to directory in ansible sever.

    • @kajalrai6681
      @kajalrai6681 5 років тому

      Did you get the answer to your question or else do you have any solution for this? Please reply

    • @poornimacr7736
      @poornimacr7736 5 років тому

      @@sandy4a8 Hi.. did you try adding ansadmin user in tomcat server as "useradd & passwd"? Hopefully, then it should resolve.

  • @austinregular9276
    @austinregular9276 6 років тому +4

    Dear Mentor -- this is an awesome demonstration. this has helped me a lot to understand the continuous deployment using jenkins and ansible.
    I have liked and subbed because of this video. real quality stuff.
    Waiting for the next session which covers the deployment of docker container from jenkins.
    any planned date like when you are going to post that video.

    • @austinregular9276
      @austinregular9276 6 років тому

      Dear mentor-- any planned date for project type 3?

  • @dreamcatcher9491
    @dreamcatcher9491 6 років тому +3

    Thanks a lot for such a wonderful video. Am looking for the next video but am not able to find it. Please upload it asap it would really help. Thanks a lot once again.

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому

      The foundation work for the next one had already begun with docker. Today we release how to install and launch your first docker container. Have a look - ua-cam.com/video/XT07rI9b7Go/v-deo.html
      The complete one will be in the future after we have covered the building blocks.

    • @ChickChiquita523
      @ChickChiquita523 6 років тому

      Hi Sir..Could you please share the link CI/CD pipeline that includes docker container.

  • @kanikagola9613
    @kanikagola9613 Рік тому +2

    I had a doubt, in my ansible server I am not able to find any playbooks folder under /opt or webapp folder, so how did you do that?

  • @SK-xi5ht
    @SK-xi5ht 6 років тому +5

    Hello Sir, I liked your video.
    In real time we have multiple environment and we need to deploy the code in different manner.
    So do we need multiple playbooks for each and every environment so that it accomplish the multiple task.
    Is there any other way so that we can write playbooks inside jenkins job rather than writing on to Ansible servers?

    • @Sri-mx7zj
      @Sri-mx7zj 5 років тому +1

      Ansible does the code deploy on multiple servers by running the playbook from ansible master node

    • @ameyathakur7475
      @ameyathakur7475 5 років тому

      You can specify the Ansible Roles for your environments.

  • @yupiee250
    @yupiee250 5 років тому +2

    Thx you bro very much

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      You are welcome, Dont forget to check out the other projects listed in the description :)

  • @nbhaskarreddy7071
    @nbhaskarreddy7071 4 роки тому +1

    Hi sir,
    i have one simple doubt how you moved warfile into ansible server, actually war file is in jenkins and tomcat server but in video you are showing in ansible server also src:/opt/playbooks/webapp/target/webapp.war, can you please clear my doubt.

    • @sheikhabubaker5552
      @sheikhabubaker5552 Рік тому

      I have the same doubt as I am implementing this project, I'm stuck if you got the resolution can you please tell me, how did he moved war file into ansible server ?

  • @AshishSharma-gz8pz
    @AshishSharma-gz8pz 6 років тому +1

    You explained very well, Please post next video so that i can learn how to deploy using docker container. pls pls sir do it asap..I will be thankful to you.

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому +1

      It takes times to package the content in small duration flawlessly, with multiple iterations and getting the explanation right. Think of it like shooting a movie, except that none of us here are skilled at video recording and editing. We are doing our best to release at your pace. Thanks for understanding.
      Meanwhile, we have enough content within the channel to keep an interested learner busy with cloud and devops for atleast couple of months. I would strongly recommend you go over to our playlists section, I am sure you will find something that resonates with your interests.
      Thanks again for your patronage.

    • @AshishSharma-gz8pz
      @AshishSharma-gz8pz 6 років тому

      Thanks for replying. Can i reach to you through any messanger or mail to clear doubts?

    • @AshishSharma-gz8pz
      @AshishSharma-gz8pz 6 років тому

      When will be next release ?

  • @bvr333
    @bvr333 5 років тому +1

    Great effort, amazing , awesome shankar garu

    • @archananarayana6123
      @archananarayana6123 4 роки тому

      Thanks for kind words...keep learning and sharing ...if you want to be a part of our facebook group please join in below link
      facebook.com/groups/valaxy.aws.devops.gang/

  • @sreeprakashneelakantan5051
    @sreeprakashneelakantan5051 5 років тому +1

    Very nice video and cleverly explained 🙏

  • @TorringtonFernandopulle
    @TorringtonFernandopulle 3 роки тому +1

    Superb explanation !!! .... Thank you .....

    • @ValaxyTechnologies
      @ValaxyTechnologies  3 роки тому

      You are welcome Torrington! Appreciate your comment.
      Do follow us on instagram/facebook for the latest updates.
      instagram.com/valaxytechnologies/?hl=en
      facebook.com/ValaxyTechnologies

  • @yamunauppicherla5172
    @yamunauppicherla5172 5 років тому +1

    Crystal clear explanation thank u so much .can u please tell how to use ansible for live deployment

  • @vijaykumar-qp6qj
    @vijaykumar-qp6qj 6 років тому +1

    I'm big fan of you sir waiting for your next video

  • @durbabanik3372
    @durbabanik3372 5 років тому +1

    Mind blowing explanation ,Thanks a lot

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      #Valaxy has a whole playlist dedicated for #DevOps Projects

  • @jamesdavidmurphy1
    @jamesdavidmurphy1 5 років тому +3

    Great video, thanks.
    Question: I dont understand how you can transfer the war file from Jenkins server to Ainsible server just using the remote directory (destination) of //opt/playbooks......if they are both on separate servers then wouldnt you need to provide a URL?
    Same question for when you execute the yaml file from Jenkins server

    • @kajalrai6681
      @kajalrai6681 5 років тому

      Did you get the answer to your question or else do you have any solution for this? Please reply

    • @jamesdavidmurphy1
      @jamesdavidmurphy1 5 років тому

      @@kajalrai6681 unfortunately I didnt recieve a response as yet. Only thing I can guess is that they are on different servers, but on the same network...so they can use relative path

    • @kajalrai6681
      @kajalrai6681 5 років тому

      @@jamesdavidmurphy1 thanks for ur response.

    • @devopsaspire2225
      @devopsaspire2225 4 роки тому

      Main goal is to get war on tomcat server to Ansible server, Ansible then can copy to the client system. Once we actually check post build actions , we used publish over ssh and there is only one target system.

  • @patelmalav
    @patelmalav 5 років тому

    thanks for amazing devops project #maven #jenkins #devops #ansible #git #aws #ec2

  • @raiyeshenzy1280
    @raiyeshenzy1280 4 роки тому

    Most valuable video sir 😊👌🏻I’m a devops engineer

    • @ValaxyTechnologies
      @ValaxyTechnologies  4 роки тому

      Thanks Rajesh,
      Please join our facebook group if you wish to get in touch with us.
      facebook.com/groups/valaxy.aws.devops.gang

  • @Revathi5
    @Revathi5 4 роки тому +1

    great job! it increased my confidence...Thank you for sharing your knowledge...

  • @shyamsundardharmarapu6181
    @shyamsundardharmarapu6181 2 роки тому

    Your videos are simply amazing andi.. Thanks for the knowledge..

  • @harishkolanu
    @harishkolanu 5 років тому +1

    its unable to copy war file to ansible system. in jenkins i configured publish over ssh and test configure also success. bt war file cant transfer to ansible system...

    • @I_AM_D24
      @I_AM_D24 5 років тому

      Same here bro...

    • @harishkolanu
      @harishkolanu 5 років тому +1

      @@I_AM_D24 change owenership of /opt/playbook/ directory. Chown -R ansadm:ansadm /opt/playbook

    • @I_AM_D24
      @I_AM_D24 5 років тому

      Thanks bro,but it's not working...

  • @radhikasharma5550
    @radhikasharma5550 5 років тому +1

    amazing videos, really very much helpful, request you to please make some videos on ansible and kubernetes, Thanks a lot

  • @pvpsk1955
    @pvpsk1955 5 років тому +1

    Dear Sir,
    As i have done same procedure mentioned in the video, but we have faced the below error in jenkins, can u help me out on this sir
    Waiting for Jenkins to finish collecting data
    [JENKINS] Archiving /var/lib/jenkins/workspace/helloworldproject/pom.xml to app/ansibleproject/1.0-SNAPSHOT/ansibleproject-1.0-SNAPSHOT.pom
    [JENKINS] Archiving /var/lib/jenkins/workspace/helloworldproject/target/ansibleproject.war to app/ansibleproject/1.0-SNAPSHOT/ansibleproject-1.0-SNAPSHOT.war
    channel stopped
    SSH: Failed to get hostname [ansibleserver: ansibleserver: Name or service not known]
    SSH: Connecting with configuration [ansible_server] ...
    SSH: Disconnecting configuration [ansible_server] ...
    SSH: Transferred 0 file(s)
    SSH: Failed to get hostname [ansibleserver: ansibleserver: Name or service not known]
    SSH: Connecting with configuration [ansible_server] ...
    SSH: EXEC: STDOUT/STDERR from command [ansible-playbook/opt/playbooks/copyfile.yml] ...
    bash: ansible-playbook/opt/playbooks/copyfile.yml: No such file or directory
    SSH: EXEC: completed after 213 ms
    SSH: Disconnecting configuration [ansible_server] ...
    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [127]]
    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
    Finished: UNSTABLE

  • @saberalidevops4386
    @saberalidevops4386 5 років тому +1

    Nice explanation sir. Thanks a lot

  • @balamurugansethuram701
    @balamurugansethuram701 6 років тому +1

    Really awesome videos.. Keep rocking !!!

  • @sureshkaranam4280
    @sureshkaranam4280 5 років тому +1

    Superb sir ...I ever seen this kind explanation

    • @archananarayana6123
      @archananarayana6123 4 роки тому

      To know more please join in our facebook group
      facebook.com/groups/valaxy.aws.devops.gang/

  • @toushya
    @toushya 5 років тому +1

    Hi Shankar, thanks for the wonderful video. Can you please make a similar devops video using chef as configuration mgmt tool? (I ask because AWS OpsWorks uses chef)

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Not in current scheme of things(including AWS OpsWorks); Maybe in future.

  • @ashok.9761
    @ashok.9761 4 роки тому +1

    i am facing one issue on ansible playbook source and destination in playbook sir

  • @girishbhaskaran6697
    @girishbhaskaran6697 4 роки тому

    Hi Shankar,
    Very good videos and congratulations for your efforts. I am a cyber security professional and i'd like to know the security flaws that as a professional we need to be aware of and advice our IT colleagues while they are setting up the Devops in any organization.
    Thanks

    • @ValaxyTechnologies
      @ValaxyTechnologies  4 роки тому

      Check out this Valaxy Udemy Course - Advanced Security: SecOps Automation for the cloud - www.udemy.com/course/aws-cloud-security-proactive-way/learn/?referralCode=71DC542AD4481309A441

  • @madhan2712
    @madhan2712 6 років тому +1

    Hello sir
    I am very much interested watching simple Devops-project,when you are going to upload remaining videos for complete of this simple Devops project..,plz share your inputs...

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому

      The building blocks for the next project is already on the way - Docker, Sonar etc.,. Check them out.

  • @cutegirlaarya7262
    @cutegirlaarya7262 4 роки тому +1

    Excellent explanation bro.. God bless you.. 👍

  • @pavanchiku3572
    @pavanchiku3572 2 роки тому +1

    Hi sir you said it is located on /opt/playbooks/webapp/targets/webapp.war on ansible server to copy/deploy it to the tomcat server. we have not seen how this war file got to this location from jenkins. I know in the previous video this war file ended up in tomcat using jenkins deploy to container. I am quite confused

  • @hopeetchie284
    @hopeetchie284 4 роки тому +1

    This is great. However i am getting an auth failure when configuring the publish over ssh with my ansible host credentials. please i need help to move past this step.

  • @rajasundra
    @rajasundra 5 років тому +1

    Very good video and Nice explanation!!!!

  • @healthybrain9072
    @healthybrain9072 3 роки тому +1

    Hello Shankar, Thanks for sharing your knowledge. Your videos have been very helpful. Pls I have one doubt. If you want to use ansible to deploy over many servers say like 100, Are we to set the password less authentication manually on each servers or there is another faster way. Your response would be appreciated

  • @anantkumar-jz2sx
    @anantkumar-jz2sx 5 років тому

    Awesome tutorial series. Thanks for creating this. Could you please help me understand where and how we run Junit? Testing phase is missing it seems.

  • @sarureddyreddy848
    @sarureddyreddy848 3 роки тому +1

    is real time environment and process also same right!

  • @sivapothula4638
    @sivapothula4638 3 роки тому

    Wow Addicted this Tutorial.
    Really helpful.👍

  • @sunnylucky5349
    @sunnylucky5349 5 років тому

    Thanks alot!!!!!!...Very Useful Videos !!!!..Awesome Work and Crystal Clear Explanation!!!!...Superb!!!!

  • @mohammedashraf250
    @mohammedashraf250 4 роки тому

    its really interesting sir..had fun by learning..

  • @apt7073
    @apt7073 4 роки тому

    Keep up the great work. I would love to see you create a CICD pipeline with IBM Open Liberty server. Thanks

  • @hprangana
    @hprangana 3 роки тому +2

    thanks a lot dude!

  • @SachinSharma-kk1up
    @SachinSharma-kk1up 4 роки тому +1

    Perfectly described ..thx a ton

    • @ashok0107
      @ashok0107 4 роки тому +1

      Did you understand how the .war file was copied into ansible server ...? if yes can u pls post that step ?

  • @SathishKumar-um1ti
    @SathishKumar-um1ti 5 років тому +2

    Nice explanation. I am a bit confused and got an error in giving the source files path. Error: "SSH: Transferred 0 file(s)" Which path need to set in the source files? please reply.

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Hi, Could you please give more light on your error.
      Thanks for your comment.
      Please join in below Facebook group to get in touch with you.
      facebook.com/groups/valaxy.aws.devops.gang/

    • @SathishKumar-um1ti
      @SathishKumar-um1ti 5 років тому

      @@ValaxyTechnologies ​ Valaxy Technologies I have given the source path /var/lib/jenkins/workspace/ansible/* and in remote dir /home/ansible/nginx/ansible/ (ansible server). The error am getting during the build SSH: Connecting from host
      SSH: Connecting with configuration [Ansible] ...
      SSH: Disconnecting configuration [Ansible] ...
      SSH: Transferred 0 file(s)
      Build step 'Send files or execute commands over SSH' changed build result to SUCCESS. It doesn't transfer the files from Jenkins server to ansible. Appreciate your help.

    • @arpangupta3691
      @arpangupta3691 4 роки тому

      @@SathishKumar-um1ti did u get the solution.I'm stuck with the same problem

  • @Hemanth_G
    @Hemanth_G 5 років тому

    Very helpful and perfect explanation

  • @GopalakrishnanN
    @GopalakrishnanN 5 років тому +1

    Very nice tutorial

  • @pranithrangarauth4502
    @pranithrangarauth4502 5 років тому +1

    Hi sir you are really awesome

  • @derekmab7734
    @derekmab7734 5 років тому +1

    Thanks very much for the clear explanation. One thing I was not sure of is where do we get that webapp.war file from? from some jenkins location or was it created in tomcat server when you deployed it using jenkins then you pulled it from tomcat server?

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Hi, war file is gentered by Jenkins. that is the purpose of build tool. Jenkins pull code from Git, build that code as war file and sent id to ansible. Ansible is going to publish on Tomcat Server.

    • @sandeepkumar-dw6xq
      @sandeepkumar-dw6xq 5 років тому

      Hi Abdelkader,i am also stuck at this,jenkins is not building webapp.war file on to the ansible server ,may i know if your problem is solved if so can you advise me too...

    • @harikiran4341
      @harikiran4341 5 років тому

      @@sandeepkumar-dw6xq use Maven

    • @sandeepkumar-dw6xq
      @sandeepkumar-dw6xq 5 років тому

      @@harikiran4341 yeah i did that after the next trial it was successful :)

  • @MrRanjitray
    @MrRanjitray 5 років тому

    Hallo Sir, Excellent videos for DevOps and very practical knowledge. Could you please and testing job also. Once deployment is onve then how testing starts. It would be great help.

  • @nagarajunagari2266
    @nagarajunagari2266 6 років тому +1

    If you deploy Multiple .war files into /wabapp folder in tomcat server through JENKINS,which war file can tomacat server serves ?. It is one of the useul pipeline video i have seen.Thank you so much sir.

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому

      You can deploy multiple war files. To access you should give name of war file name in the browser like below
      /

  • @k.r.mohanreddyk.r2350
    @k.r.mohanreddyk.r2350 6 років тому +1

    U can use first project tomcat server or different? like host michine

  • @krishnap8825
    @krishnap8825 4 роки тому

    Nice Explanation.
    can u please explain how files are copying from Windows machine to Ansible server.

  • @aravindpoojari7223
    @aravindpoojari7223 4 роки тому +1

    Hello Shankar,
    I would like to have job triggered when a new commit available but not on regular intervals using poll ssm.
    Is there a way?

  • @pawaryash007
    @pawaryash007 4 роки тому

    Interesting video. One question Lets say I have to get artifacts from artifactory and then deploy onto tomcat, How we can do it?

  • @sruthikuppili7828
    @sruthikuppili7828 5 років тому +1

    This is what I m waiting for ...tysm

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      You are welcome, We have an entire playlist dedicated for DevOps in #Valaxy Channel.

  • @munduscreatusest522
    @munduscreatusest522 5 років тому +1

    With ansible CD is better to use AWX and its Rest API.

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Do you meant to say, Trigger AWS APIs from Ansible for Continuous Delivery?

    • @munduscreatusest522
      @munduscreatusest522 5 років тому

      @@ValaxyTechnologies Yes you can do this but AWX is gui for ansible is a opensource Tower. And Better is to run ansible from AWX than Jenkins you can trigger AWX jobs from Jenkins after build by using AWX rest api or using AWX linux client.

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      @@munduscreatusest522 Ah, Foot-In-The-Mouth Brain-Fade moment. Interesting approach. But what benefit does this approach offer?
      Better Ansible management at the cost of adding another server to manage? How many AWX instances we need to be resilient?
      Need to ponder on those now.

    • @munduscreatusest522
      @munduscreatusest522 5 років тому

      @@ValaxyTechnologies Better info from ansible output and better debugging of errors. Also Pipeline is more human readable . You can setup one deploy job on jenkins for deploy and play for multiple environments changing only environment variable. Thanks that you save your time because is not needed to write huge code in groove in Jenkins :) lets try you will see. I have many environments and only one job on AWX and Jenkins only variables are changing.

  • @amrendra79
    @amrendra79 5 років тому

    Superb explanation.

  • @raghunath6279
    @raghunath6279 2 роки тому

    bro at 29:15time, as you said if we added one more playbook in the same test, the build will execute the previous playbook and preset playbook? or it will execute only the new playbook only?

  • @praveeng7734
    @praveeng7734 4 роки тому +1

    sir can we use "scp" or "nscp" command for copeing that .war file from jenkins to ansibule
    instead of using ssh over plugin is it pasible by using shell

    • @ValaxyTechnologies
      @ValaxyTechnologies  4 роки тому

      Hi Praveen,
      Yes you can do that.
      Now you can follow us on Instagram as well
      instagram.com/valaxytechnologies/

  • @ramsai09
    @ramsai09 5 років тому +1

    Excellent video... where is the destination folder is present in tomcat server? /opt/apache-tomcat-8.5.32/webapps??
    but u wrote as //opt//playbook in remote directory in post build actions.

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому +1

      Yes, becuase I am copying webapps file on to Ansible server /opt/playbook location. from there it pushed onto Tomcat server.

    • @ramsai09
      @ramsai09 5 років тому +1

      @@ValaxyTechnologies yes I Understood. but iam asking you to show the path of /opt/apache-tomcat-8.5.32/webapps

    • @venki090790
      @venki090790 5 років тому

      @@ramsai09 That path will be mentioned in the playbook copy.yml

  • @ashok0107
    @ashok0107 4 роки тому +1

    Almost half of the comments are about how the .war file was copied into Ansible ....!!! Please explain about that step ?

  • @kokasrikanth4323
    @kokasrikanth4323 5 років тому +1

    very helpful video

  • @saradhik5793
    @saradhik5793 5 років тому +1

    Can we modify playbooks which are already created or we have to create new playbooks always?

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Infrastructure (is)As Code - They are version controlled, create new feature branches, test and release.

  • @ramsai09
    @ramsai09 5 років тому +1

    Thanks a lot for such a wonderful video..I have one doubt. u said that we can deploy any number of servers by copying the IP address of nodes, for suppose if i want to deploy on 10 servers in that if any of the servers fails, fr suppose 6th server fails.

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Hope you understood that deployment can be done through Ansible. I need some more information reg your question to understand answer.
      Are you taking about server failure (infrastructure)? or application failure? in this videos I am taking about applications.
      in case of application failure, rerun the playbook to get it deployed on failure node. You may schedule a cronjob to run it in regularly.
      If you are talking about server then it come to infrastructure problem. Autoscaling or AMI can be used to re-create server quickly incase it is on AWS.

  • @amaranmani3599
    @amaranmani3599 5 років тому +1

    awesome, thank you so much for these videos.

    • @archananarayana6123
      @archananarayana6123 4 роки тому

      To know more please join in our facebook group
      facebook.com/groups/valaxy.aws.devops.gang/

  • @lakshayarora3935
    @lakshayarora3935 4 роки тому

    Great video.
    However, I have a query. I am building a maven job. However, the job gets stuck in between and finally fails with the error:
    JVM terminated unexpectedly with exit code 137. For this I tried to change min and max memory configurations in Jenkins settings (-Xmx512M -XX:MaxPermSize=512M). Still, the build takes a lot of time and finally fails.
    Could you please help to resolve this memory issue(or may be other)?? Also, tuned garbage collection. Do I need to create new instance with enhanced memory configuration??
    Appreciate your response

  • @manjunathmaller1134
    @manjunathmaller1134 5 років тому +1

    Another Awesome video

  • @chetanns2324
    @chetanns2324 4 роки тому

    Hi Shankar, Not able to transfer the .war file to ansible server ,it skips transferring the file to ansible and start running the copy.yml file
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3.869 s
    [INFO] Finished at: 2019-12-13T11:39:00+05:30
    [INFO] ------------------------------------------------------------------------
    Waiting for Jenkins to finish collecting data
    [JENKINS] Archiving /var/lib/jenkins/workspace/Godzilla_Maven_Sample/pom.xml to com.flexera/sample/0.0.1-SNAPSHOT/sample-0.0.1-SNAPSHOT.pom
    [JENKINS] Archiving /var/lib/jenkins/workspace/Godzilla_Maven_Sample/target/sample.war to com.flexera/sample/0.0.1-SNAPSHOT/sample-0.0.1-SNAPSHOT.war
    channel stopped
    SSH: Connecting from host [localhost.localdomain]
    SSH: Connecting with configuration [ansible_server] ...
    SSH: EXEC: STDOUT/STDERR from command [ansible-playbook /opt/Playbooks/copy.yml] ...
    PLAY [all_clienthosts] *********************************************************
    TASK [Gathering Facts] *********************************************************
    ok: [3.85.159.9]
    TASK [copy war into tomcat server] *********************************************
    An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
    fatal: [3.85.159.9]: FAILED! => {"changed": false, "msg": "Could not find or access '/opt/Playbooks/webapp/target/sample.war' on the Ansible Controller.
    If you are using a module and expect the file to exist on the remote, see the remote_src option"}
    PLAY RECAP *********************************************************************
    3.85.159.9 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
    Kindly can you help me ,if am missing anything here

  • @ramesha1735
    @ramesha1735 5 років тому

    yes, I am using publish over ssh plugin but war file not coping to /opt/playbooks/

    • @harishkolanu
      @harishkolanu 5 років тому

      i am getting same problem... if u got that problem please help me.

  • @shivprasad920
    @shivprasad920 6 років тому +1

    Jabardast video.

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому

      Thanks a lot. Please subscribe to our channel and share with your friends too.

    • @shivprasad920
      @shivprasad920 6 років тому +2

      Yes i am already a subscribed user. I want to know how many videos are there in this series ?
      And please make seperate playlist for each type of series so that it helps a lot. Thanks.

    • @ValaxyTechnologies
      @ValaxyTechnologies  6 років тому +1

      shivprasad Your wish is our command :)
      You are in playlist heaven: ua-cam.com/channels/_evcfxhjjui5hChhLE08tQ.htmlplaylists

  • @ramesha1735
    @ramesha1735 5 років тому +1

    Nice video

  • @ksivasankar9188
    @ksivasankar9188 5 років тому

    Hi sir, you mentioned in source path webapp/target/*.war but war file copy from jenkins means it will be in workspace?

  • @susmithachowdary833
    @susmithachowdary833 5 років тому +2

    doubt sir how did u get that webapp.war file in your ansible /opt/ file

    • @ValaxyTechnologies
      @ValaxyTechnologies  5 років тому

      Seems you called me to clarify your doubt right. as I explainedwar file generated by Jenkins as a build process

    • @vanipatoju6025
      @vanipatoju6025 4 роки тому

      @@ValaxyTechnologies sir, i couldnt find webapp.war file under /opt in ansible server

  • @yogireddy8129
    @yogireddy8129 4 роки тому

    everything is okay regarding clear explanation .....
    i have a query that how to rollback to github or (developer) if the code is not correct ??
    could you explain please??

    • @devopsaspire2225
      @devopsaspire2225 4 роки тому

      We can revert back to the commit where the code was working. Also we need to make sure the head is at the right place. Otherwise we might get a detached head. This applies for latest commit.
      But if you want to go back to certain commit, we do cherry-picking or otherwise request developer to undo changes and build from their local(which can be done if there are known and small changes).