beaker 4.12.0 → 4.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/CODEOWNERS +1 -0
- data/lib/beaker/host/unix/exec.rb +15 -0
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/host/unix/exec_spec.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7be862faf13757c406675863d317c3c57ffc7f77
|
4
|
+
data.tar.gz: 22e7dff771131c9fa77e52d208d48e1092f446c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd02ed4bef38f307b74d6228e40afe873a2ddb5ba8648257db05cf88e5c7e15aecb7c10d651e00193cddc1df72276f698f9a52a50ff63249cad70bb7003af890
|
7
|
+
data.tar.gz: ff91928468617d0635546b972185de2cda0589c4ea25af6e81f59eade6c2d26b03859d71d8cbbe1044dddcd6cc95b09baa53ccc949386fda14548c785dc09936
|
data/CHANGELOG.md
CHANGED
@@ -11,7 +11,13 @@ Tracking in this Changelog began for this project in version 3.25.0.
|
|
11
11
|
If you're looking for changes from before this, refer to the project's
|
12
12
|
git logs & PR history.
|
13
13
|
|
14
|
-
# [Unreleased](https://github.com/puppetlabs/beaker/compare/4.
|
14
|
+
# [Unreleased](https://github.com/puppetlabs/beaker/compare/4.13.0...master)
|
15
|
+
|
16
|
+
# [4.13.0](https://github.com/puppetlabs/beaker/compare/4.12.0...4.13.0) - 2019-09-16
|
17
|
+
|
18
|
+
### Added
|
19
|
+
|
20
|
+
- Host `enable_remote_rsyslog` method (QENG-7466)
|
15
21
|
|
16
22
|
# [4.12.0](https://github.com/puppetlabs/beaker/compare/4.11.1...4.12.0) - 2019-08-14
|
17
23
|
|
data/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @puppetlabs/beaker
|
@@ -327,4 +327,19 @@ module Unix::Exec
|
|
327
327
|
exec(Beaker::Command.new("sudo selinuxenabled"), :accept_all_exit_codes => true).exit_code == 0
|
328
328
|
end
|
329
329
|
|
330
|
+
def enable_remote_rsyslog(server = 'rsyslog.ops.puppetlabs.net', port = 514)
|
331
|
+
if self['platform'] !~ /ubuntu/
|
332
|
+
@logger.warn "Enabling rsyslog is only implemented for ubuntu hosts"
|
333
|
+
return
|
334
|
+
end
|
335
|
+
commands = [
|
336
|
+
"echo '*.* @#{server}:#{port}' >> /etc/rsyslog.d/51-sendrsyslogs.conf",
|
337
|
+
'systemctl restart rsyslog'
|
338
|
+
]
|
339
|
+
commands.each do |command|
|
340
|
+
exec(Beaker::Command.new(command))
|
341
|
+
end
|
342
|
+
true
|
343
|
+
end
|
344
|
+
|
330
345
|
end
|
data/lib/beaker/version.rb
CHANGED
@@ -173,5 +173,16 @@ module Beaker
|
|
173
173
|
expect{ instance.reboot }.to raise_error(Beaker::Host::RebootFailure, /Unexpected exception in reboot: .*/)
|
174
174
|
end
|
175
175
|
end
|
176
|
+
|
177
|
+
describe '#enable_remote_rsyslog' do
|
178
|
+
it 'always calls restart' do
|
179
|
+
opts['platform'] = 'ubuntu-18-x86_64'
|
180
|
+
allow(Beaker::Command).to receive(:new).with(anything)
|
181
|
+
allow(instance).to receive(:exec)
|
182
|
+
expect(Beaker::Command).to receive(:new).with("systemctl restart rsyslog")
|
183
|
+
instance.enable_remote_rsyslog
|
184
|
+
end
|
185
|
+
|
186
|
+
end
|
176
187
|
end
|
177
188
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -365,6 +365,7 @@ files:
|
|
365
365
|
- ".simplecov"
|
366
366
|
- ".travis.yml"
|
367
367
|
- CHANGELOG.md
|
368
|
+
- CODEOWNERS
|
368
369
|
- CONTRIBUTING.md
|
369
370
|
- DOCUMENTING.md
|
370
371
|
- Gemfile
|