$key = undef,
$pin = false,
$architecture = undef,
- $trusted_source = false,
+ $allow_unsigned = false,
) {
validate_string($architecture, $comment, $location, $repos)
- validate_bool($trusted_source)
+ validate_bool($allow_unsigned)
validate_hash($include)
unless $release {
:key => GPG_KEY_ID,
:pin => '10',
:architecture => 'x86_64',
- :trusted_source => true,
+ :allow_unsigned => true,
}
end
'source' => 'http://apt.puppetlabs.com/pubkey.gpg',},
:pin => '10',
:architecture => 'x86_64',
- :trusted_source => true,
+ :allow_unsigned => true,
}
end
:key => GPG_KEY_ID,
:pin => '10',
:architecture => 'x86_64',
- :trusted_source => true,
+ :allow_unsigned => true,
}
end
end
end
- context 'trusted_source true' do
+ context 'allow_unsigned true' do
let :facts do
{
:lsbdistid => 'Debian',
end
let :params do
{
- :trusted_source => true,
+ :allow_unsigned => true,
}
end
# <%= @comment %>
<%- if @_include['deb'] then -%>
-deb <%- if @architecture or @trusted_source -%>
-[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted_source %>trusted=yes<% end -%>
+deb <%- if @architecture or @allow_unsigned -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @allow_unsigned %>trusted=yes<% end -%>
] <%- end %><%= @location %> <%= @release %> <%= @repos %>
<%- end -%>
<%- if @_include['src'] then -%>
-deb-src <%- if @architecture or @trusted_source -%>
-[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted_source %>trusted=yes<% end -%>
+deb-src <%- if @architecture or @allow_unsigned -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @allow_unsigned %>trusted=yes<% end -%>
] <%- end %><%= @location %> <%= @release %> <%= @repos %>
<%- end -%>