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

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.

主站蜘蛛池模板: 德兴市| 左贡县| 宣恩县| 永吉县| 洪湖市| 益阳市| 昌邑市| 益阳市| 铜陵市| 通化县| 乌兰浩特市| 嘉善县| 连江县| 利津县| 铜陵市| 蓬安县| 江油市| 孟津县| 安庆市| 平利县| 大理市| 和平区| 赤水市| 池州市| 泸州市| 夏津县| 通化县| 宾川县| 都昌县| 兰州市| 鄯善县| 新建县| 区。| 灵山县| 三原县| 通化市| 象山县| 台江县| 德兴市| 东源县| 同德县|