I am trying to grow a logical volume on AIX depending on the size of the running kernel. I''ve got all of the custom facts setup. Now I just need to exec on that variable. Having a heck of a time trying to figure out how to do this. Is it possible? Here is a snippet of my manifest: #don''t worry about this so much $addtodumplv = ((( $needump_kbsize - $pridumplv_kbsize ) / $pridumplv_ppsize ) + 1 ) exec { ''extendlv hd6 $addtodumplv'': # <----here is my problem. How do I call $addtodumplv from here? path => ["/usr/sbin", "/opt/freeware/bin"], } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Change your single quotes to double quotes and it should just work. On Thu, Oct 20, 2011 at 16:42, Parker Johnson <pjohn07@yahoo.com> wrote:> > I am trying to grow a logical volume on AIX depending on the size of > the running kernel. I''ve got all of the custom facts setup. Now I > just need to exec on that variable. Having a heck of a time trying to > figure out how to do this. Is it possible? > > Here is a snippet of my manifest: > > #don''t worry about this so much > $addtodumplv = ((( $needump_kbsize - $pridumplv_kbsize ) / > $pridumplv_ppsize ) + 1 ) > > > exec { ''extendlv hd6 $addtodumplv'': # <----here > is my problem. How do I call $addtodumplv from here? > path => ["/usr/sbin", "/opt/freeware/bin"], > } > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks, that was it exactly. This works: $addtodumplv = ((( $needump_kbsize - $pridumplv_kbsize ) / ( $pridumplv_ppsize * 1024 )) + 1 ) exec { "/opt/freeware/bin/echo \"extendlv $pridumplv $addtodumplv \"": } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.