Hi, I'm having difficulty with the mount type as it appears to be mounting a device twice. I am running Puppet 0.23.1 on RHEL4 with Kernel 2.6.9-42:
mount.pp
class images_mount {
file {"/var/www/folder":
ensure => directory,
}
mount { "/var/www/folder":
atboot => true,
ensure => mounted,
fstype => cifs,
device => "//server/share",
options => "ro,credentials=/etc/flimflam",
require => file["/var/www/folder"],
}
}
After running puppetd -v here is the relevant output:
notice: //default/imagetesting/images_mount/Mount[/var/www/trips_images]/ensure: ensure changed 'present' to 'mounted'
notice: //default/imagetesting/images_mount/Mount[/var/www/trips_images]: Refreshing self
info: Mount[/var/www/trips_images](provider=parsed): Remounting
mount command:
[root@testserver]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
//server/share on /var/www/share type cifs (rw,mand)
//server/share on /var/www/share type cifs (rw,mand)
If I change an option, say to mount it as ro, it mounts the device a third time:
[root@testserver www]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
//server/share on /var/www/share type cifs (rw,mand)
//server/share on /var/www/share type cifs (rw,mand)
//server/share on /var/www/share type cifs (ro,mand)
Obviously now I can umount it but must umount it 3 times. I hope my information helps you isolate the problem, thank you.