Aptly Debian repository manager.
Added in version 2018.3.0.
are no longer being used by packages.
dry_run (bool) -- Report potential changes without making any changes.
A dictionary of the package keys and files that were removed.
dict
CLI Example:
salt '*' aptly.cleanup_db
Remove the repository.
name (str) -- The name of the repository.
config_path (str) -- The path to the configuration file for the aptly instance.
force (bool) -- Whether to remove the repository even if it is used as the source of an existing snapshot.
A boolean representing whether all changes succeeded.
bool
CLI Example:
salt '*' aptly.delete_repo name="test-repo"
Get the configuration data.
config_path (str) -- The path to the configuration file for the aptly instance.
A dictionary containing the configuration data.
dict
CLI Example:
salt '*' aptly.get_config
Get the details of the repository.
name (str) -- The name of the repository.
config_path (str) -- The path to the configuration file for the aptly instance.
with_packages (bool) -- Return a list of packages in the repo.
A dictionary containing information about the repository.
dict
CLI Example:
salt '*' aptly.get_repo name="test-repo"
Get a list of all the mirrors.
config_path (str) -- The path to the configuration file for the aptly instance.
A list of the mirror names.
list
CLI Example:
salt '*' aptly.list_mirrors
Get a list of all the published repositories.
config_path (str) -- The path to the configuration file for the aptly instance.
A list of the published repository names.
list
CLI Example:
salt '*' aptly.list_published
List all of the repos.
config_path (str) -- The path to the configuration file for the aptly instance.
with_packages (bool) -- Return a list of packages in the repo.
A dictionary of the repositories.
dict
CLI Example:
salt '*' aptly.list_repos
Get a list of all the snapshots.
config_path (str) -- The path to the configuration file for the aptly instance.
sort_by_time (bool) -- Whether to sort by creation time instead of by name.
A list of the snapshot names.
list
CLI Example:
salt '*' aptly.list_snapshots
Create the new repository.
name (str) -- The name of the repository.
config_path (str) -- The path to the configuration file for the aptly instance.
comment (str) -- The description of the repository.
component (str) -- The default component to use when publishing.
distribution (str) -- The default distribution to use when publishing.
uploaders_file (str) -- The repository upload restrictions config.
from_snapshot (str) -- The snapshot to initialize the repository contents from.
saltenv (str) -- The environment the file resides in.
A boolean representing whether all changes succeeded.
bool
CLI Example:
salt '*' aptly.new_repo name="test-repo" comment="Test main repo" component="main" distribution="trusty"
Configure the repository settings.
name (str) -- The name of the repository.
config_path (str) -- The path to the configuration file for the aptly instance.
comment (str) -- The description of the repository.
component (str) -- The default component to use when publishing.
distribution (str) -- The default distribution to use when publishing.
uploaders_file (str) -- The repository upload restrictions config.
from_snapshot (str) -- The snapshot to initialize the repository contents from.
saltenv (str) -- The environment the file resides in.
A boolean representing whether all changes succeeded.
bool
CLI Example:
salt '*' aptly.set_repo name="test-repo" comment="Test universe repo" component="universe" distribution="xenial"