Broken converge on debian - missing execute[apt-get update] block
Commit 929f27ab introduced an apt-get update
, and commit 4fa9726a only removed part of that change, leaving the converge in a broken state for debian systems.
Offending line default.rb:
notifies :run, 'execute[apt-get update]', :before
Missing block:
execute "apt-get update" do
action :nothing
end
When run on a debian system now, the following error occurs during the converge phase of the cookbook:
[2017-06-12T22:00:18+00:00] ERROR: resource apt_package[gitlab-ce] is configured to notify resource execute[apt-get update] with action run, but execute[apt-get update] cannot be found in the resource collection. apt_package[gitlab-ce] is defined in /tmp/kitchen/cache/cookbooks/omnibus-gitlab/recipes/default.rb:29:in `from_file'
Workaround:
To workaround the issue, I've included the execute block in my wrapper cookbook, like so:
execute 'apt-get update' do
action :nothing
end
include_recipe 'omnibus-gitlab::default'