Add validate_cmd
for keepalived.conf
#275
Annotations
2 errors
spec/acceptance/keepalived_spec.rb#L143
keepalived class with broken config fails validate command
Failure/Error: apply_result = apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'ubuntu2004-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_112753897.dpkGnj.pp
Last 10 lines of output were:
Info: Applying configuration version '1722598075'
�[mNotice: /Stage[main]/Keepalived::Config/File[/etc/default/keepalived]/content: content changed '{sha256}2c030e4480d6258af0a1bbd75b96291924ac3c34c63672a8d3c538adabe23a8c' to '{sha256}f44920c421078457a799f0476d5a7e83ec660e2c0fe87cc8d24038d3640c142a'
Info: Computing checksum on file /etc/keepalived/keepalived.conf
Info: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]: Filebucketed /etc/keepalived/keepalived.conf to puppet with sum 47d4e40550fa54f216993b7311db6ec62cf5364ee6a8d5ba4a4306c001307330
Error: Execution of '/usr/sbin/keepalived -l -t -f /etc/keepalived/keepalived.conf20240802-1746-16yy3f6' returned 4: (Line 3) emailfrom missing - ignoring
Error: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]/content: change from '{sha256}47d4e40550fa54f216993b7311db6ec62cf5364ee6a8d5ba4a4306c001307330' to '{sha256}ea4f728bc07dc3bf394d27fa38bdf338a15abb236aaed698344bd74b32b87a6d' failed: Execution of '/usr/sbin/keepalived -l -t -f /etc/keepalived/keepalived.conf20240802-1746-16yy3f6' returned 4: (Line 3) emailfrom missing - ignoring
Info: Class[Keepalived::Config]: Unscheduling all events on Class[Keepalived::Config]
�[mNotice: /Stage[main]/Keepalived::Service/Service[keepalived]: Dependency File[/etc/keepalived/keepalived.conf] has failures: true
Warning: /Stage[main]/Keepalived::Service/Service[keepalived]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 1.03 seconds
|
|
This job failed
Loading