puppet-fstab
puppet-fstab copied to clipboard
Remove entry from fstab errors: 'match' with params nil/Unknown command
fstab
fstab { 'RemoveMountPoint': source => '/dev/xvdb', dest => '/mnt/ephemeral', type => 'ext3', ensure => absent, }
Error during puppet run
Error: /Stage[main]/Main/Fstab[RemoveMountPoint]/Fstab::Augeas[RemoveMountPoint]/Augeas[RemoveMountPoint]: Could not evaluate: Error sending command 'match' with params nil/Unknown command
More details and debug output given here: https://github.com/AlexCline/puppet-mounts/issues/2
I have the exact same issue.
I got fstab entry removal to work with this change;
@@ -34,6 +34,9 @@
}
'absent': {
-
include fstab::variables -
$fstab_match_line = "*[spec='${source}' and file='${dest}']"- augeas { $name: context => "/files${fstab::variables::fstab_file}", changes => [
This one is fixed by vida PR #15 !