summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-02 19:10:38 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-02 19:22:48 +0200
commita68e71d097c211519c4d57b5feb7cc24d0a6f8cf (patch)
treedf30a21e022d2260a73a3f3800709c59721afb0f
parentMinor fixes in resolv. (diff)
downloadprofiles-a68e71d097c211519c4d57b5feb7cc24d0a6f8cf.tar.gz
profiles-a68e71d097c211519c4d57b5feb7cc24d0a6f8cf.tar.xz
Replace package directives with ensure_packages.
-rw-r--r--manifests/common.pp4
-rw-r--r--manifests/imagemagick.pp6
-rw-r--r--manifests/synth.pp6
3 files changed, 7 insertions, 9 deletions
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)