Skip to content

Instantly share code, notes, and snippets.

View subodhp's full-sized avatar

Subodh Pachghare subodhp

View GitHub Profile
@subodhp
subodhp / ec2.py
Created March 8, 2016 12:51 — forked from iMilnb/ec2.py
AWS EC2 simple manipulation script using python and boto3
#!/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
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 / gist:698e05e1ff1dba4977ee611ad259876f
Created December 25, 2017 10:45
Ansible Openshift Origin 3.7 Hosts file on RHEL 7.4
[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

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 / Makefile
Created September 24, 2019 10:54 — forked from ryu1kn/Makefile
Encrypt/decrypt with AWS KMS using AWS cli
# 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: