-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.yaml
More file actions
277 lines (271 loc) · 8.21 KB
/
Copy pathplugin.yaml
File metadata and controls
277 lines (271 loc) · 8.21 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
plugins:
occi:
executor: central_deployment_agent
source: https://github.com/ICS-MU/westlife-cloudify-occi-plugin/archive/0.0.15.zip
package_name: cloudify-occi-plugin
package_version: '0.0.15'
data_types:
cloudify.datatypes.occi.Config:
properties:
endpoint:
description: >
Remote OCCI server endpoint.
type: string
required: true
auth:
description: >
Authentication method (x509, token, basic, digest or none)
type: string
default: 'none'
required: true
username:
description: >
Username for basic or digest authentication
type: string
required: false
password:
description: >
Password for basic, digest and x509 authentication
type: string
required: false
user_cred:
description: >
Path to user's x509 credentials
type: string
required: false
ca_path:
description: >
Path to CA certificates directory
type: string
required: false
voms:
description: >
Using VOMS credentials; modifies behavior of the X509 auth module
type: boolean
default: False
required: false
cloudify.datatypes.occi.compute.ServerConfig:
properties:
os_tpl:
description: >
OS Template.
type: string
required: true
resource_tpl:
description: >
Hardware resource template.
type: string
required: true
availability_zone:
description: >
Availability zone.
type: string
required: false
network:
description: >
Network to attach on start.
type: string
required: false
network_pool:
description: >
Network pool name.
type: string
required: false
cpu:
description: >
CPU cores (obsolete).
type: integer
required: false
memory:
description: >
Memory size (obsolete).
type: integer
required: false
cloudify.datatypes.occi.compute.CloudConfig:
properties:
username:
description: >
Remote SSH user name.
type: string
required: true
public_key:
description: >
Remote SSH user's public key.
type: string
required: true
data:
description: >
Custom cloud-init data as dictionary.
default: {}
required: false
relationships:
cloudify.occi.relationships.volume_attached_to_server:
derived_from: cloudify.relationships.connected_to
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: occi.cloudify_occi_plugin.tasks.attach_volume
inputs:
attach_retry_interval:
description: >
Polling interval until volume is attached in seconds
type: integer
default: 60
unlink:
implementation: occi.cloudify_occi_plugin.tasks.detach_volume
inputs:
detach_retry_interval:
description: >
Polling interval until volum is detached in seconds
type: integer
default: 60
wait_finish:
description: >
Wait until volume is sucessfully detached.
type: boolean
default: true
skip_action:
description: >
Skip this action, don't do anything.
type: boolean
default: false
cloudify.occi.relationships.volume_contained_in_server:
derived_from: cloudify.relationships.contained_in
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: occi.cloudify_occi_plugin.tasks.attach_volume
inputs:
attach_retry_interval:
description: >
Polling interval until volume is attached in seconds
type: integer
default: 60
unlink:
implementation: occi.cloudify_occi_plugin.tasks.detach_volume
inputs:
detach_retry_interval:
description: >
Polling interval until volum is detached in seconds
type: integer
default: 60
wait_finish:
description: >
Wait until volume is sucessfully detached.
type: boolean
default: true
skip_action:
description: >
Skip this action, don't do anything.
type: boolean
default: false
node_types:
cloudify.occi.nodes.Server:
derived_from: cloudify.nodes.Compute
properties:
name:
description: >
Name of the resource.
type: string
required: false
resource_config:
description: >
A dictionary of server configure (OS and hardware profile).
type: cloudify.datatypes.occi.compute.ServerConfig
required: true
occi_config:
description: >
A dictionary of values to pass to authenticate with the OCCI API
type: cloudify.datatypes.occi.Config
required: true
cloud_config:
description: >
A dictionary of cloud-init configuration values.
type: cloudify.datatypes.occi.compute.CloudConfig
required: false
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: occi.cloudify_occi_plugin.tasks.create
start:
implementation: occi.cloudify_occi_plugin.tasks.start
inputs:
start_retry_interval:
description: >
Polling interval until the server is active in seconds
type: integer
default: 30
stop:
implementation: occi.cloudify_occi_plugin.tasks.stop
inputs:
stop_retry_interval:
description: >
Polling interval until the server is stopped
type: integer
default: 30
wait_finish:
description: >
Wait until server is successfully stopped
type: boolean
default: true
delete:
implementation: occi.cloudify_occi_plugin.tasks.delete
inputs:
delete_retry_interval:
description: >
Polling interval until the server is deleted
type: integer
default: 30
wait_finish:
description: >
Wait until server is successfully deleted
type: boolean
default: true
cloudify.occi.nodes.Volume:
derived_from: cloudify.nodes.Volume
properties:
name:
description: >
Name of the resource.
type: string
required: false
size:
description: >
Volume size in GB.
type: integer
required: true
availability_zone:
description: >
Availability zone.
type: string
required: false
occi_config:
description: >
A dictionary of values to pass to authenticate with the OCCI API
type: cloudify.datatypes.occi.Config
required: true
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: occi.cloudify_occi_plugin.tasks.create_volume
start:
implementation: occi.cloudify_occi_plugin.tasks.start_volume
inputs:
start_retry_interval:
description: >
Polling interval until the volume is online in seconds
type: integer
default: 30
delete:
implementation: occi.cloudify_occi_plugin.tasks.delete
inputs:
delete_retry_interval:
description: >
Polling interval until the volume is deleted
type: integer
default: 30
wait_finish:
description: >
Wait until volume is successfully deleted
type: boolean
default: true