I hereby claim:
- I am jeffbrl on github.
- I am jbl2 (https://keybase.io/jbl2) on keybase.
- I have a public key ASDzY1kXVhRrICyL8LKOAHX_wAHqxYWVL3MzY0_OiDZ24go
To claim this, I am signing this object:
*** Settings *** | |
Documentation Check arithmetic operations | |
Resource ${EXEC_DIR}/resources/keywords.txt | |
# currently only prints to output.xml | |
Suite Setup math.setup | |
Suite Teardown math.teardown | |
*** Variables *** |
#!/bin/bash -xe | |
apt-get -y update | |
apt-get install -y apache2 | |
echo `hostname` > /var/www/html/index.html | |
echo '<br><br>' >> /var/www/html/index.html | |
# create ~ 12K of random text | |
base64 /dev/urandom | head -c 10000 >> /var/www/html/index.html |
system { | |
login { | |
user ansible { | |
class super-user; | |
authentication { | |
ssh-rsa "{{ ansible_public_key }}"; | |
} | |
} | |
} | |
} |
# Adapted from tips at https://blog.gruntwork.io/how-to-manage-terraform-state-28f5697e68fa | |
provider "aws" { | |
region = "us-east-1" | |
} | |
resource "aws_s3_bucket" "terraform_state" { | |
bucket = "uniqueBuckeName" | |
# Enable versioning so we can see the full revision history of our | |
# state files |
I hereby claim:
To claim this, I am signing this object:
AWSTemplateFormatVersion: 2010-09-09 | |
Description: >- | |
AWS CloudFormation template to deploy a VPC with VPC Ingress Routing | |
Parameters: | |
KeyName: | |
Description: Name of an existing EC2 KeyPair to enable SSH access to the instances | |
Type: String | |
AmazonLinuxAMI: | |
Type: "AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>" | |
Default: "/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2" |
import logging | |
import os | |
import socket | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
# use static IP of public DNS (e.g., 8.8.8.8) | |
IP = os.environ['ip'] |
module "vpc-one" { | |
source = "terraform-aws-modules/vpc/aws" | |
version = "1.53.0" | |
name = "terraform-vpc-one" | |
cidr = "10.1.0.0/16" | |
azs = ["ap-northeast-1a", "ap-northeast-1c"] |
aws ec2 describe-images --filters "Name=name,Values=cisco-CSR*" \ | |
--query 'Images[].[ImageId,Name]' --output text --region us-west-1 | grep -m5 "ami-" |
#!/bin/bash | |
# | |
# Jeff Loughridge | |
# July 2014 | |
# jeffl at brooksconsulting-llc.com | |
# enable IPv6 forwarding and ND proxying | |
echo net.ipv6.conf.all.proxy_ndp=1 >> /etc/sysctl.conf | |
echo net.ipv6.conf.all.forwarding=1 >> /etc/sysctl.conf |