We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 853c492 commit a5e9663Copy full SHA for a5e9663
1 file changed
ci/cfengine-build-host-setup.cf
@@ -189,6 +189,10 @@ bundle agent cfengine_build_host_setup
189
"ChallengeResponseAuthentication",
190
};
191
"sshd_config_files" slist => findfiles("/etc/ssh/sshd_config", "/etc/ssh/sshd_config.d/*.conf");
192
+ debian|ubuntu::
193
+ "sshd_service_name" string => "ssh";
194
+ !(debian|ubuntu)::
195
+ "sshd_service_name" string => "sshd";
196
197
classes:
198
any::
@@ -391,7 +395,7 @@ jenkins_builds ALL=NOPASSWD: /usr/bin/podman
391
395
392
396
services:
393
397
sshd_hardened::
394
- "sshd"
398
+ "$(sshd_service_name)"
399
service_policy => "restart",
400
handle => "sshd_restarted",
401
comment => "Restart sshd to apply hardened configuration";
0 commit comments