Apt¶
These states configure apt, apt-listchanges and apticron.
apt¶
apt.sls installs configuration for timeouts in http and ftp transports in /etc/apt/apt.conf.d/999user
:
1 2 3 | # sets timeouts for apache http and ftp transports
Acquire::http::Timeout "120";
Acquire::ftp::Timeout "120";
|
apt-listchanges¶
Installs the package apt-listchanges for notifiing on packages updates and preconfigures the package using the following debconf:
1 2 3 4 5 | apt-listchanges apt-listchanges/frontend select pager
apt-listchanges apt-listchanges/confirm boolean false
apt-listchanges apt-listchanges/which select both
apt-listchanges apt-listchanges/email-address string
apt-listchanges apt-listchanges/save-seen boolean false
|
apticron¶
Installs and configures apticron to automatically package updates, preconfiguring apticron using the following debconf:
1 | apticron apticron/notification string root
|
In /etc/apticron/apticron.conf
the setting LISTCHANGES_PROFILE is set to apticron.
init¶
init.sls includes apt.sls, apt-listchanges and apticron to manage apt-stuff