zerozerounouno@gmail.com
2014-Jan-07 14:10 UTC
[Puppet Users] Alternating results with mount Puppet resource
Hi, I have a problem with a host which has a Puppet class applied to it. The host, a CentOS 6.4 machine, has been provisioned and is managed using Foreman, but I'm not sure this is related to the problem. The class includes a "mount" type resource which should mount a NFS share and add the related line in /etc/fstab. But the existing fstab file on that machine has an error: there is one custom line starting with a space (although I cannot find any official doc stating that this is actually forbidden), and this causes the manual application of the puppet class (puppet agent --test) to *always* fail with the message "Could not evaluate: Field 'device' is required". Up to here, this is ok. The failure is expected behaviour, if the leading space in fstab really is a syntax error. I've read elsewhere that this error does not come from puppet itself, but rather from the OS when puppet tries to "flush" the fstab file. The problem is with automated puppet runs every 30 minutes, as per default: 50% of the runs end with no errors in the report, even though the class is not correctly applied. One report shows the error, the next one does not, the next shows it again, then again not, and so on. This can be very misleading, as you could believe everything is ok by looking at the error-free logs. Any suggestions? Thanks. Marco -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3e7bd2fc-1122-42be-9d00-c91fbc309eea%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.