summaryrefslogtreecommitdiff
path: root/manifests/imagemagick.pp
blob: 27939559500993baeeb515652383be12867189d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Imagemagick configuration
class profiles::imagemagick {
  package { 'imagemagick':
    ensure => installed,
  }

  # Allows handling of pdf:s
  file { '/etc/ImageMagick-7/policy.xml':
    content    => epp('profiles/imagemagick-policy.xml', {
      policies => [
        { 
          domain  => 'coder',
          rights  => 'read | write',
          pattern => 'PDF'
        },
      ]
      }),
  }
}