apt adapter¶
Inmanta module to manage apt packages in debian based linux distribution.
Features¶
This module supports:
Installing and deleting deb packages.
Managing the deb repositories of the host.
Usage example¶
Here is a simple example of managing the couchdb package and its repository on a remote host via ssh.
import apt
import mitogen
repo = apt::Repository(
host=host,
name="couchdb-deb",
base_url="https://apache.bintray.com/couchdb-deb",
release="bionic",
repo="main",
trusted=false,
)
apt::Package(
host=host,
name="couchdb",
purged=false
)
host = std::Host(
name="server",
os=std::linux,
via=mitogen::Sudo(
via=mitogen::Ssh(
name="server",
hostname="1.2.3.4",
port=22,
username="user",
),
),
)