This file contains hidden or 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
| [Gist Page] | |
| info.redhatgov.io/openshift | |
| [Lab Guide] | |
| http://redhatgov.io/workshops/openshift_101_dcmetromap/ | |
| [OpenShift Console] | |
| https://ocp-devsecops.redhatgov.io | |
| [Terminal] |
This file contains hidden or 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 | |
| hostname=$1 | |
| ipaddress=$2 | |
| event=$3 | |
| echo $hostname $ipaddress $event | |
| if [ $event == "HostUp" ]; | |
| then |
This file contains hidden or 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 | |
| apt update | |
| apt install python-pip -y | |
| mkdir -p /var/log/webhook | |
| git clone https://github.com/lcc2207/scalr-command-webhook.git /opt/command-webhook | |
| apt-get update | |
| apt-get install -y --no-install-recommends python python-dev python-pip uwsgi uwsgi-plugin-python |
This file contains hidden or 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 | |
| oldconfigname="$1" | |
| newconfigname="$2" | |
| ami="$3" | |
| KEYNAME="my_keypair_name" | |
| ASGROUP="my_autoscaling_group_name" | |
| SECURITYGROUP="sg-1234" | |
| INSTANCETYPE="t2.micro" |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # set SSE on all existing objects | |
| #usage: encrypt_all_objects.py bucketname | |
| import sys | |
| import boto | |
| from boto import connect_s3 |
This file contains hidden or 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 re | |
| import boto3 | |
| import csv | |
| from botocore.exceptions import ClientError | |
| ec2 = boto3.client('ec2') | |
| def get_snapshots(): | |
| return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots'] |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Script prerequisite > install jq > https://stedolan.github.io | |
| # ******************************************************************************************** | |
| # UPDATE: Check out Robert's repo here https://github.com/robertpeteuil/terraform-installer | |
| # Robert's repo is more built out and has more options around the installation process. | |
| # Cheers! -Adron | |
| # ******************************************************************************************** | |
| cd ~ |
This file contains hidden or 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 | |
| set -e | |
| if [ $# -eq 0 ]; then | |
| echo "USAGE: $0 plugin1 plugin2 ..." | |
| exit 1 | |
| fi | |
| plugin_dir=/var/lib/jenkins/plugins |