Skip to content

Instantly share code, notes, and snippets.

View detiber's full-sized avatar
🐢
Cuddling all the Koobs

Jason DeTiberus detiber

🐢
Cuddling all the Koobs
View GitHub Profile
[root@rhosp ~(keystone_admin)]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
cinder-volumes-pool cinder-volumes twi-aotz-- 66.50g 45.11 21.90
volume-9a9aa754-f10b-45ff-8f64-9d84c475a585 cinder-volumes Vwi-aotz-- 10.00g cinder-volumes-pool 100.00
volume-b120be79-5998-4b0b-83e7-a4b8acc4d1db cinder-volumes Vwi-aotz-- 10.00g cinder-volumes-pool 100.00
volume-e9671b57-38f7-4f31-80b5-b98ae3000bbc cinder-volumes Vwi-aotz-- 10.00g cinder-volumes-pool 100.00
# Add dnsmasq config for admin network
cat > /etc/NetworkManager/dnsmasq.d/${LAB_NAME}.conf <<EOF
no-negcache
strict-order
server=/admin.example.com/192.168.144.1
server=/osp.example.com/172.20.17.100
address=/master.osp.example.com/172.20.17.5
address=/.apps.example.com/172.20.17.5
EOF
#!/bin/bash
source group_vars_all
# Run environment-specific commands
source prep-host-env-config.sh
# Set up sshpass for non-interactive deployment
if ! rpm -q sshpass
then
[OSEv3:children]
nodes
masters
nfs
etcd
[OSEv3:vars]
openshift_master_cluster_public_hostname=None
ansible_ssh_user=root
openshift_master_cluster_hostname=None
source keystonerc_admin
TENANT_NAME=L104353
TENANT_ID=$(openstack project show ${TENANT_NAME} -f value -c id)
EXTERNAL_SUBNET_ID=$(openstack subnet show external -f value -c id)
#Create port for openshift master
neutron port-create external --name openshift-master --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.5 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.5
neutron port-create external --name openshift-infra --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.6 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.6
neutron port-create external --name openshift-node1 --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.51 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.51
neutron port-create external --name openshift-node2 --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.52 --fixed-ip subn
@detiber
detiber / aws_storage_class_1.4-1.5.yaml
Last active May 24, 2017 18:30
AWS Default Storage Class
---
# See https://kubernetes.io/docs/concepts/storage/persistent-volumes/#storageclasses for further documentation
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: ocp
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/aws-ebs
parameters:
- storage-ro
- compute-rw
- monitoring
- logging-write
- 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
@detiber
detiber / init.yaml
Created May 31, 2017 15:59
GCE Instance provisioning
---
- hosts: localhost
vars_prompt:
- name: creds_file
prompt: "GCE Credentials File:"
default: "{{ lookup('env', 'GCE_CREDS_FILE') | default '~/gce-credentials.json' }}"
- name: service_account
prompt: "GCE Service Account:"
default: "{{ lookup('env', GCE_SERVICE_ACCOUNT) | default(none) }}"
- name: project_id
#!/usr/bin/env python
import sys
from github3 import login
from kubernetes.client.rest import ApiException
from openshift import config
from openshift.client import ApiClient, UserOpenshiftIoV1Api, V1Group
from yaml import load
@detiber
detiber / BOOTSTRAPPING.md
Last active September 26, 2017 03:41
Building and Testing OpenShift Origin for Alternative Arches

Building and Testing OpenShift Origin for Alternative Arches

Build/test tooling image

The official build/test tooling image (https://hub.docker.com/r/openshift/origin-release/) is used for providing a consistent and repeatable build and test environment for the OpenShift Origin CI/CD pipelines as well as for individual contributors as well. Currently the official image is x86_64 only, but you can find a pre-built manifest-list image that supports x86_64, ppc64le, and aarch64 here: https://hub.docker.com/r/openshiftmultiarch/origin-release/. The PR to update the official images for ppc64le and aarch64 can be found here: openshift/release#97

Using the openshiftmultiarch/origin-release image with hack/env

The hack/env script in the origin repository is used for invoking commands within the official origin-release image. It is possible to override which image is used by the tooling with the OS_BUILD_ENV_IMAGE environment variable. To override the default image and verify tha