Skip to content

Instantly share code, notes, and snippets.

View lvnilesh's full-sized avatar
💭
🏆 Vibranium Status Level

LV Nilesh lvnilesh

💭
🏆 Vibranium Status Level
View GitHub Profile
@lvnilesh
lvnilesh / gist:4055431
Created November 11, 2012 16:30
deprecation warnings
I see some deprecation warnings re: chef 11
[2012-11-11T16:21:49+00:00] INFO: Running start handlers
[2012-11-11T16:21:49+00:00] INFO: Start handlers complete.
[2012-11-11T16:21:50+00:00] INFO: Application light-weight resource already initialized -- overriding!
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/resource.rb:768: warning: already initialized constant Application
[2012-11-11T16:21:50+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
@lvnilesh
lvnilesh / gist:4055440
Created November 11, 2012 16:32
No such file or directory - /etc/init.d/myapp hup
[2012-11-11T16:27:26+00:00] INFO: deploy_revision[myapp] linked shared paths into current release:
[2012-11-11T16:27:26+00:00] INFO: deploy_revision[myapp] made pre-migration symlinks
[2012-11-11T16:27:26+00:00] INFO: deploy_revision[myapp] set user to vagrant
[2012-11-11T16:27:26+00:00] INFO: deploy_revision[myapp] set group to vagrant
[2012-11-11T16:27:26+00:00] INFO: deploy_revision[myapp] linked release /var/www/releases/0465c9e08a9f73ba248bf814e9c816599e75dd95 into production at /var/www/current
[2012-11-11T16:27:26+00:00] INFO: deploy_revision[myapp] set user to vagrant
[2012-11-11T16:27:26+00:00] INFO: deploy_revision[myapp] set group to vagrant
[2012-11-11T16:27:26+00:00] INFO: Processing execute[/etc/init.d/myapp hup] action run (/vagrant/cookbooks/application/providers/default.rb line 147)
================================================================================
@lvnilesh
lvnilesh / gist:4055469
Created November 11, 2012 16:43
another run with different error.
vagrant@precise64:~$ sudo chef-solo -c /vagrant/solo.rb -j /vagrant/node.json
[2012-11-11T16:39:15+00:00] INFO: *** Chef 10.16.2 ***
[2012-11-11T16:39:15+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[openssl]", "recipe[mysql::server]", "recipe[myapp]"] from JSON
[2012-11-11T16:39:15+00:00] INFO: Run List is [recipe[apt], recipe[build-essential], recipe[openssl], recipe[mysql::server], recipe[myapp]]
[2012-11-11T16:39:15+00:00] INFO: Run List expands to [apt, build-essential, openssl, mysql::server, myapp]
[2012-11-11T16:39:15+00:00] INFO: Starting Chef Run for precise64
[2012-11-11T16:39:15+00:00] INFO: Running start handlers
[2012-11-11T16:39:15+00:00] INFO: Start handlers complete.
[2012-11-11T16:39:15+00:00] INFO: Application light-weight resource already initialized -- overriding!
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/resource.rb:768: warning: already initialized constant Application
@lvnilesh
lvnilesh / gist:4055927
Created November 11, 2012 19:15
anoother run of the railsmachine
➜ railsmachine git:(master) vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Sun Nov 11 19:03:43 2012 from 10.0.2.2
vagrant@precise64:~$ sudo chef-solo -c /vagrant/solo.rb -j /vagrant/node.json
[2012-11-11T19:11:33+00:00] INFO: *** Chef 10.16.2 ***
[2012-11-11T19:11:33+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[openssl]", "recipe[mysql::server]", "recipe[myapp]"] from JSON
[2012-11-11T19:11:33+00:00] INFO: Run List is [recipe[apt], recipe[build-essential], recipe[openssl], recipe[mysql::server], recipe[myapp]]
@lvnilesh
lvnilesh / gist:4056125
Created November 11, 2012 20:18
working coolapp
➜ coolapp git:(master) ✗ vagrant up
[default] Importing base box 'precise64'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.2.4
@lvnilesh
lvnilesh / ey-local up
Created November 16, 2012 02:31
ey-local up fails and then succeeds after another run.
➜ testcbs git:(master) ✗ ey-local up
[ey-local] Downloading with Vagrant::Downloaders::HTTP...
[ey-local] Downloading box: https://s3.amazonaws.com/ey-local-images/ey-local-gentoo12.box
[ey-local] Extracting box...
[ey-local] Verifying box...
[ey-local] Cleaning up downloaded box...
A `Vagrantfile` has been placed in this directory. You are now
ready to `ey-local up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
@lvnilesh
lvnilesh / database.yml
Created November 17, 2012 20:39
config/database.yml
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
@lvnilesh
lvnilesh / ec2_server_create.rb
Created November 30, 2012 06:22 — forked from markbirbeck/ec2_server_create.rb
A patch for the 'knife ec2 server create' command to enable use with chef-solo original https://raw.github.com/opscode/knife-ec2/master/lib/chef/knife/ec2_server_create.rb
#
# Author:: Adam Jacob (<[email protected]>)
# Author:: Seth Chisamore (<[email protected]>)
# Copyright:: Copyright (c) 2010-2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@lvnilesh
lvnilesh / class2go.wsgi
Created December 7, 2012 23:23 — forked from nveid/class2go.wsgi
class2go.wsgi
import os, sys
import site
# Remember original sys.path.
prev_sys_path = list(sys.path)
# we add currently directory to path and change to it
pwd = os.path.dirname(os.path.abspath(__file__))
os.chdir(pwd)
sys.path = [pwd] + sys.path
@lvnilesh
lvnilesh / class2go.wsgi
Created December 7, 2012 23:23 — forked from nveid/class2go.wsgi
class2go.wsgi
import os, sys
import site
# Remember original sys.path.
prev_sys_path = list(sys.path)
# we add currently directory to path and change to it
pwd = os.path.dirname(os.path.abspath(__file__))
os.chdir(pwd)
sys.path = [pwd] + sys.path