Skip to content

Commit

Permalink
Consolidate package installation states
Browse files Browse the repository at this point in the history
  • Loading branch information
dseomn committed Apr 28, 2024
1 parent edf595b commit 85755d4
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions salt/file/debian/extras/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
# limitations under the License.


# Salt's debconf state doesn't work without this.
debconf-utils:
pkg.installed: []
debian_extras_pkgs:
pkg.installed:
- pkgs:
- apt-listbugs
- apt-listchanges
- aptitude
- debconf-utils # Salt's debconf state doesn't work without this.
- debian-security-support
- mailutils # Provides mailx which unattended-upgrades needs to send email.
- unattended-upgrades

apt-listbugs:
pkg.installed: []

apt-listchanges:
pkg.installed: []

/etc/apt/listchanges.conf.d/local.conf:
file.managed:
Expand All @@ -30,23 +32,12 @@ apt-listchanges:
frontend=mail
headers=true
aptitude:
pkg.installed: []

debian-security-support:
pkg.installed: []

unattended-upgrades:
pkg.installed: []
file.managed:
- name: /etc/apt/apt.conf.d/50unattended-upgrades-local
- source: salt://debian/extras/unattended-upgrades-local.apt.conf

# unattended-upgrades requires a package that provides mailx in order to send
# email. mailutils provides mailx.
mailutils:
pkg.installed: []

# This is a crontab entry instead of using APT::Periodic::Update-Package-Lists
# and APT::Periodic::Unattended-Upgrade for a few reasons:
# * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778878
Expand Down

0 comments on commit 85755d4

Please sign in to comment.