Add puppet/archive module
[mirror/dsa-puppet.git] / 3rdparty / modules / archive / examples / artifactory.pp
diff --git a/3rdparty/modules/archive/examples/artifactory.pp b/3rdparty/modules/archive/examples/artifactory.pp
new file mode 100644 (file)
index 0000000..5da0cee
--- /dev/null
@@ -0,0 +1,25 @@
+notice(artifactory_sha1('http://bit.ly/1Tfk4vQ'))
+
+archive::artifactory { '/tmp/logo.png':
+  url   => 'https://repo.jfrog.org/artifactory/distributions/images/Artifactory_120x75.png',
+  owner => 'root',
+  group => 'root',
+  mode  => '0644',
+}
+
+$dirname = 'gradle-1.0-milestone-4-20110723151213+0300'
+$filename = "${dirname}-bin.zip"
+
+archive::artifactory { $filename:
+  archive_path => '/tmp',
+  url          => "http://repo.jfrog.org/artifactory/distributions/org/gradle/${filename}",
+  extract      => true,
+  extract_path => '/opt',
+  creates      => "/opt/${dirname}",
+  cleanup      => true,
+}
+
+file { '/opt/gradle':
+  ensure => link,
+  target => "/opt/${dirname}",
+}