summaryrefslogtreecommitdiff
path: root/provisioning/modules
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning/modules')
-rw-r--r--provisioning/modules/phantomjs/manifests/init.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/provisioning/modules/phantomjs/manifests/init.pp b/provisioning/modules/phantomjs/manifests/init.pp
index ba0e15ba..ec3b4ec4 100644
--- a/provisioning/modules/phantomjs/manifests/init.pp
+++ b/provisioning/modules/phantomjs/manifests/init.pp
@@ -1,4 +1,7 @@
+# install phantomjs for unit tests
class phantomjs {
+ package{['tar','bzip2']:}
+
exec{'download_phantomjs':
command => '/usr/bin/wget -O /var/local/phantomjs-1.9.8.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2',
creates => '/var/local/phantomjs-1.9.8.tar.bz2',
@@ -9,6 +12,7 @@ class phantomjs {
command => '/bin/tar xvfj phantomjs-1.9.8.tar.bz2',
cwd => '/var/local/',
refreshonly => true,
+ require => [ Package['tar'], Package['bzip2'] ],
notify => Exec['install_phantomjs'],
}
exec{'install_phantomjs':