aboutsummaryrefslogtreecommitdiffstats
path: root/s3p/templates/numberOfPages/Definitions/policies.yml
blob: 6063d085137b5a052ec3384c03e14bddb1ae0ca1 (plain)
1
2
3
4
5
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
tosca_definitions_version: tosca_simple_yaml_1_1
imports:
- data.yml
policy_types:
  tosca.policies.Root:
    description: The TOSCA Policy Type all other TOSCA Policy Types derive from
  tosca.policies.Placement:
    derived_from: tosca.policies.Root
    description: The TOSCA Policy Type definition that is used to govern placement of TOSCA nodes or groups of nodes.
  tosca.policies.Scaling:
    derived_from: tosca.policies.Root
    description: The TOSCA Policy Type definition that is used to govern scaling of TOSCA nodes or groups of nodes.
  tosca.policies.Update:
    derived_from: tosca.policies.Root
    description: The TOSCA Policy Type definition that is used to govern update of TOSCA nodes or groups of nodes.
  tosca.policies.Performance:
    derived_from: tosca.policies.Root
    description: The TOSCA Policy Type definition that is used to declare performance requirements for TOSCA nodes or groups of nodes.
  org.openecomp.policies.placement.Antilocate:
    derived_from: tosca.policies.Placement
    description: My placement policy for separation based upon container type value
    properties:
      name:
        type: string
        description: The name of the policy
        required: false
        status: SUPPORTED
      container_type:
        type: string
        description: container type
        required: false
        status: SUPPORTED
        constraints:
        - valid_values:
          - host
          - region
          - compute
  org.openecomp.policies.placement.Colocate:
    derived_from: tosca.policies.Placement
    description: Keep associated nodes (groups of nodes) based upon affinity value
    properties:
      name:
        type: string
        description: The name of the policy
        required: false
        status: SUPPORTED
      affinity:
        type: string
        description: affinity
        required: true
        status: SUPPORTED
        constraints:
        - valid_values:
          - host
          - region
          - compute
  org.openecomp.policies.placement.valet.Diversity:
    derived_from: tosca.policies.Placement
    description: Valet Diversity
    properties:
      level:
        type: string
        description: diversity
        required: false
        default: host
        status: SUPPORTED
        constraints:
        - valid_values:
          - host
          - rack
  org.openecomp.policies.placement.valet.Exclusivity:
    derived_from: tosca.policies.Placement
    description: Valet Exclusivity
    properties:
      level:
        type: string
        description: exclusivity
        required: false
        default: host
        status: SUPPORTED
        constraints:
        - valid_values:
          - host
          - rack
  org.openecomp.policies.placement.valet.Affinity:
    derived_from: tosca.policies.Placement
    description: Valet Affinity
    properties:
      level:
        type: string
        description: affinity
        required: false
        default: host
        status: SUPPORTED
        constraints:
        - valid_values:
          - host
          - rack
  org.openecomp.policies.scaling.Fixed:
    derived_from: tosca.policies.Scaling
    properties:
      quantity:
        description: the exact number of instances to keep up
        type: integer
        required: true
  org.openecomp.policies.External:
    derived_from: tosca.policies.Root
    description: externally managed policy (for example, type="network assignment", source="Policy Manager", name="route target")
    properties:
      source:
        type: string
        description: The name of the server that exposes the policy with predefined type and name.
        required: false
      type:
        type: string
        description: The type (category) of the policy same as it is defined in the source.
        required: false
      name:
        type: string
        description: The name of the policy, that related to specific type, same as it is defined in the source.
        required: false