Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
[Gist Page] | |
info.redhatgov.io | |
[Lab Guide] | |
http://redhatgov.io/workshops/openshift_101_dcmetromap/ | |
[OpenShift Console] | |
https://master.ocp-naps.redhatgov.io:8443/console | |
[Terminal] |
source kops | |
export BUCKET_NAME=devops23-$(date +%s) | |
export KOPS_STATE_STORE=s3://$BUCKET_NAME | |
aws s3api create-bucket \ | |
--bucket $BUCKET_NAME \ | |
--create-bucket-configuration \ | |
LocationConstraint=$AWS_DEFAULT_REGION |
import xmlrpclib | |
s = xmlrpclib.ServerProxy('http://localhost:9900') | |
print s.uptime() | |
users = s.users() | |
for user in users: | |
for login in users[user]: | |
print user, login |
# vim: tabstop=4 shiftwidth=4 softtabstop=4 | |
#!/usr/bin/python | |
import sys | |
import time | |
import logging | |
from daemon import runner | |
# | |
# An example daemon main logic application class. | |
# Just keep writing timestamps to a log file periodically. | |
# |
How to Install VNC on an AWS EC2 Centos 7.2 AMI | |
Reference: http://devopscube.com/how-to-setup-gui-for-amazon-ec2-rhel-7-instance/ | |
1. Update the server using the following command. | |
sudo yum -y update | |
2. Install the gnome GUI components using the following command. | |
sudo yum groupinstall -y "Server with GUI" |
#!/bin/bash | |
#Syncs all the repos for a given organization-id | |
SAT_ORG_ID=1 | |
while read f line; do | |
for X in $line | |
do | |
hammer repository synchronize --async --organization-id 1 --id $X | |
done |
#!/bin/bash | |
LOCAL_REPO_PATH="/opt/repos" | |
# This script enables the needed RHEL, OpenShift, Gluster, Ansible, HA, and additional repos needed to mirror them locally. | |
# The locally created mirror can then be used to deploy OCP into a disconnected environment. | |
#===== PRE-RUN NOTES: | |
# This assumes you've already registered and subscribed to the needed OpenShift, Gluster, Ansible, and RHEL subscriptions. |
[rhel-7-server-rpms] | |
name=rhel-7-server-rpms | |
baseurl=http://SERVER_IP_HERE/repos/rhel-7-server-rpms | |
enabled=1 | |
gpgcheck=0 | |
[rhel-7-server-extras-rpms] | |
name=rhel-7-server-extras-rpms | |
baseurl=http://SERVER_IP_HERE/repos/rhel-7-server-extras-rpms | |
enabled=1 |