官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 翁牛特旗| 凌海市| 云阳县| 资兴市| 巴彦淖尔市| 西贡区| 赣州市| 锡林浩特市| 彭州市| 维西| 界首市| 贵州省| 密云县| 阳城县| 抚远县| 双柏县| 大港区| 高碑店市| 阿拉善盟| 陵川县| 中超| 攀枝花市| 镇远县| 黄平县| 东山县| 五大连池市| 峨边| 翁源县| 乌海市| 沽源县| 永定县| 昌黎县| 舞钢市| 泰顺县| 山东| 夏津县| 西乌| 淮阳县| 礼泉县| 泰州市| 德保县|