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…

RTFM: Ansible Docs Lifesaver

It’s easy for a developer to reference the mantra “RTFM” (read the f***ing manual) but often they’re really long so that’s hard! Thankfully that paid off and in case anyone else finds Ansible’s Documentation overwhelming, I wanted to point out a lifesaver configuration option: roles_path = /path/to/roles:/another/path/to/roles Now we can 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…