[Puppet Users] Re: Convert Floating point to integer

2015-05-14 Thread Bob Vergeer
Thanks, John. I didn't have another purpose for the shm_size variable. Wasn't using the mount because I'm a rookie and still learning. Bob On Thursday, May 14, 2015 at 10:13:13 AM UTC-4, jcbollinger wrote: > > > > On Wednesday, May 13, 2015 at 2:55:03 PM UTC-5, B

[Puppet Users] Convert Floating point to integer

2015-05-13 Thread Bob Vergeer
Two issues, removing the decimal places and appending a character. Trying to generate a /dev/shm line in /etc/fstab that is set to 1G less than available RAM. The line should appear as follows in /etc/fstab: ... none /dev/shm tmpfsrw,exec,size=2048M0 0 ... 1) How do I convert

[Puppet Users] Converring floating point to integer

2015-05-13 Thread Bob Vergeer
It seems that this should be easy but I just can't seem to figure it out. The goal is to calculate memory size for a /dev/shm entry in the fstab and add an 'M' to the resulting variable. Something like $shm = $memorysize_mb - 1024 file_line { 'shm': line => 'non -- You received this mes