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

ensure=absent seems broken #2

@docwhat

Description

@docwhat

Using this code:

mounts { 'Old Collections':
  ensure => absent,
  source => 'nfsserver:/volume/data',
  dest   => '/old/mountpoint',
  type   => 'nfs',
  opts   => 'ro,auto,user,defaults,nofail',
}

I got this error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type notice at /etc/puppet/environments/testing/modules/mounts/manifests/init.pp:75 on node ourserver.example.com

So I commented out the notice("${dest} wasn't removed after... line 75 and tried again and got:

Error: /Stage[main]/OurServer::Testbeds/Mounts[Old Collections]/Fstab[fstab entry for nfsserver:/volume/data to /old/mountpoint as nfs]/Fstab::Augeas[fstab entry for nfsserver:/volume/data to /old/mountpoint as nfs]/Augeas[fstab entry for nfsserver:/volume/data to /old/mountpoint as nfs]: Could not evaluate: Error sending command 'match' with params nil/Unknown command

This second error may be in your fstab module, in which case I can file it against that if you want.

I tried using only the fstab module:

fstab { 'Old Collections':
  ensure => absent,
  source => 'nfsserver:/volume/data',
  dest   => '/old/mountpoint',
  type   => 'nfs',
}

And I got:

Error: /Stage[main]/OurServer::Testbeds/Fstab[Old Collections]/Fstab::Augeas[Old Collections]/Augeas[Old Collections]: Could not evaluate: Error sending command 'match' with params nil/Unknown command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions