@@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.
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.
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
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.
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
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.
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?
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.
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?
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
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/
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).
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.
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...
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.
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
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.
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.
Hi my friend, thank you for your efforts, my question is how did you get/moved webapp.war to ansible server from the git repo while ansible server just created and configured in 14:15 ?! while jenkins&ansibile ssh authentication config was created in 23:40?
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).
In 29:10 , you said we can add another task on playbook to install tomcat server, how can i install it while the aws instance is not available or do i need to create the tomcat instance manually then install the tomcat package ?
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.
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.
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, thanks that was great explanation, 1 question I have if we enable poll SCM, then if any changes will happen Jenkins will automatically start building the job according to Crontab but How to know which git repo triggered the jenkins job ? There will be multiple repos and whenever commits has happened these repo Jenkins job will trigger
I didnt get your questions. But let me try to answer it. While creating your job you should give github URL. if something change in that git URL poolscm triggers job.
sir there no pom.xml file in your github due to which i am unable to build using jenkins. Can u help as i found this playlist is very useful for devops .
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 ?
hi i like ur videos a lot but i have got a question in this video what if there are multiple target machines and its really hectic to create users and add ssh key to all the target machines.
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
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.
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 sir, In last video means sample devops project 1 , you didn't use ansible for deplyoing . In this video you used ansible . My question what will be the advantage of using ansible in deploying . could you please explain this ? how it makes different
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
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...
hello sir, Thanks for sharing your knowledge. Sir, I have one doubt? if we have an application with Database then how could we upload DB into the console? . in real-time also will we use a tomcat server for java projects?
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 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-XT07rI9b7Go.html The complete one will be in the future after we have covered the building blocks.
Thanks for the video. During post-build action, copying war file from the source to destination did not get where did you get the source path i.e webappstarget/*.war.
Hi, I have scenario like jenkins and ansible server two different aws ec2 servers i have been trying to deploy an app by using jenkins pipeline. Please tell me how to integrate jenkins and ansible b/w two different sever. Please suggest how write jenkins pipeline job
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
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
Hi.... helpful video.... i have a question.... if we can execute cicd through the help of cron according to previous video then why we need ansible for the same?.......... your answer will be helpful for me
проект Very cool project, but I have a problem. Not created .war file on the ansible server. How can this be solved? It is impossible to integrate into the chain git+jenkins+ansible+tomcat Ansible itself. Without ansible works. C Ansible no.
Source file location u should have entered complete path i.e. , opt/playbook/webapp/target/*. war But u did half of work above and rest in remote directory?
one doudt how jenkins knows to place the war file in ansible server in /opt/playbooks/target/webapp.war,, we did not create any /opt/playbooks/target directories in ansible server any reply please
Thanks alot Sir . nice explanation. I have one doubt if i want to deploy the code into 10 servers same time , every server need to configure in jenkins server or any other procedure is there . pls help me
that is where ansible comes in to picture. Ansible can able to deploy on multiple servers at the same time. follow our next video simple devops project 3. its there.
Hello Sir, this is Rishikesh from Pune. Thanks to Shankar sir for your efforts in making things easier. I have succefuly completed your first project for CICD. But for this i got some difficulties while performing. These are 1) while performing the keyless authentication, i am not able to connect to the target machine 2) Bcz of that in configure section the test configuration is failing. 3) In this video you r operating the services with 'ansadmin'. But i have to use ec2-user. how can i make the relevant changes ?? I will be waiting for your rply.. Thank you again
Hi sir, whenever developers are committed code to GitHub Jenkins take that code and generate package. If I run the job 2nd time it will delete old package and it will create new package means it will override. If something goes wrong with new package how to rollback previous code? Plz help me.
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.
hello sir, how you created webapp.war file in ansible server(directory /opt/playbooks/webapp/target/) to deploy to tomcat server...? please share the steps to create webapp.war in ec2 instances
Hello Madhan, webapp.war file is copied to ansible(/opt/playbooks/webapp/target) using the first step using over SSH plugin Then the next step was to run a playbook to copy this war file in ansible to Tomcat webapps. Hope this clears your doubt.
Hi Sir, here we have copied the war into webapps but where we can write step to stop tomcat first before deploying war file and start after war copied. Please reply I am confused here.
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
Hi sir, Actually i am looking to do deployments through ansible but the prblm is I have to deploy war files through jump server and deployed into remote server is it possible?
really informative video. thankyou sir.i got one doubt.as war file forms in workspace directory how come path given in video in source files is webapp/target/*.war. could u explain it.
how can we automate this ansible setup since you are doing all these manually generate ssh copy them to nodes and adding ansadmin to user,if we have 100s of server doing them manually wil take lot of time, so can we automate them.
Why we are adding user into visudo file it is must for giving root access for that user? and it is necessary for installing phython package into tomcat server?
Nagesh, because user may perform administrative tasks like install, manage users, manage file etc.. on the target system. So we should give sudo access for this. python packages are necessary to install ansible. because ansible developed on python. you can check out the same DevOps project course with the latest updates in the udemy. www.udemy.com/course/valaxy-devops/?referralCode=8147A5CF4C8C7D9E253F