From e5692d6d992bb9899e62c573d0fa3b5be9540778 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Thu, 29 Jan 2015 11:01:12 +0100 Subject: Issue #252: Now correct node_modules gets deleted and phantomjs is installed. --- provisioning/modules/phantomjs/manifests/init.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 provisioning/modules/phantomjs/manifests/init.pp (limited to 'provisioning/modules/phantomjs') diff --git a/provisioning/modules/phantomjs/manifests/init.pp b/provisioning/modules/phantomjs/manifests/init.pp new file mode 100644 index 00000000..78ba734c --- /dev/null +++ b/provisioning/modules/phantomjs/manifests/init.pp @@ -0,0 +1,17 @@ +class phantomjs { + 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', + notify => Exec['unpack_phantomjs'], + } + exec{'unpack_phantomjs': + command => '/bin/tar xvfj phantomjs-1.9.8.tar.bz2', + cwd => '/var/local/', + refreshonly => true, + notify => Exec['install_phantomjs'], + } + exec{'install_phantomjs': + command => '/usr/bin/install /var/local/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin/phantomjs', + refreshonly => true, + } +} -- cgit v1.2.3