Hi,
I'm trying to replace line inside a file with file_line.
file_line { 'password policy change':
ensure => present,
path => '/tmp/test',
match => 'password.*requisite.*cracklib\.so.*',
line => 'password requisite
pam_cracklib.so retry=3 minlen=8 difok=5 dcredit=-1 lcredit=-1 ucredit=-1 ocredit=-1'
}
but it keeping failing
Error: Failed to apply catalog: Validation of File_line[password policy change] failed: When providing a 'match' parameter, the value must be a regex that matches against the value of your 'line' parameter at /etc/puppet/environments/common/pci/manifests/init.pp:20
Please advice.