openbolt 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Puppetfile +7 -7
- data/bolt-modules/boltlib/lib/puppet/datatypes/target.rb +2 -2
- data/bolt-modules/boltlib/lib/puppet/functions/facts.rb +1 -1
- data/lib/bolt/application.rb +2 -4
- data/lib/bolt/config/options.rb +2 -2
- data/lib/bolt/outputter/human.rb +1 -1
- data/lib/bolt/outputter/json.rb +2 -2
- data/lib/bolt/outputter/rainbow.rb +5 -1
- data/lib/bolt/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5d6647a2e9293dcfa5e980643d19bb67764ace9cf6832bb0928e82e15ee8f42
|
|
4
|
+
data.tar.gz: 4731f17b8df92c12cfc582b9952c0c0d19582854aeb9e8cf05193962cff5f542
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d99ea67f58ae861d512f56573fa76c6b14d05f833843c7513697b5d7311c6ef712132a28ebf5919b0a45b51f51d9b4a1cad6261aefb7e85139b00eb2a7be24d1
|
|
7
|
+
data.tar.gz: 8ff49e9017d8a9a4870e2854a221420aaf1f1750693cd6940ad9f32041093d08a31a756d6584ef85fc26a3506208fceb829f40f6821b0424bcafba1088e68544
|
data/Puppetfile
CHANGED
|
@@ -10,8 +10,8 @@ mod 'puppet-openvox_bootstrap', '1.4.0'
|
|
|
10
10
|
mod 'puppetlabs-facts', '1.7.0'
|
|
11
11
|
|
|
12
12
|
# Other core Puppet modules
|
|
13
|
-
mod 'puppetlabs-inifile', '6.
|
|
14
|
-
mod 'puppetlabs-apt', '11.
|
|
13
|
+
mod 'puppetlabs-inifile', '6.4.0'
|
|
14
|
+
mod 'puppetlabs-apt', '11.3.1'
|
|
15
15
|
mod 'puppetlabs-stdlib', '9.7.0'
|
|
16
16
|
mod 'puppetlabs-powershell', '6.1.0'
|
|
17
17
|
mod 'puppetlabs-pwshlib', '2.0.1'
|
|
@@ -42,13 +42,13 @@ mod 'puppetlabs-bash_task_helper', '2.2.0'
|
|
|
42
42
|
|
|
43
43
|
# Plugin modules
|
|
44
44
|
mod 'puppetlabs-aws_inventory', '0.7.0'
|
|
45
|
-
mod 'puppetlabs-azure_inventory', '0.5.
|
|
46
|
-
mod 'puppetlabs-gcloud_inventory', '0.3.
|
|
47
|
-
mod 'puppetlabs-http_request', '0.3.
|
|
45
|
+
mod 'puppetlabs-azure_inventory', '0.5.1'
|
|
46
|
+
mod 'puppetlabs-gcloud_inventory', '0.3.1'
|
|
47
|
+
mod 'puppetlabs-http_request', '0.3.2'
|
|
48
48
|
mod 'puppetlabs-pkcs7', '0.1.2'
|
|
49
49
|
mod 'puppetlabs-secure_env_vars', '0.2.0'
|
|
50
|
-
mod 'puppetlabs-terraform', '0.7.
|
|
51
|
-
mod 'puppetlabs-vault', '0.4.
|
|
50
|
+
mod 'puppetlabs-terraform', '0.7.2'
|
|
51
|
+
mod 'puppetlabs-vault', '0.4.1'
|
|
52
52
|
mod 'puppetlabs-yaml', '0.2.0'
|
|
53
53
|
|
|
54
54
|
# If we don't list these modules explicitly, r10k will purge them
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
# The target's facts. This function does not look up facts for a target and
|
|
12
12
|
# only returns the facts specified in an `inventory.yaml` file or set on a
|
|
13
13
|
# target during a plan run. To retrieve facts for a target and set them in
|
|
14
|
-
# inventory, run the [facts](writing_plans.md#collect-facts-from-targets)
|
|
14
|
+
# inventory, run the [facts](writing_plans.md#collect-facts-from-the-targets)
|
|
15
15
|
# plan or [puppetdb_fact](writing_plans.md#collect-facts-from-puppetdb)
|
|
16
16
|
# plan.
|
|
17
17
|
# @param features
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
# The target's human-readable name, or its URI if a name was not given.
|
|
21
21
|
# @param plugin_hooks
|
|
22
22
|
# The target's `plugin_hooks` [configuration
|
|
23
|
-
# options](bolt_inventory_reference.md#
|
|
23
|
+
# options](bolt_inventory_reference.md#plugin_hooks-1).
|
|
24
24
|
# @param resources
|
|
25
25
|
# The target's resources. This function does not look up resources for a
|
|
26
26
|
# target and only returns resources set on a target during a plan run.
|
|
@@ -7,7 +7,7 @@ require 'bolt/error'
|
|
|
7
7
|
# Using the `facts` function does not automatically collect facts for a target,
|
|
8
8
|
# and will only return facts that are currently set in the inventory. To collect
|
|
9
9
|
# facts from a target and set them in the inventory, run the
|
|
10
|
-
# [facts](writing_plans.md#collect-facts-from-targets) plan or
|
|
10
|
+
# [facts](writing_plans.md#collect-facts-from-the-targets) plan or
|
|
11
11
|
# [puppetdb_fact](writing_plans.md#collect-facts-from-puppetdb) plan.
|
|
12
12
|
Puppet::Functions.create_function(:facts) do
|
|
13
13
|
# @param target A target.
|
data/lib/bolt/application.rb
CHANGED
|
@@ -148,10 +148,8 @@ module Bolt
|
|
|
148
148
|
|
|
149
149
|
# Show available guides.
|
|
150
150
|
#
|
|
151
|
-
# @
|
|
152
|
-
#
|
|
153
|
-
# @return [Boolean]
|
|
154
|
-
#
|
|
151
|
+
# @return [Hash] A map of topics of guides
|
|
152
|
+
# Currently, the map is structured as `:topics => [Array] of guide names`
|
|
155
153
|
def list_guides
|
|
156
154
|
{ topics: load_guides.keys }
|
|
157
155
|
end
|
data/lib/bolt/config/options.rb
CHANGED
|
@@ -436,10 +436,10 @@ module Bolt
|
|
|
436
436
|
_example: ["myproject", "myproject::foo", "myproject::bar", "myproject::deploy::*"]
|
|
437
437
|
},
|
|
438
438
|
"plugin-hooks" => {
|
|
439
|
-
description: "A map of [plugin hooks](writing_plugins.md#hooks) and which plugins a hook should use. " \
|
|
439
|
+
description: "A map of [plugin hooks](writing_plugins.md#plugin-hooks) and which plugins a hook should use. " \
|
|
440
440
|
"The only configurable plugin hook is `puppet_library`, which can use two possible plugins: " \
|
|
441
441
|
"[`openvox_bootstrap`](https://github.com/voxpupuli/puppet-openvox_bootstrap#openvox_boostrapinstall) " \
|
|
442
|
-
"and [`task`](
|
|
442
|
+
"and [`task`](supported_plugins.md#task).",
|
|
443
443
|
type: Hash,
|
|
444
444
|
_plugin: true,
|
|
445
445
|
_example: { "puppet_library" => { "plugin" => "openvox_bootstrap", "version" => "1.2.0",
|
data/lib/bolt/outputter/human.rb
CHANGED
|
@@ -486,7 +486,7 @@ module Bolt
|
|
|
486
486
|
#
|
|
487
487
|
# @param topics [Array] The available topics.
|
|
488
488
|
#
|
|
489
|
-
def print_topics(topics
|
|
489
|
+
def print_topics(topics:)
|
|
490
490
|
info = +"#{colorize(:cyan, 'Topics')}\n"
|
|
491
491
|
info << indent(2, topics.join("\n"))
|
|
492
492
|
info << "\n\n#{colorize(:cyan, 'Additional information')}\n"
|
data/lib/bolt/outputter/json.rb
CHANGED
|
@@ -122,8 +122,8 @@ module Bolt
|
|
|
122
122
|
#
|
|
123
123
|
# @param topics [Array] The available topics.
|
|
124
124
|
#
|
|
125
|
-
def print_topics(
|
|
126
|
-
print_table(
|
|
125
|
+
def print_topics(topics:)
|
|
126
|
+
print_table({ topics: topics })
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
# Print the guide for the specified topic.
|
|
@@ -104,7 +104,11 @@ module Bolt
|
|
|
104
104
|
@stream.puts colorize(:rainbow, guide)
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
# Print available guide topics.
|
|
108
|
+
#
|
|
109
|
+
# @param topics [Array] The available topics.
|
|
110
|
+
#
|
|
111
|
+
def print_topics(topics:)
|
|
108
112
|
content = String.new("Available topics are:\n")
|
|
109
113
|
content += topics.join("\n")
|
|
110
114
|
content += "\n\nUse `bolt guide <topic>` to view a specific guide."
|
data/lib/bolt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openbolt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenVox Project
|
|
@@ -137,16 +137,22 @@ dependencies:
|
|
|
137
137
|
name: jwt
|
|
138
138
|
requirement: !ruby/object:Gem::Requirement
|
|
139
139
|
requirements:
|
|
140
|
-
- - "
|
|
140
|
+
- - ">="
|
|
141
141
|
- !ruby/object:Gem::Version
|
|
142
142
|
version: '2.2'
|
|
143
|
+
- - "<"
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '4.0'
|
|
143
146
|
type: :runtime
|
|
144
147
|
prerelease: false
|
|
145
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
146
149
|
requirements:
|
|
147
|
-
- - "
|
|
150
|
+
- - ">="
|
|
148
151
|
- !ruby/object:Gem::Version
|
|
149
152
|
version: '2.2'
|
|
153
|
+
- - "<"
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: '4.0'
|
|
150
156
|
- !ruby/object:Gem::Dependency
|
|
151
157
|
name: logging
|
|
152
158
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -736,7 +742,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
736
742
|
- !ruby/object:Gem::Version
|
|
737
743
|
version: '0'
|
|
738
744
|
requirements: []
|
|
739
|
-
rubygems_version: 4.0.
|
|
745
|
+
rubygems_version: 4.0.10
|
|
740
746
|
specification_version: 4
|
|
741
747
|
summary: Execute commands remotely over SSH and WinRM
|
|
742
748
|
test_files: []
|