Read more

Puppet: Could not evaluate: Field 'device' is required

Kim Klotz
December 29, 2016Software engineer at makandra GmbH

If you get an error like this for a puppet mount:

$ > puppet agent --test 
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for example.makandra.de
Info: Applying configuration version '1483001792'
Info: Computing checksum on file /etc/fstab
Info: FileBucket got a duplicate file {md5}34b9adc036cf1dbd2392df84f921547d
Notice: /Stage[main]/Foobar/Swap_file::Files[default]/Mount[/var/swapfile]/ensure: defined 'ensure' as 'defined'
Error: /Stage[main]/Foobar/Swap_file::Files[default]/Mount[/var/swapfile]: Could not evaluate: Field 'device' is required
Notice: Finished catalog run in 12.39 seconds
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

it's possible there is a "problem" in your /etc/fstab. I could fix it with rewriting the /etc/fstab.

Posted by Kim Klotz to makandra dev (2016-12-29 12:45)