Manage extra apt repositories
This module manages the presence of extra apt repositories.
(apt-repo command opts)
command
The overall command to execute. Should be one of :present
or :absent
:present
Ensure the specified apt repository is present on the machine
:absent
Ensure the specified apt repository is absent on the machine
options
A hashmap of options
Option | Description |
---|---|
:repo required true type string | The repository line as it appears in an apt source file. A ppa description string. |
:filename | The base filename to use when storing the config. Only necessary when When |
(apt-repo :present {:repo "deb http://dl.google.com/linux/chrome/deb/ stable main"
:filename "google-chrome"})
(apt-repo :present {:repo "ppa:ondrej/php"})
(apt-repo :absent {:repo "ppa:ondrej/php"})