Project

General

Profile

Actions

Bug #3758

closed

Technique "OpenSSH Server" v3.0: it does not correctly edit ssh ports on systems other than RHEL/SLES

Added by Vincent MEMBRÉ over 11 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When using latest ssh configuration technique (3.0), ports are not correctly configured.

variable {this.rudder_openssh_server_config_ports} is not expanded which leads to having ports value to {this.rudder_openssh_server_config_ports}

here is the variable definition :

      "rudder_openssh_server_config_ports" 
        slist => { "@{${params}[sshd_config_ports]}" };

and its application

    (debian|redhat|SuSE).rudder_openssh_server_ports_edit::
      "${${params}[sshd_config_file]}" 
        edit_line => rudder_openssh_server_port_configuration("@{this.rudder_openssh_server_config_ports}"),
        classes   => rudder_common_classes("${class_prefix}_ports"),
        comment   => "Edit the OpenSSH listening ports in the configuration file";

Actions

Also available in: Atom PDF