ffnord / ffnord-puppet-gateway

Deploy and manage your Freifunk community gateway, mostly compatible with Gluon.
15 stars 13 forks source link

create a module to change SSH port #145

Closed rubo77 closed 8 years ago

pinguinpfleger commented 8 years ago

you can add this to your own gateway.pp

$SSH_Port = 22

augeas { '/etc/ssh/sshd_config':
  context => '/files/etc/ssh/sshd_config',
  changes => [
    "set Port ${SSH_Port}",
  ],
}

until someone adds this as parameter

for simple test safe that as sshport.pp and do a test run with puppet apply --test --noop sshport.pp This will show you a diff of the change without applying it