beaker-task_helper 1.2.0 → 1.3.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/CHANGELOG.md +6 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +1 -1
- data/Rakefile +2 -2
- data/lib/beaker/task_helper.rb +9 -2
- data/lib/beaker/task_helper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b67d20327e15bba80fc705279d00a66a5238326
|
|
4
|
+
data.tar.gz: 886bb5ec8d0c12b921f7957aedd285222c814b47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00d3d517e0805475cbb87f734d523856281a740f588c6ef58b96ffd14c4b4b6068cc882e91ef820901ca134082ffb279e5081a3430438f11c8d5ffbb96baabff
|
|
7
|
+
data.tar.gz: 163cae5d0dc532e61af406560867ae805e32cb0950739655851c3d32a6c6d1a768c5becb6d072682276c1784abbdab682eae9e733a900f18aafbf47825d0226a
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
|
@@ -18,7 +18,7 @@ If you're adding new functionality or configuration, you're probably adding a fe
|
|
|
18
18
|
If you're fixing a bug without adding functionality, please review the tests and docs to see if any changes are necessary but they may not be.
|
|
19
19
|
|
|
20
20
|
## Submitting Changes
|
|
21
|
-
Once you've finished your change, push it up to your fork and open a PR against puppetlabs/beaker-
|
|
21
|
+
Once you've finished your change, push it up to your fork and open a PR against puppetlabs/beaker-task_helper. Someone from puppetlabs will then review and (hopefully) merge the PR for you.
|
|
22
22
|
|
|
23
23
|
### Commit Messages
|
|
24
24
|
Please make sure commit messages are meaningful and concise. They should include answers to questions like: Why was this change needed? How did I implement this change? Why did I do it the way I did?
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
|
@@ -8,8 +8,8 @@ task :default => :spec
|
|
|
8
8
|
begin
|
|
9
9
|
require 'github_changelog_generator/task'
|
|
10
10
|
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
11
|
-
require 'beaker/
|
|
12
|
-
config.future_release = "v#{Beaker::
|
|
11
|
+
require 'beaker/task_helper/version'
|
|
12
|
+
config.future_release = "v#{Beaker::TaskHelper::VERSION}"
|
|
13
13
|
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\n"
|
|
14
14
|
config.include_labels = %w[enhancement bug]
|
|
15
15
|
config.user = 'puppetlabs'
|
data/lib/beaker/task_helper.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Beaker::TaskHelper # rubocop:disable Style/ClassAndModuleChildren
|
|
|
16
16
|
'root'
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
BOLT_VERSION = '0.
|
|
19
|
+
BOLT_VERSION = '0.16.1'.freeze
|
|
20
20
|
|
|
21
21
|
def install_bolt_on(hosts, version = BOLT_VERSION, source = nil)
|
|
22
22
|
unless default[:docker_image_commands].nil?
|
|
@@ -73,7 +73,14 @@ INSTALL_BOLT_PP
|
|
|
73
73
|
bolt_path = '/opt/puppetlabs/puppet/bin/bolt'
|
|
74
74
|
module_path = '/etc/puppetlabs/code/modules'
|
|
75
75
|
end
|
|
76
|
-
|
|
76
|
+
|
|
77
|
+
if Puppet::Util::Package.versioncmp(BOLT_VERSION, '0.15.0') > 0
|
|
78
|
+
check = '--no-host-key-check'
|
|
79
|
+
else
|
|
80
|
+
check = '--insecure'
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
bolt_full_cli = "#{bolt_path} task run #{task_name} #{check} -m #{module_path} --nodes #{host} --password #{password}" # rubocop:disable Metrics/LineLength
|
|
77
84
|
bolt_full_cli << if params.class == Hash
|
|
78
85
|
" --params '#{params.to_json}'"
|
|
79
86
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-task_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- puppet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
135
|
version: '0'
|
|
136
136
|
requirements: []
|
|
137
137
|
rubyforge_project:
|
|
138
|
-
rubygems_version: 2.
|
|
138
|
+
rubygems_version: 2.6.8
|
|
139
139
|
signing_key:
|
|
140
140
|
specification_version: 4
|
|
141
141
|
summary: Ruby gem to help testing tasks with Beaker
|