puppetlabs/puppetlabs-apt — pull request #174 by thomasbiddle (2013-10-14 01:45:56+00:00)
Title: Ensuring that the resource exists for sources_lists_d

I would get the following error without ensuring the resource existed.

Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Caching catalog for ip-10-122-45-189.ap-northeast-1.compute.internal
Error: Failed to apply catalog: Could not find dependency File[/etc/apt/sources.list.d] for Exec[add-apt-repository-ppa:webupd8team/java]