Closed tylercloke closed 9 years ago
LGTM
Wonder if we should consider some lint tooling to catch explicit paths like /opt/opscode
it's easy to miss if that's all you see, but would make this change unusable for some projects :)
awesome :+1:
@seth Certainly worth considering! Also, we have a lot of implicit contracts around files, paths, etc. Would be nice to formalize some of those since things will actually break (random though).
Uses
chef-client -z
instead ofchef-solo
which works aroundchef-solo --no-fork
bug. Alsochef-solo
is going away in favor ofchef-client -z
soon, so this is work we will have to do anyway.Also, prevent accidentally slurping in whatever is in the path by explicitly calling the full
/opt/opscode/embedded/bin
command since its just a system call. However, we should only do this ifchef-server-ctl
is the only project that uses theshow-config
andreconfigure
commands. If that is not true, then just change to bechef-client -z
.