Must have Vagrant plugins

Landrush If you’re a full-stack developer or otherwise involved in multi-tiered application development, you’ll often find your applications littered with various subdomains. For example api, kb, mail, etc. These can be incredibly cumbersome to setup locally when developing, and Landrush is the answer. Once installed, you’ll be able to configure countless subdomains with your Read more…

Ansible PHP7 (Ubuntu)

You can download and use the role here: https://github.com/litwicki/ansible-php7 roles/php7/tasks/main.yml — – name: fix proxy for Ubuntu shell: sudo echo “nameserver 8.8.8.8” | sudo tee /etc/resolv.conf > /dev/null – name: Update apt sudo: yes apt: update_cache=yes – name: Install System Packages sudo: yes apt: pkg={{ item }} state=latest with_items: – curl Read more…

Convert Bash script to Ansible Playbook

A simple bash script to provision a virtual host for a wordpress site, called within a Vagrant build. #!/bin/bash # Install wp-cli curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar php wp-cli.phar –info chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp wp –info # Setup Apache to properly rewrite the WordPress www subdomain sudo cp /var/www/myapp/provisioning/myapp.conf.vagrant Read more…