Skip to content

use sudo::defaults in rhel9 template #139

use sudo::defaults in rhel9 template

use sudo::defaults in rhel9 template #139

Triggered via pull request May 13, 2024 14:52
Status Failure
Total duration 3m 22s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
15s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Puppet / 8 (Ruby 3.2): spec/classes/sudo_spec.rb#L49
sudo on gentoo-2-x86_64 with deprecated content set is expected to contain File[/etc/sudoers] with content =~ /.*Defaults\s+env_reset.*/ Failure/Error: it { is_expected.to contain_file('/etc/sudoers').with_content(%r{.*Defaults\s+env_reset.*}) } expected that the catalogue would contain File[/etc/sudoers] with content set to /.*Defaults\s+env_reset.*/ but it is set to "# file managed by puppet (unless config_file_replace=false)\n#\n# This file MUST be edited with the 'visudo' command as root.\n#\n# Please consider adding local content in /etc/sudoers.d/ instead of\n# directly modifying this file.\n#\n# See the man page for details on how to write a sudoers file.\n#\nDefaults\tsecure_path=\"\"\n\n\n# Host alias specification\n\n# User alias specification\n\n# Cmnd alias specification\n\n# User privilege specification\nroot\tALL=(ALL:ALL) ALL\n\n# Members of the admin group may gain root privileges\n%admin ALL=(ALL) ALL\n\n# Allow members of group sudo to execute any command\n%sudo\tALL=(ALL:ALL) ALL\n\n# See sudoers(5) for more information on \"#include\" directives:\n\n#includedir /etc/sudoers.d\n" Diff: @@ -1,30 +1,59 @@ -(?-mix:.*Defaults\s+env_reset.*) +# file managed by puppet (unless config_file_replace=false) +# +# This file MUST be edited with the 'visudo' command as root. +# +# Please consider adding local content in /etc/sudoers.d/ instead of +# directly modifying this file. +# +# See the man page for details on how to write a sudoers file. +# +Defaults secure_path="" + + +# Host alias specification + +# User alias specification + +# Cmnd alias specification + +# User privilege specification +root ALL=(ALL:ALL) ALL + +# Members of the admin group may gain root privileges +%admin ALL=(ALL) ALL + +# Allow members of group sudo to execute any command +%sudo ALL=(ALL:ALL) ALL + +# See sudoers(5) for more information on "#include" directives: + +#includedir /etc/sudoers.d
Puppet / 8 (Ruby 3.2): spec/classes/sudo_spec.rb#L49
sudo on archlinux-rolling-x86_64 with deprecated content set is expected to contain File[/etc/sudoers] with content =~ /.*Defaults\s+env_reset.*/ Failure/Error: it { is_expected.to contain_file('/etc/sudoers').with_content(%r{.*Defaults\s+env_reset.*}) } expected that the catalogue would contain File[/etc/sudoers] with content set to /.*Defaults\s+env_reset.*/ but it is set to "# file managed by puppet (unless config_file_replace=false)\n#\n# This file MUST be edited with the 'visudo' command as root.\n#\n# Please consider adding local content in /etc/sudoers.d/ instead of\n# directly modifying this file.\n#\n# See the man page for details on how to write a sudoers file.\n#\nDefaults\tsecure_path=\"\"\n\n\n# Host alias specification\n\n# User alias specification\n\n# Cmnd alias specification\n\n# User privilege specification\nroot\tALL=(ALL:ALL) ALL\n\n# Members of the admin group may gain root privileges\n%admin ALL=(ALL) ALL\n\n# Allow members of group sudo to execute any command\n%sudo\tALL=(ALL:ALL) ALL\n\n# See sudoers(5) for more information on \"#include\" directives:\n\n#includedir /etc/sudoers.d\n" Diff: @@ -1,30 +1,59 @@ -(?-mix:.*Defaults\s+env_reset.*) +# file managed by puppet (unless config_file_replace=false) +# +# This file MUST be edited with the 'visudo' command as root. +# +# Please consider adding local content in /etc/sudoers.d/ instead of +# directly modifying this file. +# +# See the man page for details on how to write a sudoers file. +# +Defaults secure_path="" + + +# Host alias specification + +# User alias specification + +# Cmnd alias specification + +# User privilege specification +root ALL=(ALL:ALL) ALL + +# Members of the admin group may gain root privileges +%admin ALL=(ALL) ALL + +# Allow members of group sudo to execute any command +%sudo ALL=(ALL:ALL) ALL + +# See sudoers(5) for more information on "#include" directives: + +#includedir /etc/sudoers.d
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
Puppet / 7 (Ruby 2.7): spec/classes/sudo_spec.rb#L49
sudo on gentoo-2-x86_64 with deprecated content set is expected to contain File[/etc/sudoers] with content =~ /.*Defaults\s+env_reset.*/ Failure/Error: it { is_expected.to contain_file('/etc/sudoers').with_content(%r{.*Defaults\s+env_reset.*}) } expected that the catalogue would contain File[/etc/sudoers] with content set to /.*Defaults\s+env_reset.*/ but it is set to "# file managed by puppet (unless config_file_replace=false)\n#\n# This file MUST be edited with the 'visudo' command as root.\n#\n# Please consider adding local content in /etc/sudoers.d/ instead of\n# directly modifying this file.\n#\n# See the man page for details on how to write a sudoers file.\n#\nDefaults\tsecure_path=\"\"\n\n\n# Host alias specification\n\n# User alias specification\n\n# Cmnd alias specification\n\n# User privilege specification\nroot\tALL=(ALL:ALL) ALL\n\n# Members of the admin group may gain root privileges\n%admin ALL=(ALL) ALL\n\n# Allow members of group sudo to execute any command\n%sudo\tALL=(ALL:ALL) ALL\n\n# See sudoers(5) for more information on \"#include\" directives:\n\n#includedir /etc/sudoers.d\n" Diff: @@ -1,30 +1,59 @@ -(?-mix:.*Defaults\s+env_reset.*) +# file managed by puppet (unless config_file_replace=false) +# +# This file MUST be edited with the 'visudo' command as root. +# +# Please consider adding local content in /etc/sudoers.d/ instead of +# directly modifying this file. +# +# See the man page for details on how to write a sudoers file. +# +Defaults secure_path="" + + +# Host alias specification + +# User alias specification + +# Cmnd alias specification + +# User privilege specification +root ALL=(ALL:ALL) ALL + +# Members of the admin group may gain root privileges +%admin ALL=(ALL) ALL + +# Allow members of group sudo to execute any command +%sudo ALL=(ALL:ALL) ALL + +# See sudoers(5) for more information on "#include" directives: + +#includedir /etc/sudoers.d
Puppet / 7 (Ruby 2.7): spec/classes/sudo_spec.rb#L49
sudo on archlinux-rolling-x86_64 with deprecated content set is expected to contain File[/etc/sudoers] with content =~ /.*Defaults\s+env_reset.*/ Failure/Error: it { is_expected.to contain_file('/etc/sudoers').with_content(%r{.*Defaults\s+env_reset.*}) } expected that the catalogue would contain File[/etc/sudoers] with content set to /.*Defaults\s+env_reset.*/ but it is set to "# file managed by puppet (unless config_file_replace=false)\n#\n# This file MUST be edited with the 'visudo' command as root.\n#\n# Please consider adding local content in /etc/sudoers.d/ instead of\n# directly modifying this file.\n#\n# See the man page for details on how to write a sudoers file.\n#\nDefaults\tsecure_path=\"\"\n\n\n# Host alias specification\n\n# User alias specification\n\n# Cmnd alias specification\n\n# User privilege specification\nroot\tALL=(ALL:ALL) ALL\n\n# Members of the admin group may gain root privileges\n%admin ALL=(ALL) ALL\n\n# Allow members of group sudo to execute any command\n%sudo\tALL=(ALL:ALL) ALL\n\n# See sudoers(5) for more information on \"#include\" directives:\n\n#includedir /etc/sudoers.d\n" Diff: @@ -1,30 +1,59 @@ -(?-mix:.*Defaults\s+env_reset.*) +# file managed by puppet (unless config_file_replace=false) +# +# This file MUST be edited with the 'visudo' command as root. +# +# Please consider adding local content in /etc/sudoers.d/ instead of +# directly modifying this file. +# +# See the man page for details on how to write a sudoers file. +# +Defaults secure_path="" + + +# Host alias specification + +# User alias specification + +# Cmnd alias specification + +# User privilege specification +root ALL=(ALL:ALL) ALL + +# Members of the admin group may gain root privileges +%admin ALL=(ALL) ALL + +# Allow members of group sudo to execute any command +%sudo ALL=(ALL:ALL) ALL + +# See sudoers(5) for more information on "#include" directives: + +#includedir /etc/sudoers.d
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.