Forum: Cfengine Help Subject: manage NFS share without /etc/fstab Author: Igor Link to topic: https://cfengine.com/forum/read.php?3,18082,18082#msg-18082
Hi! How i can disable looking into /etc/fstab in "storage mount"? When i created promise like this: ############################################## bundle agent nfs_mount { storage: "/usr/ports" mount => nfs("test.server.local","/usr/ports"); } ############################################## body mount nfs(server,source) { mount_type => "nfs"; mount_source => "$(source)"; mount_server => "$(server)"; edit_fstab => "false"; mount_options => { "rw" }; #unmount => "true"; } and when i have another NFS share in /etc/fstab without option noauto, cfengine tried to mount this nfs share too: $cf-agent -v -K -f mount_freebsd.cf -b nfs_mount test.server.local:/usr/ports 48G 20G 25G 44% /usr/ports test.server.local1:/backup 451G 379G 36G 91% /mnt/backup /etc/fstab: #disabled, described directly in cfengine #:test.server.local/usr/ports /usr/ports nfs rw,-3,-ointr,soft,bg,retrycnt=2 0 0 ... #another NFS share test.server.local1:/backup /mnt/backupsrv nfs rw,-3,-ointr,soft,bg 0 0 --- cf log: cf3 -> Using literal pathtype for /usr/ports cf3 -> Verifying mounted file systems on /usr/ports cf3 !! File system /usr/ports seems not to be mounted correctly cf3 -> Filesystem /usr/ports was not mounted as promised, and no edits were promised in /etc/fstab cf3 -> Mounting /usr/ports to keep promise cf3 -> Number of changes observed in /etc/fstab is 0 cf3 -> Mounting all filesystems cf3 -> Attempting to mount all filesystems. cf3 cf3 + Private classes augmented: cf3 cf3 - Private classes diminished: How i can disable this "Mounting all filesystems" and mount only /usr/ports? ---- Igor _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine