On Thu, Jul 15, 2010 at 10:37 PM, Andrew Shafer < "> > wrote:
>
> Someone told me I didn't explain what I was asking well enough, so here is
> an attempt to do that.
So in my view, you'd want to put this in a recipe file, and if you put
it there, it might make sense to use a more general "assert" method
and define it on Chef::Recipe or even make it a LWRP. Then you could
make assertions about the system state outside of Chef if you needed
to. On the other hand, maybe I'm architecture astronaut-ing.
I like the idea though, many times new users have not set their FQDN
before running the bootstrap and then been confused by the "attribute
domain is not defined" error. It would be much nicer to see that the
attribute is not defined and abort with a message about setting the
domain name.
Archive powered by MHonArc 2.6.16.