puppet-editfile
puppet-editfile copied to clipboard
Do not uncomment lines if possible
Hi,
First of all congratulation for this module, very helpful!
I'm trying to manage sshd_config file with it and found a small issue: if you have something like this in your file:
ListenAddress ::
ListenAddress X.X.X.X
and if I do: editfile::config { 'sshd: ListenAddress ext': path => '/etc/ssh/sshd_config', entry => 'ListenAddress', ensure => '127.0.0.1', sep => ' ', }
I obtain: ListenAddress 127.0.0.1 ListenAddress 127.0.0.1
I would expect to obtain:
ListenAddress ::
ListenAddress 127.0.0.1
My patch do it.
Best, Jerome