summaryrefslogtreecommitdiff
path: root/manifests/imagemagick.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-14 00:58:22 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-14 02:16:16 +0100
commitdffd09001ccdf3d4d23ca3f37ac9878e41450a3b (patch)
tree8798932a604507d9d7b7761c5666acb52994bcae /manifests/imagemagick.pp
parentGandalf web certbot. (diff)
downloadprofiles-dffd09001ccdf3d4d23ca3f37ac9878e41450a3b.tar.gz
profiles-dffd09001ccdf3d4d23ca3f37ac9878e41450a3b.tar.xz
Migrate stuff from ansible.
Diffstat (limited to 'manifests/imagemagick.pp')
-rw-r--r--manifests/imagemagick.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/imagemagick.pp b/manifests/imagemagick.pp
new file mode 100644
index 0000000..7663cf8
--- /dev/null
+++ b/manifests/imagemagick.pp
@@ -0,0 +1,17 @@
+class profiles::imagemagick {
+ package { 'imagemagick':
+ ensure => installed,
+ }
+
+ file { '/etc/ImageMagick-7/policy.xml':
+ content => epp('profiles/imagemagick-policy.xml', {
+ policies => [
+ {
+ domain => 'coder',
+ rights => 'read | write',
+ pattern => 'PDF'
+ },
+ ]
+ }),
+ }
+}