- Puppet 5 Essentials(Third Edition)
- Martin Alfke Felix Frank
- 114字
- 2021-07-02 18:22:24
The mount resource type
Finally, Puppet will manage all aspects of mountable filesystems for you, including their basic attributes, such as the source device and mount point, the mount options, and the current state. A line from the fstab file translates quite literally to a Puppet manifest:
mount { '/media/gluster-data':
ensure => 'mounted',
device => 'gluster01:/data',
fstype => 'glusterfs',
options => 'defaults,_netdev',
dump => 0,
pass => 0,
}
For this resource, Puppet will make sure that the filesystem is indeed mounted after the run. Ensuring the unmounted state is also possible, of course; Puppet can also just make sure the entry is present in the fstab file, or absent from the system altogether.
推薦閱讀
- PHP+MySQL+Dreamweaver動態網站開發實例教程
- Modern JavaScript Applications
- SAP BusinessObjects Dashboards 4.1 Cookbook
- SQL Server數據庫管理與開發兵書
- Creating Data Stories with Tableau Public
- Hands-On JavaScript for Python Developers
- .NET 4.5 Parallel Extensions Cookbook
- R語言:邁向大數據之路(加強版)
- 實戰Java高并發程序設計(第2版)
- Visual Basic程序設計全程指南
- Learning Bootstrap 4(Second Edition)
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- C語言程序設計
- C語言程序設計
- 走近SDN/NFV