@@ -149,6 +149,8 @@ bundle agent cfengine_build_host_setup
149
149
"mingw_build_host" expression => fileexists("/etc/cfengine-mingw-build-host.flag");
150
150
"systemssl_build_host" expression => fileexists("/etc/cfengine-systemssl-build-host.flag");
151
151
"bootstrap_pr_host" expression => fileexists("/etc/cfengine-bootstrap-pr-host.flag");
152
+ linux::
153
+ "have_coredumpctl" expression => returnszero("command -v coredumpctl", "useshell");
152
154
debian_9|ubuntu_16|redhat_6|centos_6::
153
155
"have_opt_jdk21" expression => fileexists("/opt/jdk-21.0.1");
154
156
(redhat|centos).!(redhat_6|centos_6|redhat_7|centos_7)::
@@ -173,6 +175,10 @@ bundle agent cfengine_build_host_setup
173
175
comment => "note: centos-7 has installed instead of --installed argument, and that works on rhel-8 and rhel-9 so go with the sub-command instead of option";
174
176
175
177
commands:
178
+ have_coredumpctl::
179
+ "sysctl kernel.core_pattern='|/usr/lib/systemd/systemd-coredump %p %u %g %s %t %e'" -> { "ENT-12669" }
180
+ comment => "Ensure that core_pattern is proper for systemd-coredump if coredumpctl is present.",
181
+ contain => in_shell;
176
182
!have_opt_jdk21.(debian_9|ubuntu_16|redhat_6|centos_6)::
177
183
"sh $(this.promise_dirname)/linux-install-jdk21.sh" contain => in_shell;
178
184
(redhat_7|centos_7|redhat_8|centos_8|redhat_9).(!have_development_tools).(yum_dnf_conf_ok)::
@@ -202,6 +208,13 @@ bundle agent cfengine_build_host_setup
202
208
"have_$(suse_users_and_groups)_user" expression => returnszero("grep '^$(suse_users_and_groups):' /etc/passwd >/dev/null", "useshell");
203
209
204
210
files:
211
+ linux::
212
+ "/etc/security/limits.conf"
213
+ edit_line => lines_present("
214
+ root - core unlimited
215
+ * - core unlimited
216
+ ");
217
+
205
218
ubuntu_16|ubuntu_18|redhat_9::
206
219
"/etc/hosts" -> { "ENT-12437" }
207
220
edit_line => regex_replace("127.0.0.1 localhost localhost.localdomain","127.0.0.1 localhost.localdomain"),
0 commit comments