I would like to use chef to deploy my web application code on production server. I’ve successfully bootstrap servers
Can you please guide me to implement cookbook
- I’ve jenkins setup in environment.
- Jenkins continuously build and create artifacts in Jenkins work space in 4 zip file formats.
- now I would like to deploy this 4 zip file on production server using chef and wanted trigger chef run list in Jenkins pipeline
I would like to implement below steps in cookbook:
Stop existing apache2 and tomcat services on production server
Newly created 4 zip files copy & extract on production server /opt/ location
I would like to copy mysql driver file from /home/ directory of production server to /opt/application directory location
set environment variable like . ./setantenv.sh from application directory
execute build command on ant clean all on server
start apache2 and tomcat service again