puppet 6.11.0 → 6.11.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/puppet/provider/service/systemd.rb +2 -2
- data/lib/puppet/version.rb +1 -1
- data/spec/unit/provider/service/systemd_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53156e11d458c7bb4d162f4753ed81010fca29f95e1f4589b0d6f3a57c01785d
|
4
|
+
data.tar.gz: e87fe1a36dd72de27a454b30f7348dac49a87c45c5ca42ac123e41c703cd51be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 731151af3a5ee6feff27be34277ddea1542b9a8265494523e8c59df01810c954a1216c403f917928afe834b87b8ca5fb0323445b48feb1e815fc819f736533fa
|
7
|
+
data.tar.gz: 36c2547acbca81bfe072cf246b385188afa22277665e42e15f17b0f555c9b1a5230293ba602947770eecd10caa45f432546ebad4adcf7d3eddcd749419a9d565
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
puppet (6.11.
|
4
|
+
puppet (6.11.1)
|
5
5
|
CFPropertyList (~> 2.2)
|
6
6
|
concurrent-ruby (~> 1.0)
|
7
7
|
deep_merge (~> 1.0)
|
@@ -57,7 +57,7 @@ GEM
|
|
57
57
|
multi_json (1.14.1)
|
58
58
|
mustache (1.1.0)
|
59
59
|
optimist (3.0.0)
|
60
|
-
packaging (0.99.
|
60
|
+
packaging (0.99.49)
|
61
61
|
artifactory (~> 2)
|
62
62
|
rake (>= 12.3)
|
63
63
|
release-metrics
|
@@ -127,10 +127,10 @@ Puppet::Type.type(:service).provide :systemd, :parent => :base do
|
|
127
127
|
# This function is called only on start & restart unit options.
|
128
128
|
# Reference: (PUP-3483) Systemd provider doesn't scan for changed units
|
129
129
|
def daemon_reload?
|
130
|
-
cmd = [command(:systemctl), 'show', '--', @resource[:name]
|
130
|
+
cmd = [command(:systemctl), 'show', '--property=NeedDaemonReload', '--', @resource[:name]]
|
131
131
|
daemon_reload = execute(cmd, :failonfail => false).strip.split('=').last
|
132
132
|
if daemon_reload == 'yes'
|
133
|
-
daemon_reload_cmd = [command(:systemctl), '
|
133
|
+
daemon_reload_cmd = [command(:systemctl), 'daemon-reload']
|
134
134
|
execute(daemon_reload_cmd, :failonfail => false)
|
135
135
|
end
|
136
136
|
end
|
data/lib/puppet/version.rb
CHANGED
@@ -255,13 +255,13 @@ Jun 14 21:43:23 foo.example.com systemd[1]: sshd.service lacks both ExecStart= a
|
|
255
255
|
describe "#daemon_reload?" do
|
256
256
|
it "should skip the systemctl daemon_reload if not required by the service" do
|
257
257
|
provider = provider_class.new(Puppet::Type.type(:service).new(:name => 'sshd.service'))
|
258
|
-
expect(provider).to receive(:execute).with(['/bin/systemctl','show', '--', 'sshd.service'
|
258
|
+
expect(provider).to receive(:execute).with(['/bin/systemctl', 'show', '--property=NeedDaemonReload', '--', 'sshd.service'], :failonfail => false).and_return("no")
|
259
259
|
provider.daemon_reload?
|
260
260
|
end
|
261
261
|
it "should run a systemctl daemon_reload if the service has been modified" do
|
262
262
|
provider = provider_class.new(Puppet::Type.type(:service).new(:name => 'sshd.service'))
|
263
|
-
expect(provider).to receive(:execute).with(['/bin/systemctl','show', '--', 'sshd.service'
|
264
|
-
expect(provider).to receive(:execute).with(['/bin/systemctl', '
|
263
|
+
expect(provider).to receive(:execute).with(['/bin/systemctl', 'show', '--property=NeedDaemonReload', '--', 'sshd.service'], :failonfail => false).and_return("yes")
|
264
|
+
expect(provider).to receive(:execute).with(['/bin/systemctl', 'daemon-reload'], :failonfail => false)
|
265
265
|
provider.daemon_reload?
|
266
266
|
end
|
267
267
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.11.
|
4
|
+
version: 6.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|