doubt to convert from unix to puppet [closed]

asked 2014-10-29 06:50:34 -0600

Chutki gravatar image

updated 2014-10-29 07:14:53 -0600

llowder gravatar image


I have below lvm unix code below

cass=$(vgdisplay /dev/vgm|grep Free|awk '{print $5}')

I want to convert this into puppet. I have to create volume group of /dev/vgm diectory but not sure how to grep FREE space and pass it to parameter (cass). I want to pass cass parameter to logical_volume resource of size attribute.

logical_volume { 'title'
  ensure        => 'present',
  size          => $cass,
  voulume_group => 'vgm',
  require       => Voulume_group["/dev/vgm"]

please help me out.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by llowder
close date 2014-10-29 07:15:58.277633