diff --git a/phantomjs/manifests/init.pp b/phantomjs/manifests/init.pp index 500878a..347a207 100644 --- a/phantomjs/manifests/init.pp +++ b/phantomjs/manifests/init.pp @@ -21,6 +21,22 @@ class phantomjs { } } + case $::operatingsystem { + "centos","redhat","fedora": { + package { "urw-fonts": + ensure => installed, + } + } + "debian","ubuntu": { + package { "gsfonts": + ensure => installed, + } + } + default: { + fail("phantomjs not supported on ${::operatingsystem}") + } + } + file { "/usr/local/src/phantomjs.tar.bz2": ensure => present, source => "puppet:///files/packages/${phantomjs_package}",