-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.yaml
337 lines (337 loc) · 9.59 KB
/
plugin.yaml
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
plugins:
docker:
executor: central_deployment_agent
package_name: cloudify-docker-plugin
package_version: 2.0.16
dsl_definitions:
client_config:
client_config: &id001
type: cloudify.types.docker.ClientConfig
required: false
docker_machine:
docker_machine: &id002
type: cloudify.types.docker.DockerMachineConfig
required: false
playbook_config:
ansible_playbook_executable_path: &id003
type: string
default: ansible-playbook
playbook_source_path: &id004
type: string
default: ''
playbook_path: &id005
type: string
default: ''
site_yaml_path: &id006
type: string
default: ''
additional_playbook_files: &id007
type: list
default: []
sources: &id008
default: {}
run_data: &id009
default: {}
sensitive_keys: &id010
type: list
default:
- ansible_password
options_config: &id011
default: {}
ansible_env_vars: &id012
default:
ANSIBLE_HOST_KEY_CHECKING: 'False'
ANSIBLE_INVALID_TASK_ATTRIBUTE_FAILED: 'False'
debug_level: &id013
type: integer
default: 2
additional_args: &id014
type: string
default: ''
save_playbook: &id015
type: boolean
default: false
remerge_sources: &id016
type: boolean
default: false
ansible_become: &id017
type: boolean
default: false
playbook_inputs:
ansible_playbook_executable_path: &id018
default: { get_property: [SELF, ansible_playbook_executable_path] }
playbook_source_path: &id019
default: { get_property: [SELF, playbook_source_path] }
playbook_path: &id020
default: { get_property: [SELF, playbook_path] }
site_yaml_path: &id021
default: { get_property: [SELF, site_yaml_path] }
save_playbook: &id022
default: { get_property: [SELF, save_playbook] }
remerge_sources: &id023
default: { get_property: [SELF, remerge_sources] }
sources: &id024
default: { get_property: [SELF, sources] }
run_data: &id025
default: { get_property: [SELF, run_data] }
sensitive_keys: &id026
default: { get_property: [SELF, sensitive_keys] }
options_config: &id027
default: { get_property: [SELF, options_config] }
ansible_env_vars: &id028
default: { get_property: [SELF, ansible_env_vars] }
debug_level: &id029
default: { get_property: [SELF, debug_level] }
additional_args: &id030
default: { get_property: [SELF, additional_args] }
data_types:
cloudify.types.docker.DockerMachineConfig:
properties:
docker_ip:
type: string
default: ''
docker_user:
type: string
default: ''
docker_key:
type: string
default: ''
container_volume:
type: string
default: ''
cloudify.types.docker.DockerInstallationConfig:
properties:
install_url:
type: string
default: https://get.docker.com
install_script:
type: string
default: https://raw.githubusercontent.com/cloudify-cosmo/cloudify-docker-plugin/master/cloudify_docker/resources/post-install.sh
install_with_sudo:
type: boolean
default: true
offline_installation:
type: boolean
default: false
package_tar_path:
type: string
default: ''
post_install_script_path:
type: string
default: ''
installation_dir:
type: string
default: ''
cloudify.types.docker.ClientConfig:
properties:
docker_host:
type: string
default: ''
docker_rest_port:
type: string
default: ''
docker_sock_file:
type: string
default: ''
cloudify.types.docker.Image:
properties:
image_content:
type: string
default: ''
tag:
type: string
default: ''
pull_image:
type: boolean
default: false
all_tags:
type: boolean
default: false
cloudify.types.docker.Container:
properties:
image_tag:
type: string
default: ''
container_args:
type: dict
default: {}
cloudify.types.docker.ContainerFiles:
properties:
docker_machine:
type: cloudify.types.docker.DockerMachineConfig
default: {}
source:
type: string
default: ''
destination:
type: string
default: ''
extra_files:
type: list
default: []
ansible_sources:
type: dict
default: {}
terraform_sources:
type: dict
default: {}
cloudify.types.terraform.Backend:
properties:
name:
type: string
required: false
options:
required: false
cloudify.types.terraform.RootModule:
properties:
source:
type: string
required: true
backend:
type: cloudify.types.terraform.Backend
default: {}
variables:
required: false
default: {}
environment_variables:
required: false
default: {}
node_types:
cloudify.nodes.docker.images:
derived_from: cloudify.nodes.Root
properties:
client_config: *id001
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.tasks.list_images
cloudify.nodes.docker.containers:
derived_from: cloudify.nodes.Root
properties:
client_config: *id001
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.tasks.list_containers
cloudify.nodes.docker.host:
derived_from: cloudify.nodes.Root
properties:
docker_machine: *id002
resource_config:
type: cloudify.types.docker.DockerInstallationConfig
required: true
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.tasks.install_docker
delete:
implementation: docker.cloudify_docker.tasks.uninstall_docker
cloudify.nodes.docker.host_details:
derived_from: cloudify.nodes.Root
properties:
client_config: *id001
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.tasks.list_host_details
cloudify.nodes.docker.image:
derived_from: cloudify.nodes.Root
properties:
client_config: *id001
resource_config:
type: cloudify.types.docker.Image
required: true
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.tasks.build_image
delete:
implementation: docker.cloudify_docker.tasks.remove_image
cloudify.nodes.docker.container:
derived_from: cloudify.nodes.Root
properties:
client_config: *id001
resource_config:
type: cloudify.types.docker.Container
required: true
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.tasks.create_container
stop:
implementation: docker.cloudify_docker.tasks.stop_container
inputs:
stop_command:
type: string
default: ''
delete:
implementation: docker.cloudify_docker.tasks.remove_container
cloudify.nodes.docker.container_files:
derived_from: cloudify.nodes.Root
properties:
resource_config:
type: cloudify.types.docker.ContainerFiles
required: true
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.tasks.prepare_container_files
delete:
implementation: docker.cloudify_docker.tasks.remove_container_files
cloudify.nodes.docker.ansible_playbook:
derived_from: cloudify.nodes.Root
properties:
ansible_playbook_executable_path: *id003
playbook_source_path: *id004
playbook_path: *id005
site_yaml_path: *id006
additional_playbook_files: *id007
sources: *id008
run_data: *id009
sensitive_keys: *id010
options_config: *id011
ansible_env_vars: *id012
debug_level: *id013
additional_args: *id014
save_playbook: *id015
remerge_sources: *id016
ansible_become: *id017
docker_machine: *id002
interfaces:
cloudify.interfaces.lifecycle:
precreate:
implementation: docker.cloudify_docker.ansible.set_playbook_config
inputs:
ansible_playbook_executable_path: *id018
playbook_source_path: *id019
playbook_path: *id020
site_yaml_path: *id021
save_playbook: *id022
remerge_sources: *id023
sources: *id024
run_data: *id025
sensitive_keys: *id026
options_config: *id027
ansible_env_vars: *id028
debug_level: *id029
additional_args: *id030
create:
implementation: docker.cloudify_docker.ansible.create_ansible_playbook
delete:
implementation: docker.cloudify_docker.ansible.remove_ansible_playbook
cloudify.nodes.docker.terraform_module:
derived_from: cloudify.nodes.Root
properties:
docker_machine: *id002
terraform_plugins:
default: []
required: true
resource_config:
type: cloudify.types.terraform.RootModule
required: true
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.cloudify_docker.terraform.prepare_terraform_files
delete:
implementation: docker.cloudify_docker.terraform.remove_terraform_files