If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:
Install Docker for Mac if you have not already.
| brew install vagrant qemu | |
| #Due to dependency errors, we must install vbguest first.. | |
| vagrant plugin install vagrant-vbguest | |
| vagrant plugin install vagrant-qemu | |
| #cd to working dir you like to keep your vagrant files | |
| cd ~/VM-and-containers/VagrantMachines/M1-vagrantfiles/ubuntu18-generic-64/ | |
| #Create a vagrant file | |
| $EDITOR Vagrantfile |
| # Force the system to unmount any previously found file systems | |
| d-i preseed/early_command string umount /media || true | |
| # We are using RAID as our method - This is important | |
| d-i partman-auto/method string raid | |
| # Define which disks we want to use in our RAID configuration | |
| d-i partman-auto/disk string /dev/sda /dev/sdb | |
| # Remove any previous LVM metadata | |
| d-i partman-lvm/device_remove_lvm boolean true | |
| # Remove any previous MD metadata | |
| d-i partman-md/device_remove_md boolean true |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| variable "hcloud_token" { | |
| } | |
| provider "hcloud" { | |
| token = "${var.hcloud_token}" | |
| } | |
| resource "hcloud_server" "kube-master" { | |
| name = "kube-master" | |
| image = "ubuntu-18.04" |
| #!/usr/bin/perl | |
| $REGEXP = shift || die "no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!"; | |
| @data = qx</usr/sbin/postqueue -p>; | |
| for (@data) { | |
| if (/^(\w+)(\*|\!)?\s/) { | |
| $queue_id = $1; | |
| } | |
| if($queue_id) { |
If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:
Install Docker for Mac if you have not already.
| variable "socket" {} | |
| variable "BLOG_HOST" {} | |
| variable "EMAIL_LETSENCRYPT" {} | |
| variable "DOCKER_PREFIX" { default = "ghost" } | |
| variable "image_letsencrypt" { default = "jrcs/letsencrypt-nginx-proxy-companion:v1.4" } | |
| variable "image_nginx_proxy" { default = "jwilder/nginx-proxy:alpine" } | |
| variable "image_ghost" { default = "ashald/alpine-ghost:hydrogen" } |
| # Do nothing when a ubt device is attached | |
| attach 999 { | |
| device-name "ubt[0-9]+"; | |
| }; | |
| detach 999 { | |
| device-name "ubt[0-9]+"; | |
| }; | |
| # Do not even load ubt |
| #! /bin/bash | |
| wordpressPath=/srv/wp01 | |
| wordpressName=wordpress01 | |
| wordpressPwd=pAssw0rd | |
| wordpressUrl=wordpress01.example.com | |
| ################################## | |
| mkdir -p "$wordpressPath"/db |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :