Manage internal Aptly DB
cleanup
- (default) Database cleanup removes information about unreferenced packages and deletes files in the package pool that aren’t used by packages anymore.recover
- Database recover does its best to recover database after crash.
None
aptly_db 'cleanup' do
action :cleanup
end
aptly_db 'recover' do
action :recover
end
include_recipe 'aptly'
aptly_repo 'my_repo' do
comment 'A repository of packages'
component 'main'
distribution 'bionic'
end
aptly_snapshot 'my_snapshot' do
from 'my_repo'
type 'repo'
end
aptly_publish 'my_repo' do
type 'repo'
prefix 'ubuntu'
end
aptly_serve 'Aptly HTTP Service'