X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Farchive%2Fexamples%2Fartifactory.pp;fp=3rdparty%2Fmodules%2Farchive%2Fexamples%2Fartifactory.pp;h=5da0cee31b6540a75c2b600b125b36850ecf4794;hb=ce70d6baf887ae03a2a6a7f5e73eb2e2c3dea208;hp=0000000000000000000000000000000000000000;hpb=0ba93256399fbad7ed8fabfa39c24dd47169dde3;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/archive/examples/artifactory.pp b/3rdparty/modules/archive/examples/artifactory.pp new file mode 100644 index 000000000..5da0cee31 --- /dev/null +++ b/3rdparty/modules/archive/examples/artifactory.pp @@ -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}", +}