Defined Type: cfweb::deploy

Defined in:
manifests/deploy.pp

Overview

Parameters:

  • strategy (String[1])
  • params (Hash[String[1], Any])
  • common (CfWeb::AppCommonParams)


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/deploy.pp', line 6

define cfweb::deploy(
    String[1] $strategy,
    Hash[String[1], Any] $params,
    CfWeb::AppCommonParams $common,
) {
    include cfweb::internal::deployuser

    assert_private()

    case $strategy {
        'futoin', 'docker' : {
            $impl = "cfweb::deploy::${strategy}"
        }
        default : {
            $impl = $strategy
        }
    }

    create_resources(
        $impl,
        {
            $title => {
                common => $common,
            }
        },
        $params
    )
}