feat: removing service when package is set to absent #7
Annotations
10 errors
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L26
splunk::forwarder class Splunk forwarder version 7.2.4.2 works idempotently with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'rocky9-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180404865.nZrp0i.pp
Last 10 lines of output were:
Error: /Stage[main]/Splunk::Forwarder::Service/Service[SplunkForwarder]/ensure: change from 'stopped' to 'running' failed: Systemd start for SplunkForwarder failed!
journalctl log for SplunkForwarder:
-- No entries --
�[mNotice: /Stage[main]/Splunk::Forwarder::Service/Service[SplunkForwarder]: Triggered 'refresh' from 1 event
Info: Class[Splunk::Forwarder::Service]: Unscheduling all events on Class[Splunk::Forwarder::Service]
Info: Class[Splunk::Forwarder]: Unscheduling all events on Class[Splunk::Forwarder]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 1.42 seconds
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L44
splunk::forwarder class Splunk forwarder version 7.2.4.2 Service "SplunkForwarder" is expected to be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "SplunkForwarder" to be enabled
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L45
splunk::forwarder class Splunk forwarder version 7.2.4.2 Service "SplunkForwarder" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "SplunkForwarder" to be running
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L26
splunk::forwarder class Splunk forwarder version 9.0.0 works idempotently with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'rocky9-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180410942.gMgL2a.pp
Last 10 lines of output were:
Error: /Stage[main]/Splunk::Forwarder::Service/Service[SplunkForwarder]/ensure: change from 'stopped' to 'running' failed: Systemd start for SplunkForwarder failed!
journalctl log for SplunkForwarder:
-- No entries --
�[mNotice: /Stage[main]/Splunk::Forwarder::Service/Service[SplunkForwarder]: Triggered 'refresh' from 1 event
Info: Class[Splunk::Forwarder::Service]: Unscheduling all events on Class[Splunk::Forwarder::Service]
Info: Class[Splunk::Forwarder]: Unscheduling all events on Class[Splunk::Forwarder]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 2.02 seconds
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L44
splunk::forwarder class Splunk forwarder version 9.0.0 Service "SplunkForwarder" is expected to be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "SplunkForwarder" to be enabled
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L45
splunk::forwarder class Splunk forwarder version 9.0.0 Service "SplunkForwarder" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "SplunkForwarder" to be running
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L52
splunk::forwarder class default parameters works idempotently with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'rocky9-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180417741.VOljPu.pp
Last 10 lines of output were:
Oct 24 18:04:21 rocky9-64-puppet7.example.com splunk[9997]: Warning: Executing "chown -R splunk:splunk /opt/splunkforwarder"
Oct 24 18:04:21 rocky9-64-puppet7.example.com systemd[1]: SplunkForwarder.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 24 18:04:21 rocky9-64-puppet7.example.com systemd[1]: SplunkForwarder.service: Failed with result 'exit-code'.
Oct 24 18:04:21 rocky9-64-puppet7.example.com systemd[1]: Failed to start Systemd service file for Splunk, generated by 'splunk enable boot-start'.
�[mNotice: /Stage[main]/Splunk::Forwarder::Service/Service[SplunkForwarder]: Triggered 'refresh' from 1 event
Info: Class[Splunk::Forwarder::Service]: Unscheduling all events on Class[Splunk::Forwarder::Service]
Info: Class[Splunk::Forwarder]: Unscheduling all events on Class[Splunk::Forwarder]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 2.15 seconds
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L72
splunk::forwarder class default parameters File "/opt/splunkforwarder/etc/system/local/outputs.conf" content is expected to match /^sslPassword = \$7\$/
Failure/Error: its(:content) { is_expected.to match %r{^sslPassword = \$7\$} }
expected "[default]\ndefaultGroup=splunk_9997\n\n[tcpout:splunk_9997]\nserver=splunk:9997\n\n[tcpout:splunkcloud]\nsslPassword=super_secure_password\n" to match /^sslPassword = \$7\$/
Diff:
@@ -1,8 +1,15 @@
-/^sslPassword = \$7\$/
+[default]
+defaultGroup=splunk_9997
+
+[tcpout:splunk_9997]
+server=splunk:9997
+
+[tcpout:splunkcloud]
+sslPassword=super_secure_password
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L81
splunk::forwarder class default parameters Service "SplunkForwarder" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "SplunkForwarder" to be running
|
Run tests:
spec/acceptance/splunk_forwarder_spec.rb#L87
splunk::forwarder class purging purge_outputs => false works idempotently with no errors
Failure/Error: apply_manifest(pp, catch_changes: true)
Beaker::Host::CommandFailure:
Host 'rocky9-64-puppet7.example.com' exited with 2 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180424821.TzErAp.pp
Last 10 lines of output were:
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/server.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/server.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/server.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/server.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/server.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/server.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: Class[Splunk::Forwarder::Config]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: Class[Splunk::Forwarder::Service]: Scheduling refresh of Service[SplunkForwarder]
�[mNotice: /Stage[main]/Splunk::Forwarder::Service/Service[SplunkForwarder]: Triggered 'refresh' from 1 event
�[mNotice: Applied catalog in 41.33 seconds
|
Loading