blob: 8a10de81db72ff380604d2559254ec88446f3281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# install phantomjs for unit tests
class phantomjs {
package{['tar','bzip2']:}
exec{'download_phantomjs':
command => '/usr/bin/wget -O /var/local/phantomjs-2.1.1.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2',
creates => '/var/local/phantomjs-2.1.1.tar.bz2',
notify => Exec['unpack_phantomjs'],
timeout => '0',
}
exec{'unpack_phantomjs':
command => '/bin/tar xvfj phantomjs-2.1.1.tar.bz2',
cwd => '/var/local/',
refreshonly => true,
require => [ Package['tar'], Package['bzip2'] ],
notify => Exec['install_phantomjs'],
}
exec{'install_phantomjs':
command => '/usr/bin/install /var/local/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs',
refreshonly => true,
}
}
|