push addional code
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / resources / extractServiceComposition / toscaGlobalServiceTemplates / NovaServerGlobalTypesServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: NovaServerGlobalTypes
4   template_version: 1.0.0
5 description: Nova Server TOSCA Global Types
6 imports:
7   common_definitions:
8     file: CommonGlobalTypesServiceTemplate.yaml
9 data_types:
10   org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties:
11     derived_from: tosca.datatypes.Root
12     description: Nova server network expand properties for port
13     properties:
14       port_security_enabled:
15         type: boolean
16         description: Flag to enable/disable port security on the port
17         required: false
18         status: SUPPORTED
19       mac_address:
20         type: string
21         description: MAC address to give to this port
22         required: false
23         status: SUPPORTED
24       admin_state_up:
25         type: boolean
26         description: The administrative state of this port
27         required: false
28         default: true
29         status: SUPPORTED
30       qos_policy:
31         type: string
32         description: The name or ID of QoS policy to attach to this port
33         required: false
34         status: SUPPORTED
35       allowed_address_pairs:
36         type: list
37         description: Additional MAC/IP address pairs allowed to pass through the port
38         required: false
39         status: SUPPORTED
40         entry_schema:
41           type: org.openecomp.datatypes.heat.network.AddressPair
42       binding:vnic_type:
43         type: string
44         description: The vnic type to be bound on the neutron port
45         required: false
46         status: SUPPORTED
47         constraints:
48         - valid_values:
49           - macvtap
50           - direct
51           - normal
52       value_specs:
53         type: map
54         description: Extra parameters to include in the request
55         required: false
56         default: {
57           }
58         status: SUPPORTED
59         entry_schema:
60           type: string
61   org.openecomp.datatypes.heat.novaServer.network.AddressInfo:
62     derived_from: tosca.datatypes.network.NetworkInfo
63     description: Network addresses with corresponding port id
64     properties:
65       port_id:
66         type: string
67         description: Port id
68         required: false
69         status: SUPPORTED
70 node_types:
71   org.openecomp.resource.vfc.nodes.heat.nova.Server:
72     derived_from: tosca.nodes.Compute
73     properties:
74       admin_pass:
75         type: string
76         description: The administrator password for the server
77         required: false
78         status: SUPPORTED
79       availability_zone:
80         type: string
81         description: Availability zone to create servers in
82         required: false
83         status: SUPPORTED
84       image:
85         type: string
86         description: The ID or name of the image to boot with
87         required: false
88         status: SUPPORTED
89       image_update_policy:
90         type: string
91         description: Policy on how to apply an image-id update
92         required: false
93         default: REBUILD
94         status: SUPPORTED
95         constraints:
96         - valid_values:
97           - REBUILD_PRESERVE_EPHEMERAL
98           - REPLACE
99           - REBUILD
100       metadata:
101         type: map
102         description: Arbitrary key/value metadata to store for this server
103         required: false
104         status: SUPPORTED
105         constraints:
106         - max_length: 255
107         entry_schema:
108           type: string
109           constraints:
110           - max_length: 255
111       user_data_update_policy:
112         type: string
113         description: Policy on how to apply a user_data update
114         required: false
115         default: REPLACE
116         status: SUPPORTED
117         constraints:
118         - valid_values:
119           - REPLACE
120           - IGNORE
121       flavor_update_policy:
122         type: string
123         description: Policy on how to apply a flavor update
124         required: false
125         default: RESIZE
126         status: SUPPORTED
127         constraints:
128         - valid_values:
129           - RESIZE
130           - REPLACE
131       user_data:
132         type: string
133         description: User data script to be executed by cloud-init
134         required: false
135         default: ''
136         status: SUPPORTED
137       flavor:
138         type: string
139         description: The ID or name of the flavor to boot onto
140         required: true
141         status: SUPPORTED
142       key_name:
143         type: string
144         description: Name of keypair to inject into the server
145         required: false
146         status: SUPPORTED
147       reservation_id:
148         type: string
149         description: A UUID for the set of servers being requested
150         required: false
151         status: SUPPORTED
152       security_groups:
153         type: list
154         description: List of security group names or IDs
155         required: false
156         default: [
157           ]
158         status: SUPPORTED
159         entry_schema:
160           type: string
161       config_drive:
162         type: boolean
163         description: enable config drive on the server
164         required: false
165         status: SUPPORTED
166       personality:
167         type: map
168         description: A map of files to create/overwrite on the server upon boot
169         required: false
170         default: {
171           }
172         status: SUPPORTED
173         entry_schema:
174           type: string
175       software_config_transport:
176         type: string
177         description: How the server should receive the metadata required for software configuration
178         required: false
179         default: POLL_SERVER_CFN
180         status: SUPPORTED
181         constraints:
182         - valid_values:
183           - POLL_SERVER_CFN
184           - POLL_SERVER_HEAT
185           - POLL_TEMP_URL
186           - ZAQAR_MESSAGE
187       user_data_format:
188         type: string
189         description: How the user_data should be formatted for the server
190         required: false
191         default: HEAT_CFNTOOLS
192         status: SUPPORTED
193         constraints:
194         - valid_values:
195           - SOFTWARE_CONFIG
196           - RAW
197           - HEAT_CFNTOOLS
198       diskConfig:
199         type: string
200         description: Control how the disk is partitioned when the server is created
201         required: false
202         status: SUPPORTED
203         constraints:
204         - valid_values:
205           - AUTO
206           - MANUAL
207       name:
208         type: string
209         description: Server name
210         required: false
211         status: SUPPORTED
212       scheduler_hints:
213         type: map
214         description: Arbitrary key-value pairs specified by the client to help boot a server
215         required: false
216         status: SUPPORTED
217         entry_schema:
218           type: string
219     attributes:
220       accessIPv4:
221         type: string
222         description: The manually assigned alternative public IPv4 address of the server
223         status: SUPPORTED
224       addresses:
225         type: map
226         description: A dict of all network addresses with corresponding port_id
227         status: SUPPORTED
228         entry_schema:
229           type: org.openecomp.datatypes.heat.novaServer.network.AddressInfo
230       accessIPv6:
231         type: string
232         description: The manually assigned alternative public IPv6 address of the server
233         status: SUPPORTED
234       instance_name:
235         type: string
236         description: AWS compatible instance name
237         status: SUPPORTED
238       name:
239         type: string
240         description: Name of the server
241         status: SUPPORTED
242       show:
243         type: string
244         description: Detailed information about resource
245         status: SUPPORTED
246       console_urls:
247         type: string
248         description: URLs of servers consoles
249         status: SUPPORTED