Skip to content

Instantly share code, notes, and snippets.

View mohitsethi's full-sized avatar
🎯
Focusing

Mohit Sethi mohitsethi

🎯
Focusing
View GitHub Profile
@mohitsethi
mohitsethi / gist:6421504
Created September 3, 2013 09:14
COOK-3490 Test Run
[2013-09-03T09:11:59+00:00] INFO: *** Chef 11.4.0 ***
[2013-09-03T09:11:59+00:00] INFO: Setting the run_list to ["role[base]", "recipe[postgresql::server]", "recipe[postgresql::ruby]"] from JSON
[2013-09-03T09:11:59+00:00] INFO: Run List is [role[base], recipe[postgresql::server], recipe[postgresql::ruby]]
[2013-09-03T09:11:59+00:00] INFO: Run List expands to [build-essential, python, git, vim, postgresql::server, postgresql::ruby]
[2013-09-03T09:11:59+00:00] INFO: Starting Chef Run for cook-3490
[2013-09-03T09:11:59+00:00] INFO: Running start handlers
[2013-09-03T09:11:59+00:00] INFO: Start handlers complete.
[2013-09-03T09:12:01+00:00] INFO: Processing package[postgresql-devel] action install (postgresql::client line 32)
[2013-09-03T09:12:51+00:00] INFO: package[postgresql-devel] installing postgresql-devel-8.4.13-1.el6_3 from base repository
[2013-09-03T09:13:21+00:00] INFO: Processing chef_gem[pg] action install (postgresql::ruby line 57)
@mohitsethi
mohitsethi / gist:6841830
Created October 5, 2013 14:49
Error using rake tasks
mohit@chef-dev:~/knife-vcloud$ bundle install
Fetching gem metadata from https://www.rubygems.org/........
Fetching gem metadata from https://www.rubygems.org/..
Resolving dependencies...
Using activesupport (3.0.0)
Using active_support (3.0.0)
Using builder (3.2.2)
Using gyoku (1.1.0)
Using nokogiri (1.5.10)
Using akami (1.2.0)
@mohitsethi
mohitsethi / gist:7132162
Created October 24, 2013 06:16
vagrant doesn' initiates provision
$ vagrant reload dev_ws
[dev_ws] Attempting graceful shutdown of VM...
[dev_ws] Clearing any previously set forwarded ports...
[dev_ws] Creating shared folders metadata...
[dev_ws] Clearing any previously set network interfaces...
[dev_ws] Preparing network interfaces based on configuration...
[dev_ws] Forwarding ports...
[dev_ws] -- 22 => 2222 (adapter 1)
[dev_ws] -- 22 => 2200 (adapter 1)
@mohitsethi
mohitsethi / gist:8003260
Created December 17, 2013 11:06
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.forward_port 80, 4567
config.vm.host_name = "wordpress.ms-local.com"
@mohitsethi
mohitsethi / gist:8472974
Created January 17, 2014 12:59
vagrant-hp test
[mohit@ms-dev-box1 vagrant-hp-test]$ ms up --provider=hp
Bringing machine 'default' up with 'hp' provider...
[default] Warning! The HP provider doesn't support any of the Vagrant
high-level network configurations (`config.vm.network`). They
will be silently ignored.
[default] Finding flavor for server...
[default] Finding image for server...
[default] Launching a server with the following settings...
[default] -- Flavor: standard.xsmall
[default] -- Image: Ubuntu Precise 12.04 LTS Server 64-bit 20121026 (b)
@mohitsethi
mohitsethi / gist:fb92dd84d6a564228dbf
Created April 30, 2014 12:00
localrc-aio-havana
# Neutron
# To use nova-network, comment out the following
PRIVATE_NETWORK_NAME=net1
PUBLIC_NETWORK_NAME=ext_net
Q_PLUGIN=ml2
disable_service n-net
enable_service neutron q-svc q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
# Credentials
ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=token
# Services
disable_service n-net
enable_service q-svc
@mohitsethi
mohitsethi / gist:4f8f8585c224a6598f77
Created July 14, 2014 08:53
vagrant-chef-zero issue
On Ubuntu 14.04 I performed the following to get up and running again
Remove latest version 4 of libgecode-dev if you have it installed (it is not compatible with dep_selector 1.0.3)
sudo apt-get remove libgecode-dev
Download and install version 3 and it's dependencies from the 13.10 repos
http://packages.ubuntu.com/saucy/amd64/libgecodeflatzinc32/download
http://packages.ubuntu.com/saucy/amd64/libgecodegist32/download
http://packages.ubuntu.com/saucy/amd64/libgecode32/download
http://packages.ubuntu.com/saucy/amd64/libgecode-dev/download
@mohitsethi
mohitsethi / gist:4729d5ad5422c24258cf
Created October 20, 2014 05:04
Nokogiri - Ubuntu1404
export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
sudo apt-get install libxslt-dev libxml2-dev libxml2
@mohitsethi
mohitsethi / workers.rake
Last active August 29, 2015 14:08 — forked from karmi/workers.rake
# Rake task to launch multiple Resque workers in development/production with simple management included
require 'resque/tasks' # Require Resque tasks
namespace :workers do
# = $ rake workers:start
#
# Launch multiple Resque workers with the Rails environment loaded,
# so they have access to your models, etc.