-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathplugin.yaml
More file actions
154 lines (149 loc) · 5.4 KB
/
plugin.yaml
File metadata and controls
154 lines (149 loc) · 5.4 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
##################################################################################
# Cloudify host pool built in types and plugins definitions.
##################################################################################
plugins:
hostpool:
executor: central_deployment_agent
package_name: cloudify-host-pool-plugin
package_version: '1.5.5'
data_types:
cloudify.datatypes.hostpool.Filters:
properties:
tags:
description: |
List of tags which all must match in the hosts' tags list
required: false
default: []
node_types:
cloudify.hostpool.nodes.Host:
derived_from: cloudify.nodes.Compute
properties:
os:
description: |
Host OS to search for
type: string
required: true
filters:
description: |
A dictionary of values to pass as filters
type: cloudify.datatypes.hostpool.Filters
required: false
interfaces:
cloudify.interfaces.worker_installer:
install:
implementation: agent.worker_installer.tasks.install
inputs:
cloudify_agent:
default:
user: { get_attribute: [SELF, user] }
key: { get_attribute: [SELF, key] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
start:
implementation: agent.worker_installer.tasks.start
inputs:
cloudify_agent:
default:
user: { get_attribute: [SELF, user] }
key: { get_attribute: [SELF, key] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
stop:
implementation: agent.worker_installer.tasks.stop
inputs:
cloudify_agent:
default:
user: { get_attribute: [SELF, user] }
key: { get_attribute: [SELF, key] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
uninstall:
implementation: agent.worker_installer.tasks.uninstall
inputs:
cloudify_agent:
default:
user: { get_attribute: [SELF, user] }
key: { get_attribute: [SELF, key] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
restart:
implementation: agent.worker_installer.tasks.restart
inputs:
cloudify_agent:
default:
user: { get_attribute: [SELF, user] }
key: { get_attribute: [SELF, key] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
cloudify.interfaces.lifecycle:
create:
implementation: hostpool.cloudify_hostpool_plugin.tasks.acquire
inputs:
service_url:
description: >
The URL endpoint of the host pool service (ex. http://127.0.0.1:8080)
type: string
delete:
implementation: hostpool.cloudify_hostpool_plugin.tasks.release
inputs:
service_url:
description: >
The url to hostpool service
type: string
cloudify.hostpool.nodes.LinuxHost:
derived_from: cloudify.hostpool.nodes.Host
properties:
os:
default: linux
cloudify.hostpool.nodes.WindowsHost:
derived_from: cloudify.hostpool.nodes.Host
properties:
os:
default: windows
interfaces:
cloudify.interfaces.worker_installer:
install:
implementation: agent.windows_agent_installer.tasks.install
inputs:
cloudify_agent:
default:
windows: true
user: { get_attribute: [SELF, user] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
start:
implementation: agent.windows_agent_installer.tasks.start
inputs:
cloudify_agent:
default:
windows: true
user: { get_attribute: [SELF, user] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
stop:
implementation: agent.windows_agent_installer.tasks.stop
inputs:
cloudify_agent:
default:
windows: true
user: { get_attribute: [SELF, user] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
uninstall:
implementation: agent.windows_agent_installer.tasks.uninstall
inputs:
cloudify_agent:
default:
windows: true
user: { get_attribute: [SELF, user] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }
restart:
implementation: agent.windows_agent_installer.tasks.restart
inputs:
cloudify_agent:
default:
windows: true
user: { get_attribute: [SELF, user] }
password: { get_attribute: [SELF, password] }
port: { get_attribute: [SELF, port] }