Skip to content

Instantly share code, notes, and snippets.

@navinrio
navinrio / hosts.yml
Created July 30, 2018 07:45
Ansible setting of hostname from inventory, but ignoring IP addresses
- name: Ensure hostname set
hostname: name={{ inventory_hostname }}
when: not inventory_hostname|match('(\d{1,3}\.){3}\d{1,3}')
- name: Ensure hostname is in /etc/hosts
lineinfile:
dest=/etc/hosts
regexp="^{{ ansible_default_ipv4.address }}.+$"
line="{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}"
@navinrio
navinrio / ansible-summary.md
Created July 30, 2018 08:29 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@navinrio
navinrio / rhel cheat sheet.md
Created August 5, 2018 23:07 — forked from apolloclark/rhel cheat sheet.md
Redhat LInux cheat sheet
@navinrio
navinrio / sample.md
Created August 22, 2018 12:18 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

azure
account
list [options] #List the imported subscriptions
show [options] [subscriptionNameOrId] #Show details about a subscription
set [options] <subscriptionNameOrId> #Set the current subscription
clear [options] #Remove a subscription or environment, or clear all of the stored account and environment info
import [options] <file> #Import a publishsettings file or certificate for your account
download [options] #Launch a browser to download your publishsettings file
env... #Commands to manage your account environment
@navinrio
navinrio / build.xml
Created May 14, 2019 09:19 — forked from froop/build.xml
[Java] Antで.warファイルを作成するサンプル
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration>
<project basedir="." default="all" name="sample">
<property name="javac.debug" value="true"/>
<property name="javac.debuglevel" value="source,lines,vars"/>
<property name="javac.target" value="1.6"/>
<property name="javac.source" value="1.6"/>
<property name="javac.encoding" value="utf-8"/>
<property name="src.java.dir" value="src"/>
@navinrio
navinrio / vyos_sample_site-2-site_vpn.sh
Created May 30, 2019 17:29 — forked from RafPe/vyos_sample_site-2-site_vpn.sh
Vyos sample site-to-site vpn configuration
# Virtual Tunnel Interface
# 172.196.17.188 - 172.196.17.191
set interfaces vti vti0 address 172.196.17.190/30
set interfaces vti vti0 description 'Virtual tunnel interface for VPN tunnel'
# Phase 2
set vpn ipsec esp-group ESP-Default compression 'disable'
set vpn ipsec esp-group ESP-Default lifetime '3600'
set vpn ipsec esp-group ESP-Default mode 'tunnel'
set vpn ipsec esp-group ESP-Default pfs 'dh-group16'
@navinrio
navinrio / kubectl-shortcuts.sh
Created December 31, 2020 07:45 — forked from tamas-molnar/kubectl-shortcuts.sh
aliases and shortcuts for kubectl
alias kc='kubectl'
alias kclf='kubectl logs --tail=200 -f'
alias kcgs='kubectl get service -o wide'
alias kcgd='kubectl get deployment -o wide'
alias kcgp='kubectl get pod -o wide'
alias kcgn='kubectl get node -o wide'
alias kcdp='kubectl describe pod'
alias kcds='kubectl describe service'
alias kcdd='kubectl describe deployment'
alias kcdf='kubectl delete -f'
@navinrio
navinrio / kubeadm-install-offline.md
Created January 24, 2021 16:35 — forked from jgsqware/kubeadm-install-offline.md
Offline Kubeadm install

On master and nodes

Pull images form internet access laptop

docker pull gcr.io/google_containers/kube-apiserver-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-controller-manager-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-proxy-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-scheduler-amd64:v1.5.0
docker pull weaveworks/weave-npc:1.8.2
docker pull weaveworks/weave-kube:1.8.2
@navinrio
navinrio / Architecture brief
Created October 6, 2021 04:40 — forked from dixudx/Architecture brief
OpenStack keystone benchmarking with nginx,apache and default wsgi
We are using keystone as a global service and hence its centre of universe .
Any api calls internal or via customer for the OpenStack cloud has to go via keystone for auth which internally calls ldap and ,etc.
Also keystone is running on a seperate box , seperate from other OpenStack components.
Need some approvals to post architecture related data and hence just briefed as above to give some insight.