- 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.
推薦閱讀
- 深入淺出WPF
- Koa開發(fā):入門、進(jìn)階與實(shí)戰(zhàn)
- JavaScript+Vue+React全程實(shí)例
- 大數(shù)據(jù)分析與應(yīng)用實(shí)戰(zhàn):統(tǒng)計(jì)機(jī)器學(xué)習(xí)之?dāng)?shù)據(jù)導(dǎo)向編程
- MongoDB,Express,Angular,and Node.js Fundamentals
- Hands-On Kubernetes on Windows
- 小程序從0到1:微信全棧工程師一本通
- Mastering OAuth 2.0
- C/C++代碼調(diào)試的藝術(shù)(第2版)
- JBoss AS 7 Development
- 透視C#核心技術(shù):系統(tǒng)架構(gòu)及移動(dòng)端開發(fā)
- Blender 3D Cookbook
- Isomorphic JavaScript Web Development
- ArcGIS Blueprints
- PostGIS Cookbook