## Section
Lorem ipsum dolor sit amet.
![alt text](assets/image.png)
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
# /etc/pf-vagrant.conf | |
# sudo pfctl -ef /etc/pf-vagrant.conf | |
rdr-anchor "forwarding" | |
load anchor "forwarding" from "/etc/pf.anchors/vagrant.apache.forwarding" |
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
# /etc/pf.anchors/vagrant.apache.forwarding | |
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8080 | |
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 443 -> 127.0.0.1 port 8443 |
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 : | |
Vagrant.configure(2) do |config| | |
# ... | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.network "forwarded_port", guest: 443, host: 8443 | |
# ... |
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
# - Connection Settings - | |
listen_addresses = '*' # what IP address(es) to listen on; |
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
# TYPE DATABASE USER ADDRESS METHOD | |
# IPv4 local connections: | |
host all all 0.0.0.0/0 md5 |
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
$ vagrant ssh-config | |
Host default | |
HostName 127.0.0.1 | |
User deploy | |
Port 2222 | |
UserKnownHostsFile /dev/null | |
StrictHostKeyChecking no | |
PasswordAuthentication no | |
IdentityFile /Users/akirkpatrick/Virtualization/SomeVagrantBox/private_key |
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
import os | |
labels = [ | |
{ | |
'server': 'something', | |
'environment': 'production' | |
'client': 'pizza', | |
'service': 'orders', | |
'component': 'database' | |
} |
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
# This will upgrade PIP 7.1 to PIP 10.x, which will break PIP | |
#sudo pip install --upgrade pip | |
# This is the last version of PIP that will work with CentOS/RHEL 6 | |
sudo pip install pip==9.0.3 | |
# Installing collected packages: pip | |
# Found existing installation: pip 7.1.0 | |
# Uninstalling pip-7.1.0: | |
# Successfully uninstalled pip-7.1.0 |
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
# Fetch the VPC as a Data Source | |
data "aws_vpc" "vpc" { | |
filter { | |
name = "tag:Name" | |
values = ["vpc-name"] | |
} | |
} | |
# Fetch the Subnet IDs from the VPC | |
data "aws_subnet_ids" "public" { |