Eric, Yes... that's specifically line 29.
19 logical_volume { $name: 20 ensure => present, 21 volume_group => $vg, 22 size => $size, 23 before => Volume_group[$vg] 24 } 25 } 26 # 27 # Just clean up the logical volume 28 # 29 absent: { 30 logical_volume { $name: ensure => absent, volume_group => $vg, size => $size } 31 } 32 # 33 # Create the whole chain. 34 # code compression syntax.... not familiar with that... Doug. On Tue, Aug 14, 2012 at 1:45 PM, Eric Shamow <e...@puppetlabs.com> wrote: > Oh right - for the code compression syntax…I don't use it and so I tend to > forget it exists. Sorry about that. > > Is line 29 specifically this? > > absent: { > > It would be helpful to see in context with line numbers, such as in a gist. > > -Eric > > -- > > Eric Shamow > Professional Services > http://puppetlabs.com/ > (c)631.871.6441 > > Join us for PuppetConf 2012 at the Mission Bay Convention Center in San > Francisco, California on September 27th and 28th --> http://bit.ly/pcsig12 > > > On Tuesday, August 14, 2012 at 4:43 PM, Douglas Garstang wrote: > >> I've always used semicolons at the end of resources.... never caused a >> problem before, and puppet-lint doesn't complain about them. >> >> On Tue, Aug 14, 2012 at 1:42 PM, Eric Shamow <e...@puppetlabs.com >> (mailto:e...@puppetlabs.com)> wrote: >> > Everything else aside, you have a semicolon after ensure => present >> > instead of a comma in your physical_volume resource. I'm not certain that >> > it's causing the problem but it might be confusing the parser. >> > >> > -Eric >> > >> > -- >> > >> > Eric Shamow >> > Professional Services >> > http://puppetlabs.com/ >> > (c)631.871.6441 >> > >> > Join us for PuppetConf 2012 at the Mission Bay Convention Center in San >> > Francisco, California on September 27th and 28th --> http://bit.ly/pcsig12 >> > >> > >> > On Tuesday, August 14, 2012 at 4:39 PM, Douglas Garstang wrote: >> > >> > > I just grabbed the puppet labs lvm module from Puppet forge. >> > > >> > > Attempting to use... >> > > >> > > physical_volume { >> > > ['/dev/xvdb1', '/dev/xvdc1']: >> > > ensure => present; >> > > } >> > > >> > > results in: >> > > >> > > err: Could not retrieve catalog from remote server: Error 400 on >> > > SERVER: Syntax error at ':'; expected '}' at >> > > /truth/sauce/env/prod/modules/lvm/manifests/init.pp:29 on node >> > > testweb10.us1.xxx.com (http://testweb10.us1.xxx.com) >> > > >> > > Line 29 of init.pp is: >> > > >> > > # >> > > # Just clean up the logical volume >> > > # >> > > absent: { >> > > logical_volume { $name: ensure => absent, volume_group => $vg, >> > > size => $size } >> > > } >> > > >> > > I don't get it.... what am I missing???? >> > > >> > > Doug. >> > > >> > > -- >> > > 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 >> > > (mailto:puppet-users@googlegroups.com). >> > > To unsubscribe from this group, send email to >> > > puppet-users+unsubscr...@googlegroups.com >> > > (mailto:puppet-users+unsubscr...@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 >> > (mailto:puppet-users@googlegroups.com). >> > To unsubscribe from this group, send email to >> > puppet-users+unsubscr...@googlegroups.com >> > (mailto:puppet-users+unsubscr...@googlegroups.com). >> > For more options, visit this group at >> > http://groups.google.com/group/puppet-users?hl=en. >> >> >> >> >> >> -- >> Regards, >> >> Douglas Garstang >> http://www.linkedin.com/in/garstang >> Email: doug.garst...@gmail.com (mailto:doug.garst...@gmail.com) >> Cell: +1-805-340-5627 >> >> -- >> 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 >> (mailto:puppet-users@googlegroups.com). >> To unsubscribe from this group, send email to >> puppet-users+unsubscr...@googlegroups.com >> (mailto:puppet-users+unsubscr...@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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garst...@gmail.com Cell: +1-805-340-5627 -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.