- 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.
推薦閱讀
- Advanced Quantitative Finance with C++
- Google Apps Script for Beginners
- Developing Middleware in Java EE 8
- 認識編程:以Python語言講透編程的本質
- 軟件測試技術指南
- Swift細致入門與最佳實踐
- Mastering JavaScript High Performance
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Java網絡編程核心技術詳解(視頻微課版)
- Babylon.js Essentials
- Instant PHP Web Scraping
- Go語言編程
- 計算機應用技能實訓教程
- C語言程序設計教程
- Kohana 3.0 Beginner's Guide