Defined Type: mrepo::iso
- Defined in:
- manifests/iso.pp
Overview
Class: mrepo::iso
This define downloads iso files
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'manifests/iso.pp', line 10
define mrepo::iso ($source_url, $repo) {
include mrepo
$target_file = "${mrepo::src_root}/iso/${name}"
ensure_resource('file', "${mrepo::src_root}/iso", {
'ensure' => 'directory',
'owner' => $mrepo::user,
'group' => $mrepo::group,
'mode' => '0644',
})
archive { $target_file:
source => "${source_url}/${name}",
before => Mrepo::Repo[$repo],
require => File["${mrepo::src_root}/iso"],
}
}
|