voxpupuli / puppet-dropbear

Manage dropbear with puppet
http://forge.puppetlabs.com/puppet/dropbear
GNU General Public License v3.0
0 stars 5 forks source link

setting ip for dropbear #28

Open aqueos opened 5 years ago

aqueos commented 5 years ago

dropbear cannot listen to a specific ip with this setting.

I added:

# the TCP port that Dropbear listens on <% if $::dropbear::ip == "none" { %> DROPBEAR_PORT=<%= $dropbear::port_int %> <% } else{ %> DROPBEAR_PORT=<%= $dropbear::ip %>:<%= $dropbear::port_int %> <% } %>

to the debian.pp

<% if $::dropbear::ip == "none" { -%> "-p ${dropbear::port_int}", <% } else{ -%> "-p ${dropbear::ip}:${dropbear::port_int}", <% } -%>

to the redhat one

and Stdlib::IP::Address $ip = 'none',

in the init.pp class parameters.

This way you can specify an ip to bind to.

hope that helps,

regards, Ghislain.

ekohl commented 4 years ago

Please submit this as a pull request. Merging this is complicated and it sounds like you already have the changes.