Feature #10515
Add UUID= or LABEL= to "mount" Puppet type
| Status: | Closed | Start date: | 11/03/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | 11/18/2011 | |
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | Estimated time: | 1.00 hour | |
| Affected Puppet version: | Branch: | |||
| Keywords: | ||||
| Votes: | 0 |
Description
Hi, The “mount” ( http://docs.puppetlabs.com/references/2.7.6/type.html#mount ) type does not allow $device to be a label or an uuid. It would be useful to be able to use the “mount” type to have in /etc/fstab:
(...)
LABEL=somelabel /somedir ext4 nobarrier,nodiratime,defaults,noatime 1 1
UUID=f6521431-1339-45ba-8ad3-edcec6b2c79e /opt/mongodb_raid xfs nobarrier,nodiratime,noatime,defaults 0 0
History
Updated by Kelsey Hightower 6 months ago
- Due date set to 11/18/2011
- Status changed from Unreviewed to Needs More Information
- Assignee set to Kelsey Hightower
- Estimated time set to 1.00
Alexandre,
Thanks for reporting this issue. After reviewing the puppet source code for the mount type, it seems you should be able to pass any string you want as the device.
mount { '/tmp/testing':
device => 'UUID=f6521431-1339-45ba-8ad3-edcec6b2c79e',
...
}
Can you try specifying the device parameter with something similar to what I have done in the above example.
Updated by Kelsey Hightower 6 months ago
- Assignee deleted (
Kelsey Hightower)
Updated by Steven Snyder 5 months ago
Specifying the UUID as Kelsey Hightower did in the example above works. If the UUID is entered directly as the ‘device’ parameter, it doesn’t work. It needs to have “UUID=” in front of it, just like in the fstab file and Kelsey’s example.
Updated by Patrick Otto 4 months ago
- Status changed from Needs More Information to Closed