Puppet Plan: puppet::repo
- Defined in:
- plans/repo.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'plans/repo.pp', line 1
plan puppet::repo (
TargetSpec $targets,
Puppet::Platform $collection = 'puppet8',
) {
run_plan(facts, $targets)
get_targets($targets).each |$target| {
run_task(
'puppet::repo',
$target,
"Install Puppet platform repo on ${target.name}",
'_catch_errors' => true,
'_run_as' => 'root',
'collection' => $collection,
)
}
}
|