-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell-definition.yaml
More file actions
197 lines (191 loc) · 8.33 KB
/
shell-definition.yaml
File metadata and controls
197 lines (191 loc) · 8.33 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
template_name: OpenStack Cloud Provider Shell 2G
template_author: Quali
template_version: 1.2.1
template_icon: shell-icon.png
description: >
Sample TOSCA based shell
imports:
- cloudshell_standard: cloudshell_cloud_provider_standard_1_0_0.yaml
node_types:
vendor.resource.OpenStack Cloud Provider Shell 2G:
derived_from: cloudshell.nodes.CustomCloudProvider
properties:
Controller URL:
type: string
default: 'http://controller/identity'
description: "OpenStack Keystone Controller URL endpoint address.
For example: http://controller/identity"
User:
type: string
default: ''
description: "OpenStack User"
Password:
description: "OpenStack Password"
type: cloudshell.datatypes.Password
VLAN Type:
type: string
default: 'VXLAN'
description: The VLAN technology to use for connectivity for this Cloud Provider.
constraints:
- valid_values: [ "VLAN", "VXLAN" ]
Floating IP Subnet ID:
type: string
default: ''
description: The UUID of the subnet to use for Floating IPs.
OpenStack Domain Name:
type: string
default: 'default'
description: "OpenStack domain name to use. Note, in the version Wallaby you
should use domain ID instead of name."
OpenStack Project Name:
type: string
default: ''
description: OpenStack project in which CloudShell will create the instances.
OpenStack Management Network ID:
type: string
default: ''
description: "The UUID of the Management Network to use.
This network will be used to configure the communication between the Sandbox instances and the CloudShell components.
The UUID can be found under the Horizon user interface.
For example: c14241d2-376c-4fb3-8d1e-61f5c1408448."
OpenStack Trunk Network ID:
type: string
default: ""
description: "The UUID of the Trunk Network to use. This network will be added
to trunk port as default network. If the attribute is empty OpenStack Management
Network ID will be used instead."
OpenStack Reserved Networks:
type: string
default: ''
description: "Reserved networks separated by semicolon ';'.
vNICs configured to those networks won't be used for VM connectivity."
OpenStack Physical Interface Name:
type: string
default: ''
description: "The physical interface mapping name to use when configuring OpenStack connectivity.
The physical interface can be found under the connectivity provider configuration.
If VXLAN is set as the 'VLAN Type' this attribute is not required.
For OpenStack deployments that use the Linux-Bridge plugin,
the physical interface name is located in the '/etc/neutron/plugins/ml2/linuxbridge_agent.ini'
file under the 'physical_interface_mappings' attribute
(examples: physical_interface_mappings = public:em1,office:p1p2,quali:em2).
For Open vSwitch plugin, the physical interface name is located in the
'/etc/neutron/plugins/ml2/openvswitch_agent.ini' file under the 'bridge_mappings' attribute
(example: bridge_mappings = public:br-vlan)."
Region:
type: string
default: ''
Networks in use:
type: string
default: ''
Networking type:
type: string
default: 'L2'
Behavior during save:
type: string
default: "Power Off"
description: "Determines the VM behavior when the sandbox is saved. If Power
off is selected, and the VM was powered on before the save, then the VM
will shut down for the duration of the save, and then be powered on at the end."
constraints:
- valid_values: [ "Remain Powered On", "Power Off" ]
capabilities:
concurrent_command_capability:
type: cloudshell.capabilities.SupportConcurrentCommands
auto_discovery_capability:
type: cloudshell.capabilities.AutoDiscovery
properties:
enable_auto_discovery:
type: boolean
default: true
auto_discovery_description:
type: string
default: Describe the auto discovery
inventory_description:
type: string
default: Describe the resource shell template
hide_address:
type: string
default: true
Controller URL:
type: string
default: 'http://controller/identity'
description: "OpenStack Keystone Controller URL endpoint address. For example: http://controller/identity"
User:
type: string
default: ''
description: "OpenStack User"
Password:
description: "OpenStack Password"
type: cloudshell.datatypes.Password
VLAN Type:
type: string
default: 'VXLAN'
description: The VLAN technology to use for connectivity for this Cloud Provider.
constraints:
- valid_values: [ "VLAN", "VXLAN" ]
Floating IP Subnet ID:
type: string
default: ''
description: The UUID of the subnet to use for Floating IPs.
OpenStack Domain Name:
type: string
default: 'default'
description: "OpenStack domain name to use. Note, in the version Wallaby you
should use domain ID instead of name."
OpenStack Project Name:
type: string
default: ''
description: OpenStack project in which CloudShell will create the instances.
OpenStack Management Network ID:
type: string
default: ''
description: "The UUID of the Management Network to use.
This network will be used to configure the communication between the Sandbox instances and the CloudShell components.
The UUID can be found under the Horizon user interface.
For example: c14241d2-376c-4fb3-8d1e-61f5c1408448."
OpenStack Trunk Network ID:
type: string
default: ""
description: "The UUID of the Trunk Network to use. This network will be
added to trunk port as default network. If the attribute is empty OpenStack
Management Network ID will be used instead."
OpenStack Reserved Networks:
type: string
default: ''
description: "Reserved networks separated by semicolon ';'.
vNICs configured to those networks won't be used for VM connectivity."
OpenStack Physical Interface Name:
type: string
default: ''
description: "The physical interface mapping name to use when configuring OpenStack connectivity.
The physical interface can be found under the connectivity provider configuration.
If VXLAN is set as the 'VLAN Type' this attribute is not required.
For OpenStack deployments that use the Linux-Bridge plugin,
the physical interface name is located in the '/etc/neutron/plugins/ml2/linuxbridge_agent.ini'
file under the 'physical_interface_mappings' attribute
(examples: physical_interface_mappings = public:em1,office:p1p2,quali:em2).
For Open vSwitch plugin, the physical interface name is located in the
'/etc/neutron/plugins/ml2/openvswitch_agent.ini' file under the 'bridge_mappings' attribute
(example: bridge_mappings = public:br-vlan)."
Behavior during save:
type: string
default: "Power Off"
description: "Determines the VM behavior when the sandbox is saved. If Power
off is selected, and the VM was powered on before the save, then the VM
will shut down for the duration of the save, and then be powered on at the
end."
constraints:
- valid_values: [ "Remain Powered On", "Power Off" ]
artifacts:
icon:
file: shell-icon.png
type: tosca.artifacts.File
driver:
file: OpenstackShell2GDriver.zip
type: tosca.artifacts.File
deployment:
file: Deployments.zip
type: tosca.artifacts.File