Update to module template files #157
ci.yml
on: pull_request
Puppet
/
Static validations
34s
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet
/
Test suite
4s
Annotations
9 errors and 4 warnings
Puppet / 8 (Ruby 3.2):
spec/classes/sudo_spec.rb#L50
sudo on archlinux-6-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#L111
sudo on archlinux-6-x86_64 env_reset default is 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## sudoers file.\n##\n## This file MUST be edited with the 'visudo' command as root.\n## Failure to use 'visudo' may result in syntax or file permission errors\n## that prevent sudo from running.\n##\n## See the sudoers man page for the details on how to write a sudoers file.\n##\n\n##\n## Host alias specification\n##\n## Groups of machines. These may include host names (optionally with wildcards),\n## IP addresses, network numbers or netgroups.\n# Host_Alias\tWEBSERVERS = www1, www2, www3\n\n##\n## User alias specification\n##\n## Groups of users. These may consist of user names, uids, Unix groups,\n## or netgroups.\n# User_Alias\tADMINS = millert, dowdy, mikef\n\n##\n## Cmnd alias specification\n##\n## Groups of commands. Often used to group related commands together.\n# Cmnd_Alias\tPROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \\\n# \t\t\t /usr/bin/pkill, /usr/bin/top\n\n##\n## Defaults specification\n##\n## You may wish to keep some of the following environment variables\n## when running commands via sudo.\n##\n## Locale settings\n# Defaults env_keep += \"LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET\"\n##\n## Run X applications through sudo; HOME is used to find the\n## .Xauthority file. Note that other programs use HOME to find \n## configuration files and this may lead to privilege escalation!\n# Defaults env_keep += \"HOME\"\n##\n## X11 resource path settings\n# Defaults env_keep += \"XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH\"\n##\n## Desktop path settings\n# Defaults env_keep += \"QTDIR KDEDIR\"\n##\n## Allow sudo-run commands to inherit the callers' ConsoleKit session\n# Defaults env_keep += \"XDG_SESSION_COOKIE\"\n##\n## Uncomment to enable special input methods. Care should be taken as\n## this may allow users to subvert the command being run via sudo.\n# Defaults env_keep += \"XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER\"\n##\n## Uncomment to enable logging of a command's output, except for\n## sudoreplay and reboot. Use sudoreplay to play back logged sessions.\n# Defaults log_output\n# Defaults!/usr/bin/sudoreplay !log_output\n# Defaults!/usr/local/bin/sudoreplay !log_output\n# Defaults!/sbin/reboot !log_output\n\n##\n## Runas alias specification\n##\n\n##\n## User privilege specification\n##\nroot ALL=(ALL) ALL\n\n## Uncomment to allow members of group wheel to execute any command\n# %wheel ALL=(ALL) ALL\n\n## Same thing without a password\n# %wheel ALL=(ALL) NOPASSWD: ALL\n\n## Uncomment to allow members of group sudo to execute any command\n# %sudo\tALL=(ALL) ALL\n\n## Uncomment to allow any user to run sudo if they know the password\n## of the user they are running the command as (root by default).\n# Defaults targetpw # Ask for the password of the target user\n# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'\n\n## Read drop-in files\n## (the '#' here does not indicate a comment)\n#includedir /etc/sudoers.d\n"
Diff:
@@ -1,92 +1,183 @@
-(?-mix:^Defaults\s+env_reset$)
+# file managed by puppet (unless config_file_replace=false)
+#
+## sudoers file.
+##
+## This file MUST be edited with the 'visudo' command as root.
+## Failure to use 'visudo' may result in syntax or file permission errors
+## that prevent sudo from running.
+##
+## See the sudoers man page for the details on how to write a sudoers file.
+##
+
+##
+## Host alias specification
+##
+## Groups of machines. These may include host names (optionally with wildcards),
+## IP addresses, network numbers or netgroups.
+# Host_Alias WEBSERVERS = www1, www2, www3
+
+##
+## User alias specification
+##
+## Groups of us
|
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
|
Puppet / 7 (Ruby 2.7):
spec/classes/sudo_spec.rb#L50
sudo on archlinux-6-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#L111
sudo on archlinux-6-x86_64 env_reset default is 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## sudoers file.\n##\n## This file MUST be edited with the 'visudo' command as root.\n## Failure to use 'visudo' may result in syntax or file permission errors\n## that prevent sudo from running.\n##\n## See the sudoers man page for the details on how to write a sudoers file.\n##\n\n##\n## Host alias specification\n##\n## Groups of machines. These may include host names (optionally with wildcards),\n## IP addresses, network numbers or netgroups.\n# Host_Alias\tWEBSERVERS = www1, www2, www3\n\n##\n## User alias specification\n##\n## Groups of users. These may consist of user names, uids, Unix groups,\n## or netgroups.\n# User_Alias\tADMINS = millert, dowdy, mikef\n\n##\n## Cmnd alias specification\n##\n## Groups of commands. Often used to group related commands together.\n# Cmnd_Alias\tPROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \\\n# \t\t\t /usr/bin/pkill, /usr/bin/top\n\n##\n## Defaults specification\n##\n## You may wish to keep some of the following environment variables\n## when running commands via sudo.\n##\n## Locale settings\n# Defaults env_keep += \"LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET\"\n##\n## Run X applications through sudo; HOME is used to find the\n## .Xauthority file. Note that other programs use HOME to find \n## configuration files and this may lead to privilege escalation!\n# Defaults env_keep += \"HOME\"\n##\n## X11 resource path settings\n# Defaults env_keep += \"XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH\"\n##\n## Desktop path settings\n# Defaults env_keep += \"QTDIR KDEDIR\"\n##\n## Allow sudo-run commands to inherit the callers' ConsoleKit session\n# Defaults env_keep += \"XDG_SESSION_COOKIE\"\n##\n## Uncomment to enable special input methods. Care should be taken as\n## this may allow users to subvert the command being run via sudo.\n# Defaults env_keep += \"XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER\"\n##\n## Uncomment to enable logging of a command's output, except for\n## sudoreplay and reboot. Use sudoreplay to play back logged sessions.\n# Defaults log_output\n# Defaults!/usr/bin/sudoreplay !log_output\n# Defaults!/usr/local/bin/sudoreplay !log_output\n# Defaults!/sbin/reboot !log_output\n\n##\n## Runas alias specification\n##\n\n##\n## User privilege specification\n##\nroot ALL=(ALL) ALL\n\n## Uncomment to allow members of group wheel to execute any command\n# %wheel ALL=(ALL) ALL\n\n## Same thing without a password\n# %wheel ALL=(ALL) NOPASSWD: ALL\n\n## Uncomment to allow members of group sudo to execute any command\n# %sudo\tALL=(ALL) ALL\n\n## Uncomment to allow any user to run sudo if they know the password\n## of the user they are running the command as (root by default).\n# Defaults targetpw # Ask for the password of the target user\n# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'\n\n## Read drop-in files\n## (the '#' here does not indicate a comment)\n#includedir /etc/sudoers.d\n"
Diff:
@@ -1,92 +1,183 @@
-(?-mix:^Defaults\s+env_reset$)
+# file managed by puppet (unless config_file_replace=false)
+#
+## sudoers file.
+##
+## This file MUST be edited with the 'visudo' command as root.
+## Failure to use 'visudo' may result in syntax or file permission errors
+## that prevent sudo from running.
+##
+## See the sudoers man page for the details on how to write a sudoers file.
+##
+
+##
+## Host alias specification
+##
+## Groups of machines. These may include host names (optionally with wildcards),
+## IP addresses, network numbers or netgroups.
+# Host_Alias WEBSERVERS = www1, www2, www3
+
+##
+## User alias specification
+##
+## Groups of us
|
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.
|
Puppet / Puppet 7 - OracleLinux 7
Process completed with exit code 1.
|
Puppet / Puppet 8 - OracleLinux 7
Process completed with exit code 1.
|
Puppet / Test suite
Process completed with exit code 1.
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system RedHat 7
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system CentOS 7
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system CentOS 8
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system Debian 10
|