Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7497

Mount resource don't follow what documentation says(ensure => present is remounting)

    Details

    • Template:
    • Team:
      Platform OS

      Description

      Documentation Resource Type: mount says:

      Set to present to add to fstab but not change mount/unmount status.

      However if I change the device to something else, it's refreshing the resource.

      My definition:

      mount { "/mnt/nfs":
            ensure   => 'present',
            device   => "10.10.10.1:/ifs/data",
            fstype   => 'nfs',
            options  => 'vers=3,hard,intr,_netdev',
            atboot   => true,
            remounts => false,
      }
      

      If on the server, I remount /mnt/nfs to 10.10.10.2 manually, per example, my puppet agent says:

      Info: Applying configuration version '1468327350'
      Notice: /Stage[main]/base::Mount/Mount[/mnt/nfs]/device: device changed '10.10.10.2:/ifs/data' to '10.10.10.1:/ifs/data'
      Info: Computing checksum on file /etc/fstab
      Info: /Stage[main]/base::Mount/Mount[/mnt/nfs]: Scheduling refresh of Mount[/mnt/nfs]
      Info: Mount[/mnt/nfs](provider=parsed): Remounting
      Notice: /Stage[main]/base::Mount/Mount[/mnt/nfs]: Triggered 'refresh' from 1 events
      Info: /Stage[main]/base::Mount/Mount[/mnt/nfs]: Scheduling refresh of Mount[/mnt/nfs]
      Notice: Applied catalog in 1.77 seconds
      

      This is not what documentation says, and actually what I want. If somebody manually mount to something else, I don't want puppet to remount, and I want it to manage the entry on /etc/fstab.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              trunet Wagner Sartori Junior
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support