Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

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

Open
sagar-khanna opened this issue Sep 2, 2014 · 3 comments

Comments

@sagar-khanna
Copy link

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:
AlexCline/puppet-mounts#2

@masimplo
Copy link

I have the exact same issue.

@gaima8
Copy link

gaima8 commented Mar 17, 2015

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

@jgrumboe
Copy link

This one is fixed by vida PR #15 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants