This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/thom8/drupal8-vagrant.git | |
cd drupal8-vagrant | |
if !(vagrant plugin list | grep -q vagrant-hostsupdater); then | |
vagrant plugin install vagrant-hostupdater | |
fi | |
vagrant up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: "tag_UID_{{ (branch+project) | checksum }}" | |
connection: local | |
gather_facts: no | |
tasks: | |
- name: Terminate existing instance | |
local_action: ec2 | |
state=absent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: "tag_UID_{{ (branch+project) | checksum }}" | |
gather_facts: True | |
connection: local | |
vars: | |
- dns_zones: | |
- domain1.com | |
- domain2.com | |
- branch_shortname: "{{ branch | basename }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Find all boxes which have updates | |
AVAILABLE_UPDATES=`vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2` | |
if [ ! ${#AVAILABLE_UPDATES[@]} -eq 0 ]; then | |
for box in $AVAILABLE_UPDATES ; do | |
echo "Found an update for $box" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Custom project config. | |
drush_version: "7.0.0-rc2" | |
drush_keep_updated: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
conf_files = ["config.yml", "drupal8.make.yml"] | |
conf_files.each do |conf| | |
open(conf, 'wb') do |file| | |
file << open("https://raw.githubusercontent.com/drupalmel/beetbox/master/#{conf}").read | |
end | |
end | |
eval(open("https://raw.githubusercontent.com/drupalmel/beetbox/master/Vagrantfile") {|f| f.read }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
machine: | |
python: | |
version: 2.7.6 | |
environment: | |
BEETBOX_HOME: /home/ubuntu/beetbox | |
BEETBOX_DEPENDENCIES: https://raw.githubusercontent.com/drupalmel/beetbox/master/tests/dependencies.sh | |
dependencies: | |
pre: | |
- curl -fsSL $BEETBOX_DEPENDENCIES | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
Vagrant.require_version '>= 1.8.0' | |
cwd = File.dirname(File.expand_path(__FILE__)) | |
config_dir = '.beetbox/' | |
project_config = "#{cwd}/#{config_dir}config.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
DVM_CONFIG=${1:-'config.yml'} | |
if [ ! -f "$DVM_CONFIG" ]; then | |
echo "Drupal VM config file not found." | |
exit 1 | |
else | |
# Remap Drupal VM config variables. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this Vagrantfile to an empty directory and run vagrant up -- http://beetbox.rtfd.org | |
require 'open-uri' | |
require 'fileutils' | |
cwd = File.dirname(File.expand_path(__FILE__)) | |
lconfig = "#{cwd}/.beetbox/config.yml" | |
FileUtils::mkdir_p "#{cwd}/.beetbox" | |
open(lconfig, 'wb') << open("https://gist.githubusercontent.com/thom8/4e01f75e0be7b71f05b9/raw/config.yml").read unless File.exist?(lconfig) | |
eval(open("https://raw.githubusercontent.com/beetboxvm/beetbox/master/Vagrantfile") {|f| f.read }) |
OlderNewer