chef-cookbooks / supermarket-omnibus-cookbook

A cookbook for installing supermarket from Omnibus (deb, rpm) packages
Apache License 2.0
17 stars 29 forks source link

supermarket-omnibus rpm is always downloaded #63

Open haidangwa opened 6 years ago

haidangwa commented 6 years ago

Cookbook version

3.0.0

Chef-client version

13.8.5

Platform Details

redhat 7.5 in AWS

Scenario:

With node['supermarket_omnibus']['package_url'] set to our internal Nexus URL for the package, which mirrors the chef-stable yum repo of Chef, the chef run downloads the RPM every time.

Steps to Reproduce:

Our wrapper cookbook sets node['supermarket_omnibus']['package_url'] to our internal Nexus repo, which mirrors the chef-stable yum repo of Chef.

Expected Result:

the chef run should only download this once

Actual Result:

We're seeing the rpm being downloaded on every chef run

    * remote_file[/var/chef/cache/supermarket-3.1.72-1.el7.x86_64.rpm] action create[2018-09-17T01:50:01+00:00] INFO: Processing remote_file[/var/chef/cache/supermarket-3.1.72-1.el7.x86_64.rpm] action create (/var/chef/cache/cookbooks/supermarket-omnibus-cookbook/resources/supermarket_server.rb line 37)