I would argue this cookbook should never be used for production period. I do agree with your approach and can fix it if you would like, but for most setups I using this cookbook, I think this should be fine.

Did you intend for this to be a production cookbook or just for test/dev?