An example manifest is below; it fails linting with a syntax error at the last single quote of the manifest as is, but will work if the string form of the regex is used instead. See https://tickets.puppetlabs.com/browse/PDK-1732 for details.
file_line { 'use_lvmetad':
line => ' use_lvmetad = 0',
path => '/etc/lvm/lvm.conf',
match => /.*use_lvmetad =/, # causes failure at last quote of manifest
replace => true,
notify => Exec['update_initramfs'];
}
An example manifest is below; it fails linting with a syntax error at the last single quote of the manifest as is, but will work if the string form of the regex is used instead. See https://tickets.puppetlabs.com/browse/PDK-1732 for details.