@@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
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.
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 !!
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.
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.
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
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.
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.
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.
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).
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
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.
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.
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
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/
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.
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
@@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!
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.
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.
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.
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.
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?
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.
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 ?
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.
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.
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/
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
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 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
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.
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...
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
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)
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
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
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...
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
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.
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
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.
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/
@@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.
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?
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.
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...
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.
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 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.
@@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.
@@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.
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?
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
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.
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.
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.
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
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
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.
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??
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).
Perfect, With your playlist I am feeling like I executed a DevOps project. Thanks a lot
You are welcome, How did you discover our playlist? Thanks
could you please send me your contact number to my mail i have doubt in these video
@@ValaxyTechnologies h the h5
@@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
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.
from where you got the 26 videos,i cant find in playlist
@@dhivyabharathi2025 ya right im also not able to find.
u got dhivya?
😢😢😮😮😮😢😢😢🎉 😢🎉🎉😂6,16,17,18,19,20 😢😅jù
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 !!
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.
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.
I am happy to share ..i made this setup on my own AWS by watching your vedios..Thanks shankar..for sharing your knowledge.
It's my pleasure.
Now you can follow us on Instagram as well
instagram.com/valaxytechnologies/
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
Very simple and standard explanation. End to end process. Thank you so much
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.
Thanks a lot for creating this playlist. I was so lost and then your videos came up as a saviour.
Thank you so much for these videos..I have been learning the DevOps methods from your videos and you are an awesome tutor
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.
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.
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.
Amazing knowledge and great teaching in simple words depicts the knowledge levels of the tutor.
One of the most excellent videos which is best for beginners
Valaxy Technologies, Shankar Sir...Thank you very much This project, appreciate your effort. It helped me a lot to understand DevOps.
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).
@ankit rawat - How does Ansible and ElasticBeanstalk work together, can you explain your use case.
Perfect sir easy and simple configuration method.
Keep watching!
Perfect after watching both the video ansible installation and this video no issue at all project running successfully thanks sir great job
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.
sankar..u r awesome presenter...pls do share devops engineer daily roles n also interview questions...which will help us a lot
It is in the works. Will plan for it soon. Fingers crossed. Thanks for asking. Happy Learning 😀
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.
You can reach us through here - ua-cam.com/users/valaxytechnologiesabout
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
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.
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.
@@ValaxyTechnologies Thanks :) will do
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
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/
Neat & clean explanation understood clearly entire process
Glad you liked it
Silent talent..Very interesting..
Oh! Do try out project 1/3, you may like it!!
Nothing but a great tutorial for learning jenkins. ;)
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.
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
@@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!
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.
Did you get the answer to your question or else do you have any solution for this? Please reply
@@sandy4a8 Hi.. did you try adding ansadmin user in tomcat server as "useradd & passwd"? Hopefully, then it should resolve.
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.
Dear mentor-- any planned date for project type 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.
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.
Hi Sir..Could you please share the link CI/CD pipeline that includes docker container.
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?
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?
Ansible does the code deploy on multiple servers by running the playbook from ansible master node
You can specify the Ansible Roles for your environments.
Thx you bro very much
You are welcome, Dont forget to check out the other projects listed in the description :)
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.
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 ?
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.
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.
Thanks for replying. Can i reach to you through any messanger or mail to clear doubts?
When will be next release ?
Great effort, amazing , awesome shankar garu
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/
Very nice video and cleverly explained 🙏
Superb explanation !!! .... Thank you .....
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
Crystal clear explanation thank u so much .can u please tell how to use ansible for live deployment
I'm big fan of you sir waiting for your next video
Mind blowing explanation ,Thanks a lot
#Valaxy has a whole playlist dedicated for #DevOps Projects
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
Did you get the answer to your question or else do you have any solution for this? Please reply
@@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
@@jamesdavidmurphy1 thanks for ur response.
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.
thanks for amazing devops project #maven #jenkins #devops #ansible #git #aws #ec2
and #valaxy :)
Most valuable video sir 😊👌🏻I’m a devops engineer
Thanks Rajesh,
Please join our facebook group if you wish to get in touch with us.
facebook.com/groups/valaxy.aws.devops.gang
great job! it increased my confidence...Thank you for sharing your knowledge...
Wonderful!
Your videos are simply amazing andi.. Thanks for the knowledge..
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...
Same here bro...
@@I_AM_D24 change owenership of /opt/playbook/ directory. Chown -R ansadm:ansadm /opt/playbook
Thanks bro,but it's not working...
amazing videos, really very much helpful, request you to please make some videos on ansible and kubernetes, Thanks a lot
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
Nice explanation sir. Thanks a lot
Really awesome videos.. Keep rocking !!!
Superb sir ...I ever seen this kind explanation
To know more please join in our facebook group
facebook.com/groups/valaxy.aws.devops.gang/
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)
Not in current scheme of things(including AWS OpsWorks); Maybe in future.
i am facing one issue on ansible playbook source and destination in playbook sir
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
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
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...
The building blocks for the next project is already on the way - Docker, Sonar etc.,. Check them out.
Excellent explanation bro.. God bless you.. 👍
Thank you so much 🙂
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
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.
Very good video and Nice explanation!!!!
You are welcome. Do check out #valaxy playlists
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
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.
is real time environment and process also same right!
yes
Wow Addicted this Tutorial.
Really helpful.👍
Thanks alot!!!!!!...Very Useful Videos !!!!..Awesome Work and Crystal Clear Explanation!!!!...Superb!!!!
its really interesting sir..had fun by learning..
Keep up the great work. I would love to see you create a CICD pipeline with IBM Open Liberty server. Thanks
That might not happen, anytime soon
thanks a lot dude!
Happy to help!
Perfectly described ..thx a ton
Did you understand how the .war file was copied into ansible server ...? if yes can u pls post that step ?
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.
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/
@@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.
@@SathishKumar-um1ti did u get the solution.I'm stuck with the same problem
Very helpful and perfect explanation
Very nice tutorial
Hi sir you are really awesome
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?
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.
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...
@@sandeepkumar-dw6xq use Maven
@@harikiran4341 yeah i did that after the next trial it was successful :)
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.
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.
You can deploy multiple war files. To access you should give name of war file name in the browser like below
/
U can use first project tomcat server or different? like host michine
Nice Explanation.
can u please explain how files are copying from Windows machine to Ansible server.
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?
#yes
@@ValaxyTechnologies can you point me to that?
Interesting video. One question Lets say I have to get artifacts from artifactory and then deploy onto tomcat, How we can do it?
This is what I m waiting for ...tysm
You are welcome, We have an entire playlist dedicated for DevOps in #Valaxy Channel.
With ansible CD is better to use AWX and its Rest API.
Do you meant to say, Trigger AWS APIs from Ansible for Continuous Delivery?
@@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.
@@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.
@@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.
Superb explanation.
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?
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
Hi Praveen,
Yes you can do that.
Now you can follow us on Instagram as well
instagram.com/valaxytechnologies/
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.
Yes, becuase I am copying webapps file on to Ansible server /opt/playbook location. from there it pushed onto Tomcat server.
@@ValaxyTechnologies yes I Understood. but iam asking you to show the path of /opt/apache-tomcat-8.5.32/webapps
@@ramsai09 That path will be mentioned in the playbook copy.yml
Almost half of the comments are about how the .war file was copied into Ansible ....!!! Please explain about that step ?
very helpful video
Can we modify playbooks which are already created or we have to create new playbooks always?
Infrastructure (is)As Code - They are version controlled, create new feature branches, test and release.
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.
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.
awesome, thank you so much for these videos.
To know more please join in our facebook group
facebook.com/groups/valaxy.aws.devops.gang/
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
Another Awesome video
There is more to the part, #Valaxy Project 03, 04
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
yes, I am using publish over ssh plugin but war file not coping to /opt/playbooks/
i am getting same problem... if u got that problem please help me.
Jabardast video.
Thanks a lot. Please subscribe to our channel and share with your friends too.
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.
shivprasad Your wish is our command :)
You are in playlist heaven: ua-cam.com/channels/_evcfxhjjui5hChhLE08tQ.htmlplaylists
Nice video
Hi sir, you mentioned in source path webapp/target/*.war but war file copy from jenkins means it will be in workspace?
doubt sir how did u get that webapp.war file in your ansible /opt/ file
Seems you called me to clarify your doubt right. as I explainedwar file generated by Jenkins as a build process
@@ValaxyTechnologies sir, i couldnt find webapp.war file under /opt in ansible server
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??
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).