From a68e71d097c211519c4d57b5feb7cc24d0a6f8cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 2 Oct 2022 19:10:38 +0200 Subject: Replace package directives with ensure_packages. --- manifests/common.pp | 4 +--- manifests/imagemagick.pp | 6 +++--- manifests/synth.pp | 6 +++--- 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'manifests') diff --git a/manifests/common.pp b/manifests/common.pp index 63a1cd1..b6e2ec1 100644 --- a/manifests/common.pp +++ b/manifests/common.pp @@ -71,8 +71,6 @@ class profiles::common ( 'lsof', ]) - package { 'nano': - ensure => absent, - } + ensure_packages(['nano'], { ensure => absent }) } diff --git a/manifests/imagemagick.pp b/manifests/imagemagick.pp index 2793955..bdf1a68 100644 --- a/manifests/imagemagick.pp +++ b/manifests/imagemagick.pp @@ -1,8 +1,8 @@ # Imagemagick configuration class profiles::imagemagick { - package { 'imagemagick': - ensure => installed, - } + ensure_packages([ + 'imagemagick', + ]) # Allows handling of pdf:s file { '/etc/ImageMagick-7/policy.xml': diff --git a/manifests/synth.pp b/manifests/synth.pp index eb01f8f..afbe2ca 100644 --- a/manifests/synth.pp +++ b/manifests/synth.pp @@ -1,8 +1,8 @@ class profiles::synth { - package { 'freepats-general-midi': - ensure => installed, - } + ensure_packages([ + 'freepats-general-midi', + ]) file { '/etc/conf.d/fluidsynth': content => @(EOF) -- cgit v1.2.3