Skip to content

Instantly share code, notes, and snippets.

View vikas027's full-sized avatar
🏠
Working from home

Vikas Kumar vikas027

🏠
Working from home
  • Sydney, Australia
View GitHub Profile
@vikas027
vikas027 / Packer_Debug_Log_Pull_Request-3321.txt
Last active March 11, 2016 16:05
Packer Debug Log for Pull Request 3321
## https://github.com/mitchellh/packer/pull/3321
# PACKER_LOG=1 packer build packer.json
2016/03/12 02:52:53 [INFO] Packer version: 0.9.1 dev 3efdcb45eeac7a3a7566296ba94e9ff642ea37de
2016/03/12 02:52:53 Packer Target OS/Arch: linux amd64
2016/03/12 02:52:53 Built with Go Version: go1.6
2016/03/12 02:52:53 Detected home directory from env var: /root
2016/03/12 02:52:53 Using internal plugin for null
2016/03/12 02:52:53 Using internal plugin for openstack
2016/03/12 02:52:53 Using internal plugin for amazon-chroot
$ PACKER_LOG=1 packer build -force bug_test.json
2016/03/06 15:24:04 [INFO] Packer version: 0.9.0 a643faae672ec8b8424352476d2b91b7a7f7b06e
2016/03/06 15:24:04 Packer Target OS/Arch: darwin amd64
2016/03/06 15:24:04 Built with Go Version: go1.6
2016/03/06 15:24:04 [DEBUG] Discovered plugin: vsphere-ova = /usr/local/bin/packer-post-processor-vsphere-ova
2016/03/06 15:24:04 Detected home directory from env var: /Users/vikas
2016/03/06 15:24:04 Using internal plugin for file
2016/03/06 15:24:04 Using internal plugin for openstack
2016/03/06 15:24:04 Using internal plugin for amazon-chroot
2016/03/06 15:24:04 Using internal plugin for vmware-vmx
@vikas027
vikas027 / fix_ova.sh
Created March 5, 2016 13:51
Fix of Banno/packer-post-processor-vsphere-ova
#!/bin/bash -eux
# This script fix an issue in https://github.com/Banno/packer-post-processor-vsphere-ova/issues/
# name of my builder in packer.json is virtualbox-vsphere
dir='output-virtualbox-vsphere'
ova_file=`ls ${dir}/*.ova | awk -F"/" '{ print $2 }' | sed 's/.ova//'`
tar xvf ${dir}/${ova_file}.ova -C ${dir}
ovf_file=`ls ${dir}/*.ovf`
@vikas027
vikas027 / OS_X_10.11_El_Capitan_ISO.txt
Last active May 3, 2019 12:28
Bootable OS X 10.11 El Capitan ISO
First of all this is not my work, I am just pasting my logs so that it would be useful for others.
Thank the guy here http://forums.macrumors.com/threads/how-to-create-el-capitan-os-x-bootable-dvd.1923894/page-2#post-22064565
# In VM OSX 10.7, double click "Install OS X El Capitan.app.dmg"
# Now, you will have it mounted
192-168-181-137:~ vikas$ df -kgP | grep Capitan
/dev/disk1s2 5 5 0 98% /Volumes/Install OS X El Capitan
192-168-181-137:~ vikas$
@vikas027
vikas027 / upgrade_ansible_tower_2.3.1.txt
Created October 27, 2015 10:40
Ansible Tower v2.3.1 Install/Upgrade
I got many errors while working on the Ansible Tower upgrade from v2.1.0 to v2.3.1. I faced many issues in this journey, so thought of documenting those here.
==============
ISSUES FIXED
==============
1) ./setup.sh script fails while trying to look for postgres user 'awx'
TASK: [postgres | determine if postgresql user exists] ************************
fatal: [localhost] => error while evaluating conditional: pg_user_exists.stdout != '1'
2) Error while trying to upgrade supervisor
@vikas027
vikas027 / pbis_centos7.txt
Last active March 6, 2020 22:25
Fix PowerBroker Identity Service (formerly Likewise) on CentOS 7
PBIS (PowerBroker Identity Service) throws some errors while installing v8.2.2 (latest as of 25 June 2015) rpm.
[root@centos7 ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@centos7 ~]# ./pbis-open-8.2.2.2993.linux.x86_64.rpm.sh install (This is filtered output)
...
...
Error: /usr/bin/systemctl enable /etc/pbis/redhat/lwsmd.service returned 1
Failed to issue method call: Unit /etc/pbis/redhat/lwsmd.service does not exist.
@vikas027
vikas027 / s3_file_upload_ruby_sdk_v2.rb
Last active August 29, 2015 14:20
Upload file on AWS S3 using Ruby SDK v2
#!/usr/local/rvm/rubies/ruby-2.1.5/bin/ruby
# This needs to be run as ./script_name source/file/path
# I recommend using relative paths than absolute paths
require 'aws-sdk' # gem install aws-sdk
# Change these variables as per your environment
bucket_name = 'vikas-bucket'
sub_bucket_name = 'vikas/reachvikas.com'
myregion = 'us-west-1'