Ask Your Question

disk creation in puppet

asked 2014-11-11 04:46:00 -0600

Chutki gravatar image


I have file like below

/dev/sdba         /opt/hd/db/data/aa      ext4            defaults,noatime        1 2
/dev/sdcb         /opt/hd/db/data/bb      ext4            defaults,noatime        1 2
/dev/sddc         /opt/hd/db/data/cc      ext4            defaults,noatime        1 2
/dev/sdee         /opt/hd/db/data/dd      ext4            defaults,noatime        1 2

I want to convert the above in puppet

So how can I mount link for disk directory.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-11-12 11:33:18 -0600

inhumantsar gravatar image

Puppet has a built-in mount type which can be used to define fstab entries:


mount { 'data-aa':
  name        => '/opt/hd/db/data/aa',
  ensure      => 'mounted',
  atboot      => true,
  device      => '/dev/sdba',
  fstype      => 'ext4',
  options     => 'defaults,noatime',
edit flag offensive delete link more

answered 2014-11-11 08:38:05 -0600

I personally have used Augeus with augeusproviders to manager /etc/fstab entries.

Here is the documentation specifically for mount points:

augeus is a tool that provides lenses to help managing system configuration through a nice expression tool. Puppet modules embrace augeus to simplify it, but augtool also provides a nice interface to manage interfaces that have lenses developed for them.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-11-11 04:46:00 -0600

Seen: 209 times

Last updated: Nov 11 '14