Skip to content

Instantly share code, notes, and snippets.

View vnugent's full-sized avatar

Viet Nguyen vnugent

View GitHub Profile
# docker run --name cassandra -d cassandra:2.2 bash -c "sed -i 's/^start_rpc.*$/start_rpc: true/' /etc/cassandra/cassandra.yaml; /docker-entrypoint.sh -f"
# docker run --name hawkular --link cassandra -e CASSANDRA_NODES=cassandra -e TEST_MODE=true -dP hawkular/hawkular

Enable simple htpasswd in ansible inventory file

[OSEv3:vars]
...
# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/htpasswd'}]

Generate password file

for i in 1 2 3; do htpasswd -b /etc/origin/htpasswd user$i ; done

# oc project openshift-infra
# git clone https://github.com/openshift/origin-metrics
# cd origin-metrics
# oc process -f metrics.yaml -v \
  HAWKULAR_METRICS_HOSTNAME=hawkular-metrics-openshift-infra.cloud2.jonqe.lab.eng.bos.redhat.com,\
  IMAGE_PREFIX=rcm-img-docker01.build.eng.bos.redhat.com:5001/openshift3/,\
  IMAGE_VERSION=3.1.0,USE_PERSISTENT_STORAGE=false,\
 MASTER_URL=https://ose-master1.bc.jonqe.lab.eng.bos.redhat.com:8443,REDEPLOY=true\
[OSEv3:children]
masters
nodes
[OSEv3:vars]
# Enable cluster metrics
use_cluster_metrics=true
# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/htpasswd'}]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [125.6, 10.1]
},
"properties": {
"name": "Dinagat Islands"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
apiVersion: v1
kind: Template
labels:
template: manageiq
metadata:
annotations:
description: A template for creating ManageIQ appliance
iconClass: icon-app-code
tags: instant-app,quickstart,manageiq,miq
name: manageiq
@vnugent
vnugent / origin-metrics-install-notes.md
Last active March 6, 2017 20:46
origin-install-notes

Requirement checklist:

  1. Is Docker installed and working?
  2. Is OpenShift origin installed and working?
  3. Does DNS work inside pod's container?

Smoke Tests

  1. Docker
As of March 2017 there is no command for deleting registry. You may encounter registry deployment and wish to redploy. Run the following commands to delete all registry-related objects:
oc delete clusterrolebinding registry-registry-role
oc delete dc/docker-registry
oc delete svc/docker-registry
oc delete sa/registry
for i in $(oc get secrets | grep registry | awk '{print $1}'); do oc delete secret/$i; done # didn't do this the first few times.
# systemctl restart origin-master