Ask Your Question
0

disk creation in puppet

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

Chutki gravatar image

Hi,

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
1

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

inhumantsar gravatar image

Puppet has a built-in mount type which can be used to define fstab entries: https://docs.puppetlabs.com/reference...

eg:

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
0

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

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

Here is the documentation specifically for mount points:

http://augeasproviders.com/documentat...

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.

http://augeas.net/

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

Stats

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

Seen: 193 times

Last updated: Nov 11 '14