This module downloads and extracts compressed files to a specific directory.
The following archives are supported:
# Set the default temp directory to use
class { 'deploy':
tempdir => '/opt/deploy'
}
# Deploy Java tar file
deploy::file { 'jdk-7u21-linux-x64.tar.gz':
target => '/opt/development-tools/java/jdk1.7.0_21',
url => 'http://mywebsite.co.za/development-tools/java',
strip => true,
}
# Deploy another tar file
deploy::file { 'jdk-8-ea-bin-b90-linux-x64-16_may_2013.tar.gz':
target => '/opt/development-tools/java/jdk1.8.0_b90',
url => 'http://server.co.za/development-tools/java/',
strip => true,
}
deploy::file { 'apache-maven-3.0.5-bin.tar.gz':
target => '/opt/development-tools/apache-maven',
url => 'http://server/pub/apache-maven/',
strip => true
version => '1',
package => 'maven'
}
deploy
- set the default working directory.deploy::file
- Deploy a compressed file to a target directory.target
url
file:///...
and puppet:///...
style. You must not specify the file name with this URLs either. owner
group
strip
strip_level
version
package
If you decide to use the version and package parameters you get to keep both pieces if it breaks. I certainly don't recommend managing packages this way.
Using puppetlabs_spec_helper. Simply run:
bundle install && bundle exec rake spec
to get results.
/usr/bin/ruby1.9.1 -S rspec spec/defines/deploy_files_spec.rb --color
ldapname is deprecated and will be removed in a future version
.
Finished in 0.16558 seconds
1 example, 0 failures