Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 3.14 KB

README.md

File metadata and controls

41 lines (33 loc) · 3.14 KB

Automating Common IT Infra Tasks

Repo that contains scripts to automate various infrastructure activities like developer workstation setup and configuration.

Setting up User Workstations

User workstations can be set up with the required development tools by running the following command in a terminal. Needs to be run by a user with sudo access. Script is tested to work on Ubuntu 18.04, 16.04 although it might work with newer versions too.

If you got sudo access, run this command

sudo mkdir -p /tmp/ansible-ttpl-it-automation && sudo wget -q "https://raw.githubusercontent.com/techjoomla/infra-automation/master/ttpl_install.sh" -O /tmp/ansible-ttpl-it-automation/ttpl_install.sh && sudo chmod +x /tmp/ansible-ttpl-it-automation/ttpl_install.sh && sudo /tmp/ansible-ttpl-it-automation/ttpl_install.sh

The script will set up all the tools defined in the environment-setup.yml file and also set up vhosts, each for each php version

Accessing sites

Installation Troubleshooting

nginx can not be started

  • Run command sudo nginx -t
    • If command shows error related to SSL certifcates not found for php5 sites, run below command (replace {machineusername} with your username)
    • sudo openssl req -new -nodes -x509 -subj "/C=IN/ST=Maharashtra/L=Pune/O=Chacha Chaudhary and Co./CN={machineusername}-php5.local" -days 3650 -keyout /etc/nginx/ssl/{machineusername}-php5.local.key -out /etc/nginx/ssl/{machineusername}-php5.local.crt
    • Then run command sudo service nginx restart
    • Then retry installation