mstrauss/puppet-editfile — Issue #1: First search for not commented lines for replacements
Author: jrevillard
Created: 2012-01-12 13:01:02+00:00
State: open

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

Best,
Jerome