forked from cloudify-cosmo/cloudify-puppet-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.yaml.template
249 lines (237 loc) · 9.98 KB
/
plugin.yaml.template
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
# WARNING:
# /etc/sudoers must not have "Default requiretty" for Puppet plugin to work
plugins:
puppet_plugin:
derived_from: cloudify.plugins.agent_plugin
properties:
url: https://github.com/cloudify-cosmo/cloudify-puppet-plugin/archive/{{ plugin_branch }}.zip
types:
cloudify.types.puppet.middleware_server:
derived_from: cloudify.types.middleware_server
properties:
# All Puppet related configuration goes inside
# the "puppet_config" property.
- puppet_config
# server (required)
# ------
#
# Host name of the Puppet server
#
#
# environment: (required)
# -----------
#
# Environment name
# See: http://docs.puppetlabs.com/guides/environment.html
#
#
# version: (optional. default: latest)
# -------
#
# `version` is the Puppet version to install
#
#
# node_name_prefix: (optional. default: empty string)
# ----------------
#
#
# node_name_suffix: (optional. default: empty string)
# ----------------
#
# Puppet node name is constructed as follows:
# `node_name_prefix` + node_id + `node_name_suffix`
#
#
# facts: (optional)
# -----
#
# Map with facts to add to facter. Must not contain
# `cloudify` nor `cloudify_*` keys as these are
# generated automatically.
#
#
# repos: (optional)
# -----
# deb:
# VER_NAME: url://for-package-that-installs-repo.deb
#
# Custom packages that are used for adding Puppet repository.
#
#
# modules: (optional)
# -------
# List of Puppet modules to install before executing any
# Puppet DSL (passed using "manifest" or "execute")
#
# Example:
# ===8<===
# modules:
# - puppetlabs-apache
# - puppetlabs-concat
# - puppetlabs-stdlib
# - puppetlabs-vcsrepo
# ===8<===
#
#
# download: (optional)
# --------
#
# Link to a .tar.gz to download for using as manifests.
# It is downloaded before any Puppet code runs.
# The file should typically contain "manifests" and
# "modules" directories. Can be used in conjunction with
# "execute" or "manifest" properties.
#
# The value of the "download" property can be either
# URL or a path to a .tar.gz file inside the blueprint.
#
# Example A: (url)
# ===8<===
# download: http://puppet-statics.example.com/manifests.tar.gz
# ===8<===
#
# Example B: (resource in blueprint)
# ===8<===
# download: /puppet-resources/manifests.tar.gz
# ===8<===
#
#
# execute: (either "execute" or "manifest" must be present)
# -------
# hash of per operation Puppet DSL to run.
#
# Example:
# ===8<===
# execute:
# configure: |
# package{'git':}
# ->
# vcsrepo{$cloudify_local_repo:
# ensure => present,
# provider => git,
# source => 'https://github.com/Fewbytes/cosmo-tester-puppet-downloadable.git',
# }
# start: |
# class{'cloudify_hello_world':
# }
# ===8<===
#
#
# manifest: (either "execute" or "manifest" must be present)
# --------
# hash of per operation Puppet manifest to run.
#
# Example:
# ===8<===
# manifest:
# start: manifests/site.pp
# ===8<===
#
# tags: (optional)
# ----
# List of tags to use while running Puppet (standalone or agent)
# Used for all operations.
#
# operations_tags: (optional)
# ---------------
# hash of lists of per operation tags to use
# while running Puppet (standalone or agent)
#
# Example:
# ===8<===
# operations_tags:
# start: ['my_start']
# ===8<===
#
# add_operation_tag: (boolean, optional, default false)
# -----------------
#
# In addition to any other tags, passes cloudify_operation_X
# tag, where X is the operation name (such as "configure" or
# "start" for example).
#
interfaces:
# All operations mapped to same entry point in Puppet plugin
# The "operation" function decides what to run according
# to the operation being performed. The operation is taken
# from the passed context (CloudifyContext.operation)
cloudify.interfaces.lifecycle:
- create: puppet_plugin.operations.operation
- configure: puppet_plugin.operations.operation
- start: puppet_plugin.operations.operation
- stop: puppet_plugin.operations.operation
- delete: puppet_plugin.operations.operation
cloudify.types.puppet.app_server:
derived_from: cloudify.types.app_server
properties:
- puppet_config
interfaces:
cloudify.interfaces.lifecycle:
- create: puppet_plugin.operations.operation
- configure: puppet_plugin.operations.operation
- start: puppet_plugin.operations.operation
- stop: puppet_plugin.operations.operation
- delete: puppet_plugin.operations.operation
cloudify.types.puppet.db_server:
derived_from: cloudify.types.db_server
properties:
- puppet_config
interfaces:
cloudify.interfaces.lifecycle:
- create: puppet_plugin.operations.operation
- configure: puppet_plugin.operations.operation
- start: puppet_plugin.operations.operation
- stop: puppet_plugin.operations.operation
- delete: puppet_plugin.operations.operation
cloudify.types.puppet.web_server:
derived_from: cloudify.types.web_server
properties:
- puppet_config
interfaces:
cloudify.interfaces.lifecycle:
- create: puppet_plugin.operations.operation
- configure: puppet_plugin.operations.operation
- start: puppet_plugin.operations.operation
- stop: puppet_plugin.operations.operation
- delete: puppet_plugin.operations.operation
cloudify.types.puppet.message_bus_server:
derived_from: cloudify.types.message_bus_server
properties:
- puppet_config
interfaces:
cloudify.interfaces.lifecycle:
- create: puppet_plugin.operations.operation
- configure: puppet_plugin.operations.operation
- start: puppet_plugin.operations.operation
- stop: puppet_plugin.operations.operation
- delete: puppet_plugin.operations.operation
cloudify.types.puppet.app_module:
derived_from: cloudify.types.app_module
properties:
- puppet_config
interfaces:
cloudify.interfaces.lifecycle:
- create: puppet_plugin.operations.operation
- configure: puppet_plugin.operations.operation
- start: puppet_plugin.operations.operation
- stop: puppet_plugin.operations.operation
- delete: puppet_plugin.operations.operation
relationships:
cloudify.puppet.depends_on:
derived_from: cloudify.relationships.depends_on
source_interfaces:
# The comment under types.interfaces applies here too
cloudify.interfaces.relationship_lifecycle:
- preconfigure: puppet_plugin.operations.operation
- postconfigure: puppet_plugin.operations.operation
- establish: puppet_plugin.operations.operation
- unlink: puppet_plugin.operations.operation
cloudify.puppet.connected_to:
derived_from: cloudify.relationships.connected_to
source_interfaces:
# The comment under types.interfaces applies here too
cloudify.interfaces.relationship_lifecycle:
- preconfigure: puppet_plugin.operations.operation
- postconfigure: puppet_plugin.operations.operation
- establish: puppet_plugin.operations.operation
- unlink: puppet_plugin.operations.operation