Hello,

I want to ensure that an nfs mount exists. The first puppet agent run is 
successfully but a second run brings the following error:

Error: Failed to set owner to '199': Read-only file system - 
/mnt/static/exports/media
Error: 
/Stage[main]/H24-nfs::Mount::Static/File[/mnt/static/exports/media]/owner: 
change from www-data to www-sync failed: Failed to set owner to '199': 
Read-only file system - /mnt/static/exports/media
Error: Failed to set group to '33': Read-only file system - 
/mnt/static/exports/media
Error: 
/Stage[main]/H24-nfs::Mount::Static/File[/mnt/static/exports/media]/group: 
change from nogroup to www-data failed: Failed to set group to '33': 
Read-only file system - /mnt/static/exports/media

The filesystem should be set to read only. When I remove owner, group it 
working.

  file { ["/mnt/static", "/mnt/static/exports/", 
"/mnt/static/exports/media"]:
        ensure => 'directory',
        owner  => "www-sync",
        group  => "www-data",
        mode   => 775,
        require => Package["nfs-common"],
  }

  mount { "${mount}":
        device  => "${nfsserver}:${export}",
        fstype  => "nfs",
        ensure  => "mounted",
        remounts => false,
        options => "ro,sync,intr,noatime,nodiratime,rsize=8192",
        atboot  => "true",
        require => File["/mnt/static", "/mnt/static/exports/", 
"/mnt/static/exports/media"],
  }

Regards - Willi

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0065fe5a-c567-4482-906a-ca21ce6f0b69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to