Puppet Plan: task_series::test

Defined in:
plans/test.pp

Overview

Parameters:

  • nodes (TargetSpec) (defaults to: ['ssh://foo', 'local://1', 'local://2', 'local://3'])


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'plans/test.pp', line 1

plan task_series::test (
  TargetSpec $nodes = ['ssh://foo', 'local://1', 'local://2', 'local://3'],
) {
  $targets = get_targets($nodes)

  $series_result = run_plan('task_series',
    nodes => $targets,
    tasks => [
      [ 'task_series::test',
          exit_code => 0,
      ],
      [ 'task_series::test',
          exit_code => 0,
      ],
      [ 'task_series::test',
          exit_code => 0,
      ],
    ],
  )

  return($series_result[summary])
}