Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coi-gov-pl/puppet-fetchtool
Fetchtool - module that handles downloads of artifacts and download method can be overriten
https://github.com/coi-gov-pl/puppet-fetchtool
downloader puppet wget
Last synced: about 2 months ago
JSON representation
Fetchtool - module that handles downloads of artifacts and download method can be overriten
- Host: GitHub
- URL: https://github.com/coi-gov-pl/puppet-fetchtool
- Owner: coi-gov-pl
- Created: 2017-09-06T07:45:11.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2023-10-07T14:22:29.000Z (over 1 year ago)
- Last Synced: 2024-12-16T22:44:30.321Z (about 2 months ago)
- Topics: downloader, puppet, wget
- Language: Ruby
- Size: 34.2 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# COI-fetchtool Puppet module
Allow to fetch files, in chosen by user way. By default it will utulize WGET to download files.
To change the way of downloading an artifact, one should change setting - `fetchtool::settings::fetch_tool`, to use some other definition.## Simple example usage of fetchtool module
```puppet
# Will download file to /usr/src/eicar.com
fetchtool::download { 'http://www.eicar.org/download/eicar.com': }
```## More complex example of fetchtool module
```puppet
$baseuri = 'https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.2.0'
$filename = 'flyway-commandline-4.2.0-linux-x64.tar.gz'fetchtool::download { 'alias-for-flyway-4.2.0.tgz':
address => "${baseuri}/${filename}",
mode => '0660',
owner => 'flyway',
group => 'flyway',
fetch_dir => '/tmp',
filename => 'flyway-4.2.0.tgz',
attributes => {
# Additional attibutes to specific implementation - in this case WGET
'timeout' => 1200,
'install_wget' => true,
}
}
```