Skip to content

Instantly share code, notes, and snippets.

Avatar

Subodh Pachghare subodhp

View GitHub Profile
@subodhp
subodhp / Makefile
Created Sep 24, 2019 — forked from ryu1kn/Makefile
Encrypt/decrypt with AWS KMS using AWS cli
View Makefile
# How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli
KEY_ID=alias/my-key
SECRET_BLOB_PATH=fileb://my-secret-blob
SECRET_TEXT="my secret text"
ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob
DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target
encrypt-text:
View Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
  4. Add a new shared folder
  5. On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM.
@subodhp
subodhp / gist:698e05e1ff1dba4977ee611ad259876f
Created Dec 25, 2017
Ansible Openshift Origin 3.7 Hosts file on RHEL 7.4
View gist:698e05e1ff1dba4977ee611ad259876f
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
ansible_ssh_user=root
openshift_deployment_type=origin
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_disable_check=memory_availability,disk_availability
View gist:efffe33a0d17d8a69687af6f2568bd29
TASK [openshift_version : Set openshift_version for rpm installation] ***********************************************************************************************************************************************************************
task path: /root/openshift-ansible/roles/openshift_version/tasks/main.yml:91
included: /root/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml for mymaster.local.com
TASK [openshift_version : Set rpm version to configure if openshift_pkg_version specified] **************************************************************************************************************************************************
task path: /root/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml:2
skipping: [mymaster.local.com] => {
"changed": false,
"skip_reason": "Conditional result was False",
"skipped": true
@subodhp
subodhp / ec2.py
Created Mar 8, 2016 — forked from iMilnb/ec2.py
AWS EC2 simple manipulation script using python and boto3
View ec2.py
#!/usr/bin/env python
# Simple [boto3](https://github.com/boto/boto3) based EC2 manipulation tool
#
# To start an instance, create a yaml file with the following format:
#
# frankfurt:
# - subnet-azb:
# - type: t2.micro
# image: image-tagname