+ mode "644"
+ variables :archive_host => archive_host, :archive_security_host => archive_security_host, :archive_distro => archive_distro, :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 "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 "git-core" do
+ action repository_actions["git-core"]
+ uri "ppa:git-core/ppa"
+end
+
+apt_repository "maxmind" do
+ action repository_actions["maxmind"]
+ uri "ppa:maxmind/ppa"
+end
+
+apt_repository "openstreetmap" do
+ action repository_actions["openstreetmap"]
+ uri "ppa:osmadmins/ppa"
+end
+
+apt_repository "management-component-pack" do
+ action repository_actions["management-component-pack"]
+ uri "https://downloads.linux.hpe.com/SDR/repo/mcp"
+ distribution "bionic/current-gen9"
+ components ["non-free"]
+ key "C208ADDE26C2B797"