Friday, April 29, 2016

Knife Aliases

Easier use of common Knife Tasks


One of the guys I am working with had some aliases on his local for working with Chef and Knife. I grabbed a copy of them and put them into a repo. Made it a bit easier for everyone working with the server stacks. 

https://github.com/Blue-Dog-Archolite/bash-knife-search

ks
Knife Search for a keyword or IP address in the nodes and return common name and external IP

ksip
Knife search for keyword or IP address in the nodes and return ip address

ksrunlist
knife search for node and display runlist.

Becoming a Prep Chef

What the hell is the run list?


I've been doing some chef work as of late and I was sucked into a machine that wasn't behaving as expected. As hard and as frequently as I changed my search, I was unable to find the command I wanted. 

It turns out the command is very simple but wasn't close to what I was searching for: 


knife node show <node name>  

As simple as you can get, but as it turns out, doesn't show up on searches for "knife show runlist" or "knife show recipes for node".


Friday, February 18, 2011

Fustrations

I have started a new project and it was decided that we should use authlogic with Rails 3. Man, I am having a brutal time getting it going.

The scaffold generators and all that stuff keep breaking on "attributes="

Tuesday, February 1, 2011

Slacking

I have been slacking on this as of late. I have two pending posts that need some work and more thought before they go up. The first is centered around prototypes being pushed to production systems. The second is on Git / JIRA / Hudson integration and a few ways that I have seen or helped to knit them together.

Stayed tuned and I hope to have them up this week.

Monday, January 3, 2011

Formatting a 1.6gb XML file

At work today, a client gave me a 1.6gb XML file that I needed to format. Of course they didn't do anything as nice as use line breaks. None, anywhere... Being a hardcore VIM user, I looked up an easy way to sort out the file with indents and tags. Thanks to Justin Kempton I found this: Pretty XML

It works faster then the other VIM plug-ins that I have found and of course is written in easy to modify VIM code.

Monday, December 27, 2010

script_finder 1.0

Great news, I got my changes into script_finder and Tobias (@tcrawley) updated the version and release gem to 1.0.0.

Updated gem release

Later this week, considering how slow work is going to be, I am contemplating attacking the known issues for the gem and figuring out how to get rails to specify what commands it supports and strip them off of the command line return.

And I am super stoked considering this is my first solo contribution to the community!

Thursday, December 23, 2010

Tobias' script_finder gem

I took a quick break from coding my web page to help myself out. I cut a branch of script_finder, a gem that I have become addicted to in recent months. There was a minor issue with it. It was not wired to work with Rails 3.

I did some grinding on it and sent Tobias an email or twelve letting him know what I was doing as well as asking for feedback. I did a "final" commit today and send up a pull request. Lets see what happens.


Tobias script_finder