puppet-fstab icon indicating copy to clipboard operation
puppet-fstab copied to clipboard

Remove entry from fstab errors: 'match' with params nil/Unknown command

Open sagar-khanna opened this issue 11 years ago • 3 comments

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

sagar-khanna avatar Sep 02 '14 14:09 sagar-khanna

I have the exact same issue.

masimplo avatar Dec 12 '14 13:12 masimplo

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 => [

gaima8 avatar Mar 17 '15 13:03 gaima8

This one is fixed by vida PR #15 !

jgrumboe avatar Mar 18 '16 11:03 jgrumboe