Apache configuration Automation based on location

Hi

I need to find a way to automate the deployment of my apache configuration to a few servers. I make change frequently on apache/conf/... etc, and I usually do this manually by copying files to each servers(and country config path)and restart apache servers.Source file will be like california.config,Newyork.config.

It would be nice if I could give git link with revision number, and it automates the deployment process.

/etc/httpd/conf/vhosts/Calfornia
/etc/httpd/conf/vhosts/NewJersy
/etc/httpd/conf/vhosts/Newyork

Welcome naresh2389,

I have a few to questions pose in response first:-

  • What have you tried so far?
  • What output/errors do you get?
  • What OS and version are you using?
  • What are your preferred tools? (C, shell, perl, awk, etc.)
  • What logical process have you considered? (to help steer us to follow what you are trying to achieve)

Most importantly, What have you tried so far?

There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.

We're all here to learn and getting the relevant information will help us all.

Kind regards,
Robin