Skip to content

Instantly share code, notes, and snippets.

View shaikmdrafi's full-sized avatar
🎯
Focusing

SHAIK MOHAMMED RAFI shaikmdrafi

🎯
Focusing
View GitHub Profile
@shaikmdrafi
shaikmdrafi / go.md
Last active November 24, 2019 08:24

Variable Declaration

package main

import "fmt"

func main() {
// Type-1 Declaration
        i := 42

My Openshift Cheatsheet

Examine the cluster quota defined for the environment:

$ oc describe AppliedClusterResourceQuota

Install pkgs using yum in a Dockerfile

########################################
[root@localhost ~]# cat pv-mysql.yml
apiVersion: v1
kind: PersistentVolume
metadata:
name: mysql-volume
spec:
capacity:
storage: 2Gi
accessModes:
@shaikmdrafi
shaikmdrafi / ansible-summary.md
Last active March 11, 2018 05:20 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Configuration file

intro_configuration.html

First one found from of

  • Contents of $ANSIBLE_CONFIG
  • ./ansible.cfg
---
- hosts: all
remote_user: mshaik
become: true
become_method: sudo
become_user: root
tasks:
- name: current task is running on {{ ansible_fqdn }} and its play1
command: hostname -f