+ mode 0o644
+ variables :archive_host => archive_host, :codename => node[:lsb][:codename]
+ notifies :update, "apt_update[/etc/apt/sources.list]", :immediately
+end
+
+repository_actions = Hash.new do |_, repository|
+ node[:apt][:sources].include?(repository) ? :add : :remove