Skip to content

Instantly share code, notes, and snippets.

View sherl0cks's full-sized avatar

Justin Holmes sherl0cks

  • Denver
View GitHub Profile
---
apiVersion: v1
kind: Template
metadata:
name: roles
parameters:
objects:
- apiVersion: v1
kind: RoleBinding
groupNames: []
@sherl0cks
sherl0cks / roles-jenkins.yml
Created January 11, 2018 00:32
You need a custom role to enable an ocp-applier Jenkinsfile
---
apiVersion: v1
kind: Template
metadata:
name: ocp-project-provisioner-template
parameters:
- name: "PIPELINES_NAMESPACE"
displayName: "Pipelines Namespace"
description: "Name of the namespace where the ci-cd project is (where jenkins is located)"
required: true
node ('maven'){
stage ('test'){
sh 'mvn -v'
}
}
@sherl0cks
sherl0cks / tuned-adm.sh
Last active May 10, 2017 12:58
Simple way to set the power profile
# /bin/bash
profiles=($(tuned-adm list | awk 'NR > 1 {print $2}'))
echo -e "\n"
for ((i=0; i < ${#profiles}; i++))
do
echo $i -- ${profiles[$i]}
done
{
"kind": "List",
"apiVersion": "v1",
"metadata": {
"name": "nexus"
},
"items": [
{
"kind": "PersistentVolumeClaim",
"apiVersion": "v1",
@sherl0cks
sherl0cks / option1.json
Last active February 8, 2017 18:22
Options for Template Pipelines
{
"name": "jenkins template unit test",
"openshift_clusters": [
{
"openshift_host_env": "master1.s2.core.rht-labs.com:8443",
"openshift_resources": {
"projects": [
{
"name": "template-dev",
"display_name": "Jenkins Template - Dev",
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-s2i",
"annotations": {
"openshift.io/display-name": "Jenkins S2I",
"description": "Jenkins S2I build config to create a Jenkins image with your configuration baked in.",
"iconClass": "icon-jenkins",
"tags": "instant-app,jenkins"
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-s2i",
"annotations": {
"openshift.io/display-name": "Jenkins S2I",
"description": "Jenkins S2I build config to create a Jenkins image with your configuration baked in.",
"iconClass": "icon-jenkins",
"tags": "instant-app,jenkins"
{
"openshift_clusters": [
{
"openshift_resources": {
"projects": [
{
"name": "fsi-dev",
"display_name": "FSI Account Onboarding Development Environment",
"environment_name": "build",
"apps":[