APT repos managed
DescriptionChecks for Puppet 2/3/4 wether all APT repos with the exception of the default debian definition are managed
Check Script: puppet-apt-repos-managed.sh
if puppet_enabled; then
if puppet_run_ok; then
repo_files=$(ls /etc/apt/sources.list.d/* 2>/dev/null || grep -v '^default_debian*')
for f in $repo_files; do
# Note: puppetlabs-apt module has file resources with just the file name...
# also allow absolute filenames for other e.g. self-written definitions
if puppet_resource_exists "File" "$f" || puppet_resource_exists "File" "$(basename "$f")"; then
if [ "$unmanaged" != "" ]; then
result_failed "Unmanaged files found in /etc/apt/sources.list.d/:$unmanaged"