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

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.

主站蜘蛛池模板: 博野县| 鄂尔多斯市| 保靖县| 波密县| 察雅县| 浦县| 宜宾市| 横峰县| 鱼台县| 中西区| 博爱县| 舒兰市| 合阳县| 永嘉县| 西吉县| 东平县| 九龙城区| 柘城县| 定襄县| 邵阳市| 尼勒克县| 柳河县| 宜黄县| 古丈县| 咸阳市| 夏河县| 白沙| 肇庆市| 叙永县| 独山县| 同心县| 伊通| 长子县| 繁峙县| 古田县| 利川市| 信宜市| 平度市| 奉贤区| 吉林省| 临汾市|