Skip to content

Instantly share code, notes, and snippets.

@ringods
ringods / gist:822133
Created February 11, 2011 09:39
chef_package run with RubyGems 1.5.2
vagrant@vagrantup:~$ gem --version
1.5.2
vagrant@vagrantup:~$ sudo /etc/init.d/chef-client start
* Starting chef-client chef-client [ OK ]
vagrant@vagrantup:~$ tail -f /var/log/chef/client.log
[Fri, 11 Feb 2011 01:34:10 -0800] INFO: Starting Chef Run (Version 0.9.12)
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: Chef Run complete in 3.576031 seconds
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: cleaning the checksum cache
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: Running report handlers
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: Report handlers complete
@ringods
ringods / QPackage4Builder.py
Created March 7, 2011 10:42
Build log with install not functioning correctly
# QPackage4Builder: QPackage building via SCons
from SCons.Script import *
from pymonkey.InitBase import q
def _qpackage(target, source, env):
name = env['name']
domain = env['domain']
version = env['version']
platforms = env['platforms']
@ringods
ringods / Branch cleanup
Created May 6, 2011 07:33
Sequence of knife cookbook site install
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ git branch -d chef-vendor-rabbitmq_chef
Deleted branch chef-vendor-rabbitmq_chef (was 4c29a13).
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ git push origin :chef-vendor-rabbitmq_chef
To [email protected]:amplidata/chef-repo.git
- [deleted] chef-vendor-rabbitmq_chef
@ringods
ringods / gist:968506
Created May 12, 2011 13:39
Output of "rvm get latest"
$ rvm get latest
Original installed RVM version:
rvm 1.5.2 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
rvm-<html>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
165 165 0 165 0 0 397 0 --:--:-- --:--:-- --:--:-- 1050
@ringods
ringods / console.out
Created June 7, 2011 11:54
Knife github plugin returning error.
rdesmet@ringo-desktop:~/infrastructure/chef-repo$ knife cookbook github install fnichol/chef-jenkins -V
Installing jenkins from git://github.com/fnichol/chef-jenkins.git to /home/rdesmet/infrastructure/chef-repo/.chef/../cookbooks
Checking out the master branch.
Pristine copy branch (chef-vendor-jenkins) exists, switching to it.
ERROR: TypeError: can't convert nil into String
rdesmet@ringo-desktop:~/infrastructure/chef-repo$
rdesmet@amplidata-desktop-ringo:~/Projects/amplidata/infrastructure/chef-repo$ gem update knife-github-cookbooks
Updating installed gems
Updating knife-github-cookbooks
Fetching: knife-github-cookbooks-0.1.5.gem (100%)
Successfully installed knife-github-cookbooks-0.1.5
Gems updated: knife-github-cookbooks
Installing ri documentation for knife-github-cookbooks-0.1.5...
Installing RDoc documentation for knife-github-cookbooks-0.1.5...
rdesmet@amplidata-desktop-ringo:~/Projects/amplidata/infrastructure/chef-repo$ knife cookbook github install fnichol/chef-jenkins -V
Installing jenkins from git://github.com/fnichol/chef-jenkins.git to /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "lucid-amd64-chef-0.10.0"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
@ringods
ringods / gist:1234218
Created September 22, 2011 06:58
SCons dependency tree.
+-all
+-test
| +-debug
+-test-production
| +-production
+-test-coverage
+-coverage
@ringods
ringods / gist:1234224
Created September 22, 2011 07:01
SCons dependency tree: output when building "production"
rdesmet@amplidata-desktop-ringo:~/Projects/amplidata/default/thirdparty$ /usr/local/bin/scons --tree=prune production
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
params(target,source,env) returns:
configure_opts = ['--disable-shared', '--enable-static', '--prefix=/home/rdesmet/Projects/amplidata/default/thirdparty/target/debug']
cd /home/rdesmet/Projects/amplidata/default/thirdparty/gtest/build/debug && CFLAGS=" -fPIC -DSSE_16 " CXXFLAGS=" -fPIC -DSSE_16 " LDFLAGS="" /home/rdesmet/Projects/amplidata/default/thirdparty/gtest/configure --disable-shared --enable-static --prefix=/home/rdesmet/Projects/amplidata/default/thirdparty/target/debug
params(target,source,env) returns:
configure_opts = ['--disable-shared', '--enable-static', '--prefix=/home/rdesmet/Projects/amplidata/default/thirdparty/target/debug']
Mkdir("/home/rdesmet/Projects/amplidata/default/thirdparty/gtest/build/debug")
@ringods
ringods / AutoConfig.py
Created September 22, 2011 07:14
Build setup (added .py extension to SConstruct/SConscript for gist to detect Python code, full path on first line of content)
# thirdparty/site_scons/site_tools/AutoConfig.py
# AutoConfig Builder: Runs ./configure inside a directory.
# This builder takes over the compile and linker flags from the following SCons settings.
# Set all required flags on the environment before calling the builder.
# - CFLAGS
# - CCFLAGS
# - CPPFLAGS
# - CXXFLAGS
# - LINKFLAGS