supermarket-omnibus-cookbook icon indicating copy to clipboard operation
supermarket-omnibus-cookbook copied to clipboard

Constant :reconfigure action

Open knightorc opened this issue 7 years ago • 2 comments

Cookbook version

3.0.0

Chef-client version

12.19.36

Platform Details

CentOS 7.x

Scenario:

Idempotent chef-client runs

Steps to Reproduce:

run cookbook

Expected Result:

If no upgrade or configuration change, Zero resources executed.

Actual Result:

every chef client run, supermarket is reconfigured.

Cause

Seems to be related array of actions in https://github.com/chef-cookbooks/supermarket-omnibus-cookbook/blob/master/resources/supermarket_server.rb#L62

knightorc avatar Jun 16 '17 16:06 knightorc

Just tried updating to the latest chef-ingredient cookbook, still every chef client run it fires

execute[supermarket-reconfigure] action

        * directory[/etc/supermarket] action create[2017-11-01T22:08:52+00:00] INFO: Processing directory[/etc/supermarket] action create (/tmp/kitchen/cache/cookbooks/chef-ingredient/resources/ingredient_config.rb line 27)
        (up to date)
        * file[/etc/supermarket/supermarket.json] action create[2017-11-01T22:08:52+00:00] INFO: Processing file[/etc/supermarket/supermarket.json] action create (/tmp/kitchen/cache/cookbooks/chef-ingredient/resources/ingredient_config.rb line 32)
        (up to date)
         (up to date)
             * execute[supermarket-reconfigure] action run[2017-11-01T22:08:52+00:00] INFO: Processing execute[supermarket-reconfigure] action run (/tmp/kitchen/cache/cookbooks/chef-ingredient/resources/chef_ingredient.rb line 108)

        [execute] Starting Chef Client, version 13.5.3
                  resolving cookbooks for run list: ["omnibus-supermarket::default"]
                  Synchronizing Cookbooks:
                    - omnibus-supermarket (1.1.0)
...

knightorc avatar Nov 01 '17 22:11 knightorc

And newest supermarket build too 3.1.42

knightorc avatar Nov 01 '17 22:11 knightorc