- From: Douglas Garstang <
>
- To:
- Subject: [chef] Chef Client runs twice.
- Date: Thu, 18 Jun 2015 11:04:44 -0700
I'm using the community chef client cookbook with the following recipes:
include_recipe "chef-client::init_service"
include_recipe "chef-client::config"
When my instance boots up, I'm running chef initially from a script, not as a daemon. This is due to the recent change, where, when running as a daemon, the client doesn't start immediately, but seems to wait some arbitrary amount of time before doing a run. On a newly booted instance, this makes no sense.
After the cookbook rewrites the config file, it wants to rerun the client again. I guess this is because the config file resource tells the service to restart on update. Bottom line, when my initial chef-client runs, it runs again, a second time. I'd like this not to happen.
Doug
- [chef] Chef Client runs twice., Douglas Garstang, 06/18/2015
Archive powered by MHonArc 2.6.16.