bolt 2.12.0 → 2.17.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bolt might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Puppetfile +1 -1
- data/bolt-modules/boltlib/lib/puppet/datatypes/resourceinstance.rb +3 -2
- data/bolt-modules/boltlib/lib/puppet/functions/add_facts.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/add_to_group.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb +1 -1
- data/bolt-modules/boltlib/lib/puppet/functions/catch_errors.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/facts.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/fail_plan.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/get_resources.rb +2 -1
- data/bolt-modules/boltlib/lib/puppet/functions/get_target.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/get_targets.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/puppetdb_fact.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/puppetdb_query.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/remove_from_group.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/resolve_references.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/resource.rb +53 -0
- data/bolt-modules/boltlib/lib/puppet/functions/run_command.rb +3 -0
- data/bolt-modules/boltlib/lib/puppet/functions/run_plan.rb +7 -2
- data/bolt-modules/boltlib/lib/puppet/functions/run_script.rb +7 -4
- data/bolt-modules/boltlib/lib/puppet/functions/run_task.rb +6 -3
- data/bolt-modules/boltlib/lib/puppet/functions/run_task_with.rb +8 -2
- data/bolt-modules/boltlib/lib/puppet/functions/set_config.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/set_feature.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/set_resources.rb +66 -43
- data/bolt-modules/boltlib/lib/puppet/functions/set_var.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/upload_file.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/vars.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/wait_until_available.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/without_default_logging.rb +1 -0
- data/bolt-modules/boltlib/lib/puppet/functions/write_file.rb +1 -0
- data/bolt-modules/ctrl/lib/puppet/functions/ctrl/do_until.rb +2 -0
- data/bolt-modules/ctrl/lib/puppet/functions/ctrl/sleep.rb +2 -0
- data/bolt-modules/file/lib/puppet/functions/file/exists.rb +2 -1
- data/bolt-modules/file/lib/puppet/functions/file/join.rb +2 -0
- data/bolt-modules/file/lib/puppet/functions/file/read.rb +3 -1
- data/bolt-modules/file/lib/puppet/functions/file/readable.rb +3 -1
- data/bolt-modules/file/lib/puppet/functions/file/write.rb +2 -0
- data/bolt-modules/out/lib/puppet/functions/out/message.rb +2 -0
- data/bolt-modules/prompt/lib/puppet/functions/prompt.rb +1 -0
- data/bolt-modules/system/lib/puppet/functions/system/env.rb +2 -0
- data/lib/bolt/applicator.rb +20 -7
- data/lib/bolt/apply_inventory.rb +4 -0
- data/lib/bolt/apply_target.rb +4 -0
- data/lib/bolt/bolt_option_parser.rb +20 -13
- data/lib/bolt/catalog.rb +81 -68
- data/lib/bolt/cli.rb +16 -8
- data/lib/bolt/config.rb +150 -138
- data/lib/bolt/config/options.rb +473 -0
- data/lib/bolt/config/transport/base.rb +16 -16
- data/lib/bolt/config/transport/docker.rb +9 -23
- data/lib/bolt/config/transport/local.rb +6 -44
- data/lib/bolt/config/transport/options.rb +454 -0
- data/lib/bolt/config/transport/orch.rb +9 -18
- data/lib/bolt/config/transport/remote.rb +3 -6
- data/lib/bolt/config/transport/ssh.rb +59 -114
- data/lib/bolt/config/transport/winrm.rb +18 -47
- data/lib/bolt/executor.rb +14 -1
- data/lib/bolt/inventory/group.rb +1 -1
- data/lib/bolt/inventory/inventory.rb +4 -14
- data/lib/bolt/inventory/target.rb +22 -5
- data/lib/bolt/logger.rb +3 -1
- data/lib/bolt/outputter.rb +3 -0
- data/lib/bolt/outputter/rainbow.rb +84 -0
- data/lib/bolt/pal.rb +24 -9
- data/lib/bolt/project.rb +64 -55
- data/lib/bolt/resource_instance.rb +10 -3
- data/lib/bolt/shell/bash.rb +30 -42
- data/lib/bolt/shell/powershell.rb +13 -8
- data/lib/bolt/shell/powershell/snippets.rb +8 -0
- data/lib/bolt/transport/docker.rb +9 -5
- data/lib/bolt/transport/local/connection.rb +2 -1
- data/lib/bolt/transport/orch.rb +8 -0
- data/lib/bolt/transport/ssh/connection.rb +35 -0
- data/lib/bolt/version.rb +1 -1
- data/lib/bolt_spec/bolt_context.rb +1 -1
- data/lib/bolt_spec/run.rb +1 -1
- metadata +22 -18
@@ -0,0 +1,473 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bolt/config/transport/ssh'
|
4
|
+
require 'bolt/config/transport/winrm'
|
5
|
+
require 'bolt/config/transport/orch'
|
6
|
+
require 'bolt/config/transport/local'
|
7
|
+
require 'bolt/config/transport/docker'
|
8
|
+
require 'bolt/config/transport/remote'
|
9
|
+
|
10
|
+
module Bolt
|
11
|
+
class Config
|
12
|
+
module Options
|
13
|
+
# Transport config classes. Used to load default transport config which
|
14
|
+
# gets passed along to the inventory.
|
15
|
+
TRANSPORT_CONFIG = {
|
16
|
+
'ssh' => Bolt::Config::Transport::SSH,
|
17
|
+
'winrm' => Bolt::Config::Transport::WinRM,
|
18
|
+
'pcp' => Bolt::Config::Transport::Orch,
|
19
|
+
'local' => Bolt::Config::Transport::Local,
|
20
|
+
'docker' => Bolt::Config::Transport::Docker,
|
21
|
+
'remote' => Bolt::Config::Transport::Remote
|
22
|
+
}.freeze
|
23
|
+
|
24
|
+
# Plugin definition. This is used by the JSON schemas to indicate that an option
|
25
|
+
# accepts a plugin reference. Since this isn't used by Bolt to perform automatic
|
26
|
+
# type validation, the :type key is set to a JSON type instead of a Ruby type.
|
27
|
+
PLUGIN = {
|
28
|
+
"_plugin" => {
|
29
|
+
description: "A plugin reference.",
|
30
|
+
type: "object",
|
31
|
+
required: ["_plugin"],
|
32
|
+
properties: {
|
33
|
+
"_plugin" => {
|
34
|
+
description: "The name of the plugin.",
|
35
|
+
type: "string"
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}.freeze
|
40
|
+
|
41
|
+
# The following constants define the various configuration options available to Bolt.
|
42
|
+
# Each constant is a hash where keys are the configuration option and values are the
|
43
|
+
# option's definition. These options are used in multiple locations:
|
44
|
+
#
|
45
|
+
# - Automatic type validation when loading and setting configuration
|
46
|
+
# - Generating reference documentation for configuration files
|
47
|
+
# - Generating JSON schemas for configuration files
|
48
|
+
#
|
49
|
+
# Data includes keys defined by JSON Schema Draft 07 as well as some metadata used
|
50
|
+
# by Bolt to generate documentation. The following keys are used:
|
51
|
+
#
|
52
|
+
# :description String A detailed description of the option and what it does. This
|
53
|
+
# field is used in both documentation and the JSON schemas,
|
54
|
+
# and should provide as much detail as possible, including
|
55
|
+
# links to relevant documentation.
|
56
|
+
#
|
57
|
+
# :type Class The expected type of a value. These should be Ruby classes,
|
58
|
+
# as this field is used to perform automatic type validation.
|
59
|
+
# If an option can accept more than one type, this should be
|
60
|
+
# an array of types. Boolean values should set :type to
|
61
|
+
# [TrueClass, FalseClass], as Ruby does not have a single
|
62
|
+
# Boolean class.
|
63
|
+
#
|
64
|
+
# :items Hash A definition hash for items in an array. Similar to values
|
65
|
+
# for top-level options, items can have a :description, :type,
|
66
|
+
# or any other key in this list.
|
67
|
+
#
|
68
|
+
# :uniqueItems Boolean Whether or not an array should contain only unique items.
|
69
|
+
#
|
70
|
+
# :properties Hash A hash where keys are sub-options and values are definitions
|
71
|
+
# for the sub-option. Similar to values for top-level options,
|
72
|
+
# properties can have a :description, :type, or any other key
|
73
|
+
# in this list.
|
74
|
+
#
|
75
|
+
# :additionalProperties A variation of the :properties key, where the hash is a
|
76
|
+
# Hash definition for any properties not specified in :properties.
|
77
|
+
# This can be used to permit arbitrary sub-options, such as
|
78
|
+
# logs for the 'log' option.
|
79
|
+
#
|
80
|
+
# :required Array An array of properties that are required for options that
|
81
|
+
# accept Hash values.
|
82
|
+
#
|
83
|
+
# :minimum Integer The minimum integer value for an option.
|
84
|
+
#
|
85
|
+
# :enum Array An array of values that the option recognizes.
|
86
|
+
#
|
87
|
+
# :pattern String A JSON regex pattern that the option's vaue should match.
|
88
|
+
#
|
89
|
+
# :format String Requires that a string value matches a format defined by the
|
90
|
+
# JSON Schema draft.
|
91
|
+
#
|
92
|
+
# :_plugin Boolean Whether the option accepts a plugin reference. This is used
|
93
|
+
# when generating the JSON schemas to determine whether or not
|
94
|
+
# to include a reference to the _plugin definition. If :_plugin
|
95
|
+
# is set to true, the script that generates JSON schemas will
|
96
|
+
# automatically recurse through the :items and :properties keys
|
97
|
+
# and add plugin references if applicable.
|
98
|
+
#
|
99
|
+
# :_example Any An example value for the option. This is used to generate
|
100
|
+
# reference documentation for configuration files.
|
101
|
+
#
|
102
|
+
# :_default Any The documented default value for the option. This is only
|
103
|
+
# used to generate reference documentation for configuration
|
104
|
+
# files and is not used by Bolt to actually set default values.
|
105
|
+
OPTIONS = {
|
106
|
+
"apply_settings" => {
|
107
|
+
description: "A map of Puppet settings to use when applying Puppet code using the `apply` "\
|
108
|
+
"plan function or the `bolt apply` command.",
|
109
|
+
type: Hash,
|
110
|
+
properties: {
|
111
|
+
"show_diff" => {
|
112
|
+
description: "Whether to log and report a contextual diff.",
|
113
|
+
type: [TrueClass, FalseClass],
|
114
|
+
_example: true,
|
115
|
+
_default: false
|
116
|
+
}
|
117
|
+
},
|
118
|
+
_plugin: false
|
119
|
+
},
|
120
|
+
"color" => {
|
121
|
+
description: "Whether to use colored output when printing messages to the console.",
|
122
|
+
type: [TrueClass, FalseClass],
|
123
|
+
_plugin: false,
|
124
|
+
_example: false,
|
125
|
+
_default: true
|
126
|
+
},
|
127
|
+
"compile-concurrency" => {
|
128
|
+
description: "The maximum number of simultaneous manifest block compiles.",
|
129
|
+
type: Integer,
|
130
|
+
minimum: 1,
|
131
|
+
_plugin: false,
|
132
|
+
_example: 5,
|
133
|
+
_default: "Number of cores."
|
134
|
+
},
|
135
|
+
"concurrency" => {
|
136
|
+
description: "The number of threads to use when executing on remote targets.",
|
137
|
+
type: Integer,
|
138
|
+
minimum: 1,
|
139
|
+
_plugin: false,
|
140
|
+
_example: 50,
|
141
|
+
_default: "100 or 1/7 the ulimit, whichever is lower."
|
142
|
+
},
|
143
|
+
"format" => {
|
144
|
+
description: "The format to use when printing results.",
|
145
|
+
type: String,
|
146
|
+
enum: %w[human json rainbow],
|
147
|
+
_plugin: false,
|
148
|
+
_example: "json",
|
149
|
+
_default: "human"
|
150
|
+
},
|
151
|
+
"hiera-config" => {
|
152
|
+
description: "The path to the Hiera configuration file.",
|
153
|
+
type: String,
|
154
|
+
_plugin: false,
|
155
|
+
_example: "~/.puppetlabs/bolt/hiera.yaml",
|
156
|
+
_default: "project/hiera.yaml"
|
157
|
+
},
|
158
|
+
"inventory-config" => {
|
159
|
+
description: "A map of default configuration options for the inventory. This includes options "\
|
160
|
+
"for setting the default transport to use when connecting to targets, as well as "\
|
161
|
+
"options for configuring the default behavior of each transport.",
|
162
|
+
type: Hash,
|
163
|
+
_plugin: false,
|
164
|
+
_example: {}
|
165
|
+
},
|
166
|
+
"inventoryfile" => {
|
167
|
+
description: "The path to a structured data inventory file used to refer to groups of targets on the "\
|
168
|
+
"command line and from plans. Read more about using inventory files in [Inventory "\
|
169
|
+
"files](inventory_file_v2.md).",
|
170
|
+
type: String,
|
171
|
+
_plugin: false,
|
172
|
+
_example: "~/.puppetlabs/bolt/inventory.yaml",
|
173
|
+
_default: "project/inventory.yaml"
|
174
|
+
},
|
175
|
+
"log" => {
|
176
|
+
description: "A map of configuration for the logfile output. Under `log`, you can configure log options "\
|
177
|
+
"for `console` and add configuration for individual log files, such as "\
|
178
|
+
"~/.puppetlabs/bolt/debug.log`. Individual log files must be valid filepaths. If the log "\
|
179
|
+
"file does not exist, then Bolt will create it before logging information.",
|
180
|
+
type: Hash,
|
181
|
+
properties: {
|
182
|
+
"console" => {
|
183
|
+
description: "Configuration for logs output to the console.",
|
184
|
+
type: Hash,
|
185
|
+
properties: {
|
186
|
+
"level" => {
|
187
|
+
description: "The type of information to log.",
|
188
|
+
type: String,
|
189
|
+
enum: %w[debug error info notice warn fatal any],
|
190
|
+
_default: "warn for console, notice for file"
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
},
|
195
|
+
additionalProperties: {
|
196
|
+
description: "Configuration for the logfile output.",
|
197
|
+
type: Hash,
|
198
|
+
properties: {
|
199
|
+
"append" => {
|
200
|
+
description: "Whether to append output to an existing log file.",
|
201
|
+
type: [TrueClass, FalseClass],
|
202
|
+
_default: true
|
203
|
+
},
|
204
|
+
"level" => {
|
205
|
+
description: "The type of information to log.",
|
206
|
+
type: String,
|
207
|
+
enum: %w[debug error info notice warn fatal any],
|
208
|
+
_default: "warn for console, notice for file"
|
209
|
+
}
|
210
|
+
}
|
211
|
+
},
|
212
|
+
_plugin: false,
|
213
|
+
_example: { "console" => { "level" => "info" },
|
214
|
+
"~/logs/debug.log" => { "append" => false, "level" => "debug" } }
|
215
|
+
},
|
216
|
+
"modulepath" => {
|
217
|
+
description: "An array of directories that Bolt loads content such as plans and tasks from. Read more "\
|
218
|
+
"about modules in [Module structure](module_structure.md).",
|
219
|
+
type: [Array, String],
|
220
|
+
items: {
|
221
|
+
type: String
|
222
|
+
},
|
223
|
+
_plugin: false,
|
224
|
+
_example: ["~/.puppetlabs/bolt/modules", "~/.puppetlabs/bolt/site-modules"],
|
225
|
+
_default: ["project/modules", "project/site-modules", "project/site"]
|
226
|
+
},
|
227
|
+
"name" => {
|
228
|
+
description: "The name of the Bolt project. When this option is configured, the project is considered a "\
|
229
|
+
"[Bolt project](experimental_features.md#bolt-projects), allowing Bolt to load content from "\
|
230
|
+
"the project directory as though it were a module.",
|
231
|
+
type: String,
|
232
|
+
_plugin: false,
|
233
|
+
_example: "myproject"
|
234
|
+
},
|
235
|
+
"plans" => {
|
236
|
+
description: "A list of plan names to show in `bolt plan show` output, if they exist. This option is used "\
|
237
|
+
"to limit the visibility of plans for users of the project. For example, project authors "\
|
238
|
+
"might want to limit the visibility of plans that are bundled with Bolt or plans that should "\
|
239
|
+
"only be run as part of another plan. When this option is not configured, all plans are "\
|
240
|
+
"visible. This option does not prevent users from running plans that are not part of this "\
|
241
|
+
"list.",
|
242
|
+
type: Array,
|
243
|
+
_plugin: false,
|
244
|
+
_example: ["myproject", "myproject::foo", "myproject::bar"]
|
245
|
+
},
|
246
|
+
"plugin_hooks" => {
|
247
|
+
description: "A map of [plugin hooks](writing_plugins.md#hooks) and which plugins a hook should use. "\
|
248
|
+
"The only configurable plugin hook is `puppet_library`, which can use two possible plugins: "\
|
249
|
+
"[`puppet_agent`](https://github.com/puppetlabs/puppetlabs-puppet_agent#puppet_agentinstall) "\
|
250
|
+
"and [`task`](using_plugins.md#task).",
|
251
|
+
type: Hash,
|
252
|
+
_plugin: true,
|
253
|
+
_example: { "puppet_library" => { "plugin" => "puppet_agent", "version" => "6.15.0", "_run_as" => "root" } }
|
254
|
+
},
|
255
|
+
"plugins" => {
|
256
|
+
description: "A map of plugins and their configuration data, where each key is the name of a plugin and "\
|
257
|
+
"its value is a map of configuration data. Configurable options are specified by the plugin. "\
|
258
|
+
"Read more about configuring plugins in [Using plugins](using_plugins.md#configuring-plugins).",
|
259
|
+
type: Hash,
|
260
|
+
_plugin: true,
|
261
|
+
_example: { "pkcs7" => { "keysize" => 1024 } }
|
262
|
+
},
|
263
|
+
"puppetdb" => {
|
264
|
+
description: "A map containing options for [configuring the Bolt PuppetDB "\
|
265
|
+
"client](bolt_connect_puppetdb.md).",
|
266
|
+
type: Hash,
|
267
|
+
properties: {
|
268
|
+
"cacert" => {
|
269
|
+
description: "The path to the ca certificate for PuppetDB.",
|
270
|
+
type: String,
|
271
|
+
_example: "/etc/puppetlabs/puppet/ssl/certs/ca.pem"
|
272
|
+
},
|
273
|
+
"cert" => {
|
274
|
+
description: "The path to the client certificate file to use for authentication.",
|
275
|
+
type: String,
|
276
|
+
_example: "/etc/puppetlabs/puppet/ssl/certs/my-host.example.com.pem"
|
277
|
+
},
|
278
|
+
"key" => {
|
279
|
+
description: "The private key for the certificate.",
|
280
|
+
type: String,
|
281
|
+
_example: "/etc/puppetlabs/puppet/ssl/private_keys/my-host.example.com.pem"
|
282
|
+
},
|
283
|
+
"server_urls" => {
|
284
|
+
description: "An array containing the PuppetDB host to connect to. Include the protocol `https` "\
|
285
|
+
"and the port, which is usually `8081`. For example, "\
|
286
|
+
"`https://my-master.example.com:8081`.",
|
287
|
+
type: Array,
|
288
|
+
_example: ["https://puppet.example.com:8081"]
|
289
|
+
},
|
290
|
+
"token" => {
|
291
|
+
description: "The path to the PE RBAC Token.",
|
292
|
+
type: String,
|
293
|
+
_example: "~/.puppetlabs/token"
|
294
|
+
}
|
295
|
+
},
|
296
|
+
_plugin: true
|
297
|
+
},
|
298
|
+
"puppetfile" => {
|
299
|
+
description: "A map containing options for the `bolt puppetfile install` command.",
|
300
|
+
type: Hash,
|
301
|
+
properties: {
|
302
|
+
"forge" => {
|
303
|
+
description: "A subsection that can have its own `proxy` setting to set an HTTP proxy for Forge "\
|
304
|
+
"operations only, and a `baseurl` setting to specify a different Forge host.",
|
305
|
+
type: Hash,
|
306
|
+
properties: {
|
307
|
+
"baseurl" => {
|
308
|
+
description: "The URL to the Forge host.",
|
309
|
+
type: String,
|
310
|
+
format: "uri",
|
311
|
+
_example: "https://forge.example.com"
|
312
|
+
},
|
313
|
+
"proxy" => {
|
314
|
+
description: "The HTTP proxy to use for Git and Forge operations.",
|
315
|
+
type: String,
|
316
|
+
format: "uri",
|
317
|
+
_example: "https://forgeapi.example.com"
|
318
|
+
}
|
319
|
+
},
|
320
|
+
_example: { "baseurl" => "https://forge.example.com", "proxy" => "https://forgeapi.example.com" }
|
321
|
+
},
|
322
|
+
"proxy" => {
|
323
|
+
description: "The HTTP proxy to use for Git and Forge operations.",
|
324
|
+
type: String,
|
325
|
+
format: "uri",
|
326
|
+
_example: "https://forgeapi.example.com"
|
327
|
+
}
|
328
|
+
},
|
329
|
+
_plugin: false
|
330
|
+
},
|
331
|
+
"save-rerun" => {
|
332
|
+
description: "Whether to update `.rerun.json` in the Bolt project directory. If "\
|
333
|
+
"your target names include passwords, set this value to `false` to avoid "\
|
334
|
+
"writing passwords to disk.",
|
335
|
+
type: [TrueClass, FalseClass],
|
336
|
+
_plugin: false,
|
337
|
+
_example: false,
|
338
|
+
_default: true
|
339
|
+
},
|
340
|
+
"tasks" => {
|
341
|
+
description: "A list of task names to show in `bolt task show` output, if they exist. This option is used "\
|
342
|
+
"to limit the visibility of tasks for users of the project. For example, project authors "\
|
343
|
+
"might want to limit the visibility of tasks that are bundled with Bolt or plans that should "\
|
344
|
+
"only be run as part of a larger workflow. When this option is not configured, all tasks "\
|
345
|
+
"are visible. This option does not prevent users from running tasks that are not part of "\
|
346
|
+
"this list.",
|
347
|
+
type: Array,
|
348
|
+
items: {
|
349
|
+
type: String
|
350
|
+
},
|
351
|
+
_plugin: false,
|
352
|
+
_example: ["myproject", "myproject::foo", "myproject::bar"]
|
353
|
+
},
|
354
|
+
"trusted-external-command" => {
|
355
|
+
description: "The path to an executable on the Bolt controller that can produce external trusted facts. "\
|
356
|
+
"**External trusted facts are experimental in both Puppet and Bolt and this API may change or "\
|
357
|
+
"be removed.**",
|
358
|
+
type: String,
|
359
|
+
_plugin: false,
|
360
|
+
_example: "/etc/puppetlabs/facts/trusted_external.sh"
|
361
|
+
}
|
362
|
+
}.freeze
|
363
|
+
|
364
|
+
# Options that configure the inventory, specifically the default transport
|
365
|
+
# used by targets and the transports themselves. These options are used in
|
366
|
+
# bolt.yaml, under a 'config' key in inventory.yaml, and under the
|
367
|
+
# 'inventory-config' key in bolt-defaults.yaml.
|
368
|
+
INVENTORY_OPTIONS = {
|
369
|
+
"transport" => {
|
370
|
+
description: "The default transport to use when the transport for a target is not "\
|
371
|
+
"specified in the URI.",
|
372
|
+
type: String,
|
373
|
+
enum: TRANSPORT_CONFIG.keys,
|
374
|
+
_plugin: false,
|
375
|
+
_example: "winrm",
|
376
|
+
_default: "ssh"
|
377
|
+
},
|
378
|
+
"docker" => {
|
379
|
+
description: "A map of configuration options for the docker transport.",
|
380
|
+
type: Hash,
|
381
|
+
_plugin: true,
|
382
|
+
_example: { "cleanup" => false, "service-url" => "https://docker.example.com" }
|
383
|
+
},
|
384
|
+
"local" => {
|
385
|
+
description: "A map of configuration options for the local transport. The set of available options is "\
|
386
|
+
"platform dependent.",
|
387
|
+
type: Hash,
|
388
|
+
_plugin: true,
|
389
|
+
_example: { "cleanup" => false, "tmpdir" => "/tmp/bolt" }
|
390
|
+
},
|
391
|
+
"pcp" => {
|
392
|
+
description: "A map of configuration options for the pcp transport.",
|
393
|
+
type: Hash,
|
394
|
+
_plugin: true,
|
395
|
+
_example: { "job-poll-interval" => 15, "job-poll-timeout" => 30 }
|
396
|
+
},
|
397
|
+
"remote" => {
|
398
|
+
description: "A map of configuration options for the remote transport.",
|
399
|
+
type: Hash,
|
400
|
+
_plugin: true,
|
401
|
+
_example: { "run-on" => "proxy_target" }
|
402
|
+
},
|
403
|
+
"ssh" => {
|
404
|
+
description: "A map of configuration options for the ssh transport.",
|
405
|
+
type: Hash,
|
406
|
+
_plugin: true,
|
407
|
+
_example: { "password" => "hunter2!", "user" => "bolt" }
|
408
|
+
},
|
409
|
+
"winrm" => {
|
410
|
+
description: "A map of configuration options for the winrm transport.",
|
411
|
+
type: Hash,
|
412
|
+
_plugin: true,
|
413
|
+
_example: { "password" => "hunter2!", "user" => "bolt" }
|
414
|
+
}
|
415
|
+
}.freeze
|
416
|
+
|
417
|
+
# Options that are available in a bolt.yaml file
|
418
|
+
BOLT_OPTIONS = %w[
|
419
|
+
apply_settings
|
420
|
+
color
|
421
|
+
compile-concurrency
|
422
|
+
concurrency
|
423
|
+
format
|
424
|
+
hiera-config
|
425
|
+
inventoryfile
|
426
|
+
log
|
427
|
+
modulepath
|
428
|
+
plugin_hooks
|
429
|
+
plugins
|
430
|
+
puppetdb
|
431
|
+
puppetfile
|
432
|
+
save-rerun
|
433
|
+
trusted-external-command
|
434
|
+
].freeze
|
435
|
+
|
436
|
+
# Options that are available in a bolt-defaults.yaml file
|
437
|
+
BOLT_DEFAULTS_OPTIONS = %w[
|
438
|
+
color
|
439
|
+
compile-concurrency
|
440
|
+
concurrency
|
441
|
+
format
|
442
|
+
inventory-config
|
443
|
+
plugin_hooks
|
444
|
+
plugins
|
445
|
+
puppetdb
|
446
|
+
puppetfile
|
447
|
+
save-rerun
|
448
|
+
].freeze
|
449
|
+
|
450
|
+
# Options that are available in a bolt-project.yaml file
|
451
|
+
BOLT_PROJECT_OPTIONS = %w[
|
452
|
+
apply_settings
|
453
|
+
color
|
454
|
+
compile-concurrency
|
455
|
+
concurrency
|
456
|
+
format
|
457
|
+
hiera-config
|
458
|
+
inventoryfile
|
459
|
+
log
|
460
|
+
modulepath
|
461
|
+
name
|
462
|
+
plans
|
463
|
+
plugin_hooks
|
464
|
+
plugins
|
465
|
+
puppetdb
|
466
|
+
puppetfile
|
467
|
+
save-rerun
|
468
|
+
tasks
|
469
|
+
trusted-external-command
|
470
|
+
].freeze
|
471
|
+
end
|
472
|
+
end
|
473
|
+
end
|