Add puppet/archive module
[mirror/dsa-puppet.git] / 3rdparty / modules / archive / examples / artifactory.pp
1 notice(artifactory_sha1('http://bit.ly/1Tfk4vQ'))
2
3 archive::artifactory { '/tmp/logo.png':
4   url   => 'https://repo.jfrog.org/artifactory/distributions/images/Artifactory_120x75.png',
5   owner => 'root',
6   group => 'root',
7   mode  => '0644',
8 }
9
10 $dirname = 'gradle-1.0-milestone-4-20110723151213+0300'
11 $filename = "${dirname}-bin.zip"
12
13 archive::artifactory { $filename:
14   archive_path => '/tmp',
15   url          => "http://repo.jfrog.org/artifactory/distributions/org/gradle/${filename}",
16   extract      => true,
17   extract_path => '/opt',
18   creates      => "/opt/${dirname}",
19   cleanup      => true,
20 }
21
22 file { '/opt/gradle':
23   ensure => link,
24   target => "/opt/${dirname}",
25 }