+ 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
+end
+
+apt_repository "brightbox-ruby-ng" do
+ action repository_actions["brightbox-ruby-ng"]
+ uri "ppa:brightbox/ruby-ng"
+end
+
+apt_repository "ubuntugis-stable" do
+ action repository_actions["ubuntugis-stable"]
+ uri "ppa:ubuntugis/ppa"
+end
+
+apt_repository "ubuntugis-unstable" do
+ action repository_actions["ubuntugis-unstable"]
+ uri "ppa:ubuntugis/ubuntugis-unstable"
+end
+
+apt_repository "maxmind" do
+ action repository_actions["maxmind"]
+ uri "ppa:maxmind/ppa"