beaker-abs 0.8.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 542e094d8256f1b3d3ada74a529c5c8f1ca43bdd6160d2080c5d5dd233004440
4
- data.tar.gz: 4be53717ea6a8ec508a8053f4556ae1e21932aa239c868edbdd30c371c99f860
3
+ metadata.gz: b7afbb71da4317f1702a3a4fc26407c623792cfc860f82d0cb112939460e794b
4
+ data.tar.gz: 79ebb552b264ee29458dd6fc4fc46b8932b16639826046bad951c79a500c1d42
5
5
  SHA512:
6
- metadata.gz: 35abd48debcfb67e37d176a493e6bb74643f41c83e3ca3c92ddb5554635f97dae70d70fd2c922a47e19e6ea82d4ab8c631588e698c34aa051a74c7038eba49e0
7
- data.tar.gz: 60d24bfed3d554ebe8b8743dfb7889228f4a2ded06cb6a2f19a5449137d6a14a94b5412344263a8b64d37e6ad454c0259928c3df5fafe8d079d5e70b40e375b3
6
+ metadata.gz: 5abffdc17be4101eff3e2a70aa952b7cf6d1b1fc362210342cb87133cffd8c626ef00fb78bde4b4e4061296a153d002be8e13c015a7e317fab5ce424a706fafd
7
+ data.tar.gz: 2d13d8562bae6124f8d6bf34d369bec64ae5e291605f457a23181214a0807bff828c14451d087d441354edfd96601db6792825d3fd5d55eaf632c3c0ab877d6d
data/CODEOWNERS CHANGED
@@ -1 +1 @@
1
- * @puppetlabs/beaker
1
+ * @puppetlabs/dio
data/README.md CHANGED
@@ -17,6 +17,12 @@ s.add_runtime_dependency 'beaker', '~>4.0'
17
17
  s.add_runtime_dependency 'beaker-abs'
18
18
  ~~~
19
19
 
20
+ Beaker-abs changes the default beaker (core) behavior of settings the NET::SSH ssh config to 'false' which means do not respect any of the client's ssh_config.
21
+ If beaker-abs detects that the ssh config will be false (it was not replaced in the option files, in the HOST config etc) it sets it to the value of
22
+ SSH_CONFIG_FILE or default to 'true'. True means it will automatically check the typical locations (~/.ssh/config, /etc/ssh_config). Respecting the ssh_config is
23
+ useful to specify things like no strict hostkley checking, and also to support the smallstep 'step' command in CI.
24
+
25
+
20
26
  ## Usage
21
27
 
22
28
  Create a beaker host config with `hypervisor: abs`, and pass the data from the
@@ -68,6 +74,13 @@ $ cat options.rb
68
74
  $ bundle exec beaker --hosts=hosts.cfg --tests acceptance/tests --options options.rb
69
75
  ```
70
76
 
77
+ ## Environment vars
78
+ | Var | Description | Default |
79
+ | ----------- | ----------- | ------ |
80
+ | ABS_SERVICE_NAME | When using locally via vmfloaty, the --service to use | abs |
81
+ | ABS_SERVICE_PRIORITY | When using locally via vmfloaty, the priority to use | 1 |
82
+ | SSH_CONFIG_FILE | If beaker-abs detects the beaker default of 'false', you can specify a file location for the ssh_config. True means it will automatically check the typical locations (~/.ssh/config, /etc/ssh_config). | true |
83
+
71
84
  ## Development
72
85
 
73
86
  After checking out the repo, run `bundle install --path .bundle` to install dependencies. Then, run `bundle exec rake test` to run the tests.
data/beaker-abs.gemspec CHANGED
@@ -19,7 +19,10 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "beaker", "~> 4.0"
22
- spec.add_dependency "vmfloaty", ">= 1.0", "< 1.2"
22
+ spec.add_dependency "vmfloaty", ">= 1.0", "< 2"
23
+ # accept more keys, for smallstep integration
24
+ spec.add_dependency 'ed25519', ">= 1.2", "< 2.0"
25
+ spec.add_dependency 'bcrypt_pbkdf', ">= 1.0", "< 2.0"
23
26
  spec.add_development_dependency "bundler", "~> 2.1"
24
27
  spec.add_development_dependency "rake", "~> 13.0"
25
28
  spec.add_development_dependency "minitest", "~> 5.0"
@@ -1,6 +1,5 @@
1
1
  require 'beaker'
2
2
  require 'json'
3
- require 'pry-byebug'
4
3
  require 'vmfloaty'
5
4
  require 'vmfloaty/conf'
6
5
  require 'vmfloaty/utils'
@@ -23,6 +22,18 @@ module Beaker
23
22
  @logger = options[:logger]
24
23
  @hosts = hosts
25
24
 
25
+ # set NET:SSH to use the ssh_config files if they exist
26
+ # beaker (upstream) defaults this settings to false
27
+ # NET:SSH documentation: set to true to load the default OpenSSH config files (~/.ssh/config, /etc/ssh_config), or to false to not load them,
28
+ # or to a file-name (or array of file-names) to load those specific configuration files. Defaults to true
29
+ if options[:ssh] && options[:ssh][:config] == false
30
+ options[:ssh][:config] = ENV['SSH_CONFIG_FILE'] || true
31
+ # code smell, replace existing host object (that's where NET::SSH gets the options, and the host has its own copy of the options!)
32
+ @hosts.each_with_index do |host, index|
33
+ @hosts[index] = Beaker::Host.create(host.name, host.host_hash, options)
34
+ end
35
+ end
36
+
26
37
  resource_hosts = ENV['ABS_RESOURCE_HOSTS'] || @options[:abs_resource_hosts]
27
38
 
28
39
  @abs_service_name = ENV['ABS_SERVICE_NAME'] || @options[:abs_service_name] || "abs"
@@ -1,5 +1,5 @@
1
1
  module BeakerAbs
2
2
  module Version
3
- STRING = '0.8.1'
3
+ STRING = '0.11.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-abs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Cooper
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-12-14 00:00:00.000000000 Z
12
+ date: 2022-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '1.0'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '1.2'
37
+ version: '2'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,8 +43,48 @@ dependencies:
43
43
  - !ruby/object:Gem::Version
44
44
  version: '1.0'
45
45
  - - "<"
46
+ - !ruby/object:Gem::Version
47
+ version: '2'
48
+ - !ruby/object:Gem::Dependency
49
+ name: ed25519
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
46
53
  - !ruby/object:Gem::Version
47
54
  version: '1.2'
55
+ - - "<"
56
+ - !ruby/object:Gem::Version
57
+ version: '2.0'
58
+ type: :runtime
59
+ prerelease: false
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '1.2'
65
+ - - "<"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: bcrypt_pbkdf
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '1.0'
75
+ - - "<"
76
+ - !ruby/object:Gem::Version
77
+ version: '2.0'
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '1.0'
85
+ - - "<"
86
+ - !ruby/object:Gem::Version
87
+ version: '2.0'
48
88
  - !ruby/object:Gem::Dependency
49
89
  name: bundler
50
90
  requirement: !ruby/object:Gem::Requirement
@@ -128,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
168
  - !ruby/object:Gem::Version
129
169
  version: '0'
130
170
  requirements: []
131
- rubygems_version: 3.0.8
171
+ rubygems_version: 3.0.9
132
172
  signing_key:
133
173
  specification_version: 4
134
174
  summary: Let's test Puppet, using hosts provisioned by Always Be Scheduling service.