]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
adding notice on top of sourceslist files
authorFrançois Conil <fconil@infoxchange.net.au>
Mon, 19 May 2014 05:12:36 +0000 (15:12 +1000)
committerFrançois Conil <fconil@infoxchange.net.au>
Mon, 19 May 2014 05:24:42 +0000 (15:24 +1000)
Useful to figure out what is managed by puppet and what isn't when
 not setting up the option to purge sourceslist files

spec/defines/source_spec.rb
templates/source.list.erb

index 34b394282fd4df1d8c6011fcf479a4370e629570..bf5e50e401286d58a44fc1c63ef2cbd6a2b0ce25 100644 (file)
@@ -74,7 +74,7 @@ describe 'apt::source', :type => :define do
       end
 
       let :content do
-        content = "# #{title}"
+        content = "#file generated by puppet\n# #{title}"
         if param_hash[:architecture]
           arch = "[arch=#{param_hash[:architecture]}] "
         end
index 9946966ee5322dab85336320c1adfba88999381e..541534e65bd8a383844e9e2d172a4a23ed43feb7 100644 (file)
@@ -1,3 +1,4 @@
+#file generated by puppet
 # <%= @name %>
 deb <% if @architecture %>[arch=<%= @architecture %>] <% end %><%= @location %> <%= @release_real %> <%= @repos %>
 <%- if @include_src then -%>