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
heat_template_version: 2013-05-23 | |
description: Template for setting up a single RHEL 6.4 instance | |
parameters: | |
key_name: | |
description: Name of an existing keypair to enable SSH access to the instances | |
type: string | |
default: maish-test | |
flavor: | |
description: Flavor of node servers |
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
# Git docker container for working with Gerrit for OpenStack | |
# VERSION 0.0.1 | |
FROM ubuntu:14.04 | |
MAINTAINER Maish Saidel-Keesing "maishsk@gmail.com" | |
# Set environment variables | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV git_username "Maish Saidel-Keesing" | |
ENV git_email "email_address@email.com" |
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
ssh_known_hosts: | |
- present | |
- user: root | |
- fingerprint: 9f:xx:9e:70:d3:85:82:8f:72:9e:be:74:71:d8:1a:74 | |
- fingerprint: bf:88:d4:37:23:e8:98:1a:a3:98:c9:b3:xx:d0:f5:31 | |
- fingerprint: 04:4a:0c:1f:5c:xx:58:b1:00:4f:6d:00:8d:7c:cd:ef | |
- fingerprint: 2f:9b:5d:4a:xx:a8:28:00:c3:14:e0:3d:8d:18:4a:a1 | |
- fingerprint: e3:26:2c:xx:e0:d6:59:0e:0a:f7:99:4e:71:85:f7:21 | |
- fingerprint: 40:30:6a:xx:b4:99:59:54:74:2e:fd:89:bc:8e:62:90 |
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
Hostname,IP | |
host49,192.168.100.1 | |
ESX2,192.168.100.2 | |
ESX3,192.168.100.3 | |
ESX4,192.168.100.4 | |
ESX5,192.168.100.5 | |
ESX6,192.168.100.6 | |
ESX7,192.168.100.7 | |
ESX8,192.168.100.8 | |
ESX9,192.168.100.9 |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Sample Template EC2InstanceWithSecurityGroupSample: Create an Amazon EC2 instance running the Amazon Linux AMI. The AMI is chosen based on the region in which the stack is run. This example creates an EC2 security group for the instance to give you SSH access. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.", | |
"Parameters" : { | |
"KeyName": { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance", | |
"Type": "AWS::EC2::KeyPair::KeyName", | |
"ConstraintDescription" : "must be the name of an existing EC2 KeyPair." |
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 | |
## Script will get all AZ info from AWS through awscli | |
## Required: awscli and jq | |
AZINFO=$(for i in $(aws ec2 describe-regions | jq .Regions[].RegionName | tr -d '"') | |
do | |
aws ec2 describe-availability-zones --region $i | jq .AvailabilityZones[].ZoneName | tr -d '"' | |
done | sort) |
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
blob=`aws kms encrypt --key-id $keyid --plaintext "hello_world" --profile work --query CiphertextBlob --output text` | |
ssmblob=`aws ssm get-parameter --name "encrypted_password" --profile work --with-decryption | jq .Parameter.Value | tr -d '"'` | |
aws kms decrypt --ciphertext-blob fileb://<(echo $ssmblob | base64 -d) --output text --query Plaintext --profile work | base64 -d |
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
aws ec2 create-vpc --cidr-block 192.168.90.0/24 |
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
Description: | |
This template deploys a VPC. | |
Parameters: | |
EnvironmentName: | |
Description: An environment name that will be prefixed to resource names | |
Type: String | |
Default: "testvpc" | |
VpcCIDR: |
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
- name: VPC creation playbook | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
vars_files: | |
- vars/vpc_vars.yml | |
tasks: | |
- name: Create a VPC |
OlderNewer