Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Added ssh_port parameter to override default one #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fabienpomerol
Copy link

Just added a ssh_port parameter when using non standard ssh port. Default one stay port 22.

@Freeaqingme
Copy link

The second parameter of params_lookup should be either undefined or 'global'. The default is set by setting the variable in the params class. Otherwise, I think it looks good ;)

@@ -25,6 +25,7 @@
$log_forward = params_lookup( 'log_forward' ),
$log_level = params_lookup( 'log_level' ),
$safe_ssh = params_lookup( 'safe_ssh' ),
$ssh_port = params_lookup( 'ssh_port', '22' ),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value has to be placed in params.pp
Remove the 22 here and place $ssh_port = 22 somwhere in params.pp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants