Knife diff with ruby roles/environments?

ohai!

so i’m new to knife diff, and i tried to use it today to compare my chef
server’s roles against my repository.

what i found was that it thought every single role was missing from the
repository.

am I missing an option somewhere, or does knife diff simply not support .rb
files at all for environments and roles?

if that is the case, is there an open ticket to add that support?

thanks!
-jesse

It doesn’t presently support .rb, you’re correct. There’s no CHEF- issue, but one is filed in the development version of knife-essentials (which is where knife diff comes from): https://github.com/jkeiser/knife-essentials/issues/67

The gem is still updated, btw, and has had significant updates since the release—if you install it, it will replace knife diff with a newer (development) version. I’m hoping to fold these back into chef when the velocity slows again.

–John

From: Jesse Campbell <hikeit@gmail.commailto:hikeit@gmail.com>
Reply-To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Date: Sunday, March 10, 2013 8:44 AM
To: chef <chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] knife diff with ruby roles/environments?

ohai!

so i’m new to knife diff, and i tried to use it today to compare my chef server’s roles against my repository.

what i found was that it thought every single role was missing from the repository.

am I missing an option somewhere, or does knife diff simply not support .rb files at all for environments and roles?

if that is the case, is there an open ticket to add that support?

thanks!
-jesse