PSA: Running chef-client with override-runlist won’t use role attributes

March 27th, 2015 duckworth Posted in Chef, Code, Ruby No Comments »

Spent a few hours trying to figure this one out. If you are running chef-client with -o (override-runlist) it won't pick up attributes defined in a role. E.g.

sudo chef-client -o some_cookbook::some_recipe

Finally stumbled across a comment to this question on Stack Overflow where someone else must have been banging thier head against the wall trying to figure out why their recipe wasn't working as expected.

Just for a reference here is a link to the docs which don't mention anything about it.

AddThis Social Bookmark Button

Connecting rails 3 to Sql Server 2008 on a mac

January 20th, 2011 duckworth Posted in OSX, Ruby Comments Off on Connecting rails 3 to Sql Server 2008 on a mac

I am writing this to document the steps I had to take to get a Rails 3 app to connect to an existing Sql 2008 Server using ActiveRecord. I have an existing database that the rails app needs to pull data from and I am developing locally on a mac. It is pieced together from several other HOWTO's and a bunch of trial and error.
The dependancies to make all of this work are unixodbc, FreeTDS, ruby-odbc and activerecord-sqlserver-adapter.

Continue Reading->

AddThis Social Bookmark Button